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

[RESOLVED] Test for empty dataset

I've been unable to figure out how to do this although it ought to be really simple. I'm using VB 2012. Code: Dim connection As SqlConnection = clsConnection.GetConnection() Dim DataAdapter As...

View Article


VS 2012 Data And Dates

This may sound pretty noobish cause I never worked with it before, mostly cause I'm a hobbyist game programmer and never work with this stuff, but I'm making a program for a friend that involves saving...

View Article


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 Article

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

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

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

Image may be NSFW.
Clik here to view.

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


Image may be NSFW.
Clik here to view.

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

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

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

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


List(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 Article

N-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


Image may be NSFW.
Clik here to view.

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

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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

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


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