VS2010. Conditional Build. Two versions of same program in one solution ?
I didn't see a forum area specifically about configuring visual studio. So here goes. I've got a program but now I want to make two versions of it. Lets call them 'Home' and 'Pro' where the Home simply...
View ArticleDetect 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 ArticleVS 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 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 ArticleVS 2010 Object detection using webcam?
I'm trying to write a software to detect an object in realtime using the webcam video as a source. I've no idea about how to do it. I've seen some techniques that seems to filter some colors so it...
View ArticleAutomate a running process
Hi I use piece of software on my computer to make calls that requires me to log in and out at the end of the day, which sometimes I forget to do. I was going to automate this to it logs me in and out...
View ArticleVS 2010 TreeView - Remember all expanded nodes
Hi there, I have found examples and discussions on how to remember the last selected node, and reselect/expand that node after a refresh. What I want to do is remember all expanded nodes/node paths and...
View ArticleVS 2010 How to use ( Get Keyboard Layout Name ) and ( GetForegroundWindow ) ?
How to use GetForegroundWindow and Get Keyboard Layout Name to get current language of of windows while my app is minimized or not focus on it cuz i am writing in notepad i want to get the language if...
View ArticleVS 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 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 Article