[RESOLVED] Alternative to System.IO.File.Delete?
I'm having an issue (in ASP.NET but this is more of a general VB.NET question) where System.IO.File.Delete works on a page outside a gridview but not inside of it. I'm a bit tired of trying to figure...
View ArticleVS 2012 NooB Question
Hello all, I'm teaching myself VB .NET and I am having a bit of an issue. I have a Form with two buttons... Button 1 is where I capture the path and file name using OpenFileDialog. Button 2 is where I...
View ArticleVS 2010 How come this code doesn't work?
Code: Imports System.Runtime.InteropServices Public Class Form1 Public Const VK_F10 As Integer = &H1 Public Const WM_HOTKEY As Integer = &H312 <DllImport("User32.dll")> _...
View ArticleHow can I do this?
Code: Imports System.Runtime.InteropServices Public Class Form1 Public Const WM_HOTKEY As Integer = &H312 <DllImport("User32.dll")> _ Public Shared Function RegisterHotKey(ByVal...
View ArticleFor loop
I am doing a program at school, it requires me to have a for loop, it need to count from 1 to 10 but it also needs it count it down from 11 to 2. Could someone tell me how to do this? Thanks
View ArticleVS 2010 Padding Questions
I am having an issue with padding and coding. Still early on in my visual basic understanding so please go easy on me. I am trying to get text to line up in columns of a few array variables and am...
View ArticleHow can I fix this?
This is my code for my timer Code: For Each Item In ListBox1.Items Threading.Thread.Sleep(TextBox2.Text * 1000) SendKeys.Send(Item) SendKeys.Send("{Enter}")...
View ArticleVS 2010 Change Comboxbox suggest font
I sometimes concatenate things like Comany Name, Last Name, first Name, and then use them in my combobox list items. I can set the font to a fixed width font for the combobox list items but the...
View Articlemonthcalendar help using two forms
Using VB2012. Have two forms. As of now, Form1 has a label equal to today's date. Next to it is a button called "Change Date". If the button is clicked it then calls up a monthcalendar on form2. Once...
View ArticleVS 2010 [RESOLVED] Question about SendKeys.Send
Hello, I have a question regarding SendKeys.Send; everything I've read leads me to believe this code should output the text I assign SendKeys at the cursor location in google, but when the program...
View ArticleVS 2010 How do I edit a listbox item?
I would like to be able to select a item in a listbox and press a edit button and have an input box pop up where I can type in my new text that I would like. I would also like to be able to double...
View ArticleVS 2010 Need to sort a listview according a combobox choise
Hello. Now I need some help with this little problem. I have a detailed Listview with 6 columns (headers are hidden), and I need to sort it by any one of its columns which is selected from a combobox....
View ArticleVS 2012 [RESOLVED] Datagridview --> Index out of range
Hey, got a question regarding an error I get while debugging. I created a small form with a datagridview (1 row, 2 columns) with this code Code: DataGridView2.Rows.Add("0.0", "0.0") after a few...
View ArticleVS 2012 Should I always use xml comments?
Hi! I need a second (or third) opinion about the xml comments you can add with ''' or /// in visual studio. Usually I just comment on stuff that needs explanation, and I always comment classes with...
View ArticleUpdating Mysql database with vb datagridview
Hi! I am creating a windows form with vb to edit a mysql database. I have a datagridview where i can view the database with custom queries. But, I want to save the edited cells back to the source...
View Articleproblem in validation fix number and decimal numbers
hi I use following regular expression to validate my numbers: Code: ^[-]?\d{1,15}(\.\d{1,3})? my validate numbers is : Code: 0 to 9 max length <= 15 decimal numbers are optional and decimal place is...
View Article2 Frozen columns and 1 scrolling column in middle??
I have three columns in an unbound datagridview. All three columns are populated via a button click. The first and third column must be frozen so that they do not scroll horizontally. The middle column...
View ArticleVS 2010 Entity SQL Code generation
Currently within the entity framework, I have created a Entity Data Model. From this I have generated a .edmx.sql file which contains the Required SQL code. I have then tried to execute this code by...
View ArticleRunning long term data grab from separate thread
Hi All, I have an application where I need to grab data from a high speed serial buffer. To process it in time I really do need to do something like the following: Essentially start a thread that...
View ArticleVS 2012 Add Option to "Select" tag with webbrowser.
i tried to add item to select tag with setattribute but it dont work :/ i want to add an item not to select one. thanks for help.
View Article