VS 2010 How to reference a userform created datagridview from another
Hello, my friends. Once again looking for help. On-the-run, I create a datagridview (MYDGV) in my main userform (UF1). I need to populate it with data from another userform. Trying to code it, I get...
View ArticleVS 2010 Any way to prevent this "flicker" in an owner-draw combobox?
Hey guys, I've got a combobox control (Winforms) which I've set to "Drop Down List" style (because I don't want the user to be able to type text in the combobox). That works great, but I don't...
View ArticleCalling a Sub of the MainForm from a UserControl
Hi, I'm using a UserControl-Collection on my Mainform. Inside those UserControls I want a ClickEvent to call a _MouseUp Routine of the Mainform. I was able to get it working by declaring this _MouseUp...
View Article[VB2010] SafeHandle
My goal is to set an EXTERNAL window as owner of a my form. This simple code: Code: Dim OldParent As IntPtr Form Load OldParent = NativeMethods.SetWindowLong(Me.Handle, -8, ExtHwnd) Form Closing...
View ArticleProject Help
Hello everyone. I was told this is a rather simple project but I have no idea what I'm doing. Allow me to explain. I dont have any prior knowledge in programming, I just know I love computers and...
View ArticleVS 2008 Error in Writing data Not sure where my problem is.
I'm showing 2 pieces of code the first one works fine. The second one is the exact same code with one additional item added to it. and it does not work. Code: Sub SaveData() Â Â Â Â Dim mycommand As...
View ArticleVS 2012 I am getting an ERROR message because of a control on another form.
The message I am getting is "System.SR is not accessible in this context because it is a 'Friend'. I have attached a screen shot of the code with the error at the bottom. This is for a game. There are...
View ArticleVS 2008 How to setting VB goto form.shown not goto formload
If form.shown exist Attached Images Â
View Article[RESOLVED] How to pass an array number AND a variable?
If I have an array that a function uses, how can I pass it a variable and get back the output depending on which array # I pass it as well? E.G. Code: Public Function GetInfo(ByVal pstrMyVariable As...
View ArticleVS 2010 How do I update a structure
Code: Hello everyone, I am new to vb.net. I am working on a project where I have to generate the details for a bill (i.e. qty, price, amount etc) first. Once I am done with that I generate the bill...
View ArticleMysql query for getting result !!
Can anyone help me on this please?? I am trying to make a stock exchange system based on mysql database using vb... So i am stuck on : my sql table : inProduct, OutProduct and Stock... inProduct cells...
View ArticleHTTP Web Request
I am wanting to create a HTTP web request with a time out so that my program isn't delayed several minutes trying to connect to a website if it isn't online. What I am currently doing is downloading...
View ArticleList(Of T).FindIndex: How to handover an argument in the Predicate(T)
Hi, I'm using a List(of T) and need to geht the Index of one of the elements. The Search Predicate as shown on MSDN should look like that: Code: Private Function FindID(ByVal bk As Book) As Boolean...
View ArticleN-gram/Bigram Help
Hey guys! My brother has a VB assignment that is looking for N-Gram/Bigram handling. He asked me for help with it and I am at a roadblock. Essentially the program must read any .txt or .vb file. It...
View Article[RESOLVED] Message box not functioning how i want
Hi, I am in an introduction to Visual basic course and am trying to write a program similar to an ATM machine. I have a text file with some fake user bank accounts. I am trying to make a little text...
View ArticleVS 2010 Print External PDF without opening it, via string entered in a textbox.
Hello, I just want to thank you for reading this post first of all :wave: :bigyello: I want to print a pdf file located in a external (P:\) drive, without opening up the file. I have a userform...
View ArticleVS 2010 Database
Hi, I'm having a bit of trouble with my program I'm creating. It's a recipe program and I'm having trouble with the menu. I want the menu, of 30 recipes to be 3 columns of 10 recipe's (See picture)...
View ArticleChange node image based on an IF condition
I am trying to get a node image changed based on an IF, something like this If TextBox1.Text = String.Empty Then node1 image = A 'Maybe by manipulating selectedindeximage else: node1 image = B End If...
View ArticleVS 2012 How to check if the first word in textbox is "CLEAR"??
As previously written in this thread http://www.vbforums.com/showthread.p...19#post4569619 I am now trying to check if the first word in a textbox is "CLEAR" but even though I got some clues from OPUS...
View ArticleDownload file that is not direct link
Hello!! I tried to download a file that the url is not a direct URL. The url is like: http://www.webpage.com/original/XXXX/0 Results: - If I enter the URL on my navigator, the navigator redirects to...
View Article