Color from Fontdialog
I am using a fontdialog and all is working well except for a couple things. When I use fontDlg.Color.ToKnownColor I get a integer and was really wanting a color name. So I tried color.tostring and I...
View Article[RESOLVED] Detect Drive
Hi is there a function in VB.NET somewere werte I can detect if a string is a drive. for example something like this isdrive("c:\") or isdrive("C:") I tryed to make a function but I don;t think it very...
View ArticleVS 2010 Importing a text file to a List Box
Hi Guys, I am working on a project, and would like to be able to import text files into a listbox. So that one line in the text files makes one item in the list box, I have successfully been able to...
View ArticleVS 2005 [RESOLVED] Looping through openfiledialog.filenames
I'm currently using VS 2005 on my computer and I realized that I can't do: Code: Dim ofd As New OpenFileDialog Dim str As String If ofd.ShowDialog = .Ok Then     For i As Integer = 0 to...
View ArticleVS 2010 Getting Icon for a particular extension..?
Dears, I am making a attachment module where a user selects a file and add to a list which later gets saved into db. So, while the user selects the files the listview shows this all files along with...
View ArticleVisual Basic Console Application Copy Percentage?
I am making a Console Application that will copy larger files (up to 2 GB) (with My.Computer.FileSystem.CopyDirectory) and I would like make a percentage indicator. I just want it to show the current...
View ArticleInverting Bits
Hi, I am trying to find a way to invert the lower 4 bits of a byte. For example, I need to convert: 0x64 (0110 0100) to 0x6B (0110 1011) I can do it with what I think is an unreasonable amount of code....
View ArticleVS 2010 Unhandled exception on other computers
I made a program with visual basic 2010. It works perfectly fine on my computer, but when I give it to my friends they get an "Unhandled Exception". They even tried running the program as an...
View ArticleVS 2008 Open File Solution??
Well, I'm trying to program something(Don't want to get into the specifics) and I want it a file with a certain extension to open in it. For example, it will be able to open internet shortcuts(It has a...
View ArticleLooping through collection/group of controls
I searched but didn't see what I was looking for. I'm sure this has been asked/answered before but I couldn't find it. I have a number of checkboxes and would like to loop through all of them to see...
View ArticleVS 2010 Creating table at runtime
Okay, I have a project where I created a local database using VB 2010 (mapInfo.sdf). I added a new datasource and had it create the database from that. When I select the Create New Map button, I want...
View ArticleWhen are Windows Created?
I've been getting a very intermittent problem in a program. I know roughly what it is, and it is easy to get rid of, but I have no idea whether it is something I need to worry about going forwards, or...
View ArticleVS 2010 Make right-click equivalent to clicking left then right
I am working on a WYSIWYG HTML editor using a Webbrowser control. I'm working on ways to edit objects/elements (images in particular) after they have been added to the control. I want a right-click to...
View ArticleVS 2010 How to write code in dynamic made control?
I have a MenuStrip(Called MenuStrip1) and I'm trying to add text that the user inputs via textbox. Heres my code: Code: Dim o as integer = 0 Dim userTxt1 as System.IO.StreamReader Dim userTxt2 as...
View ArticleSerialize fontdialog data
I want to give users an opportunity to change the font face, size, color, etc in an application. I have been doing some research and it seems that the most effective way is to serialize the data. So...
View Articlehelp..memory partition first-fit and dynamic best fit allocation..using vb...
hi all... ,,,,,are there people here know how to make a program using vb that make memory partition ..fix partition first fit allocation, and ,,dynamic partition best-fit allocation. .... the program...
View ArticleVS 2010 Advice?
Hi, I am wondering what I am doing wrong here. I know this is probably very basic but I just can't do it, I have spent the last 2 hours trying everything and it just won't work. I am trying to find...
View ArticleDataGridViewComboBoxColumn + add.item("MyItem")
Hi all, I'm fighting a stupid piece of code for about 2 hours now. How do I do something like this: item.add Code: Me.DataGridView1.Columns(3).item.add("AAA") Obviously, this doesn't work. I know it...
View ArticleVS 2010 [RESOLVED] ToolStripButton Question
When clicking a ToolStripButton on a Windows.Forms.ToolStrip--if the form does not have focus--the click event wont fire on the first click. I have to click it a second time for the click event to...
View ArticleVS 2010 [RESOLVED] Need help with clicking a button in webpage
I'm trying to click a button in a website from my program. But I'm having no luck at all. This the element im trying to click HTML Code: <td class="dark"...
View Article