Quantcast
Channel: VBForums - Visual Basic .NET
Browsing all 27329 articles
Browse latest View live

Detect straight lines from an Image

I am developing a form filling application in vb6 or vb.net. In this I want to detect the location straight lines from scanned image and in this user will input the data and will print. Is there any...

View Article


[SOLVED] How to display bound column in ComboBox when form loads in vb 2010...

I am new to VB 2010. I have set the properties of the combobox as below: I have a ComboBox whose Display Source is set to "Managers Binding Source" and Display Member is set to "Manager Name". Under...

View Article


VS 2012 Combo Boxes and Databases

Okay, having an issue here. Firstly, this is my first post here; I've been reading the forum for a while. So, because of a situation at work, I've taken up programming again after not writing any code...

View Article

[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 Article

VS 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 Article


VS 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 Article

How 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 Article

For 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 Article


VS 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 Article


How 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 Article

VS 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 Article

monthcalendar 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 Article

VS 2010 How do I implement this code into mine?

This is my code: Code: Imports System.Runtime.InteropServices Public Class Form1     Public Const WM_HOTKEY As Integer = &H312     <DllImport("User32.dll")> _     Public Shared Function...

View Article


VS 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 Article

VS 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 Article


VS 2008 Change data table of the DataGridViewComboBoxColumn-cell only for the...

The existing data contains values that are not allowed to be selected for new records. If I bind the whole combobox-column to the reduced dataset I get errors, as some old value keys have no...

View Article

VS 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 Article


VS 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 Article

VS 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 Article

Updating 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 Article
Browsing all 27329 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>