-
- What happens when your signature changes?
by Bob Pokorny
- 1 Replies
- Last post
by BinaryCoder
- Hi there,
I have a question on how to resolve this particular problem...
I have a project in vb.NET that handles all my database updates. In this project there is a class that exposes a method to update the database that accepts a variety of arguments...for example...
[Project1]
UpdateCompanyInfo(ComanyName as string, Address as string, Phone as string, etc...)
[Project2
-
- Filtering with WHERE 1 = 1 In SELECT Statement
by Moonshadow
- 14 Replies
- Last post
by ahmedilyas
- I am trying to filter a DB search using WHERE 1 + 1 in my SELECT statement and a textbox and combobox for filtering. I adapted this from some C# code and it runs without errors, but no filtering (returns all rows in the table). Would greatly appreciate some feedback as to whether this is a valid approach and, if so, how to make it work.
Code Snippet
Dim conn As New SqlConnectio
-
- Raising events
by anubisascends
- 2 Replies
- Last post
by anubisascends
- I was wondering if the following is possible: I have 1 windows form and 2 user controls. Each user control has a shared event, I would like to use the shared event of UC1 to raise the event of UC2. Thank you for your help.
-
- properties not available for controls
by titous
- 2 Replies
- Last post
by titous
- hello,
i'm making a spreadsheet with several buttons and namedranges. i've been working on it for a while and i am almost finished. today, when i started working on my solution, for some reason i am not able to add controls to the worksheet anymore. also, when i click on the controls (button) that are already in the worksheet, i am not able to see it's properties in the properties window. w
-
- There is already an open DataReader associated with this Command which must be closed first.
by chazparks2
- 3 Replies
- Last post
by Bruno Yu - MSFT
- When I get to this segment of code
Code Snippet
Me .taElementTypeDep.FillByElementTypeDepRecno( _
Me .DsQI02414Dev.tblElementTypeDep, _
intElementTypeDepRecno)
I get the error
There is already an open DataReader associated with this Command which must be closed first.
However, I haven't created any specific datareader that should be opened.
-
- Empty combo box Raises "Object reference not set to an instance of object"
by S. Khawar
- 5 Replies
- Last post
by cybertaz69
- Hi,
I am a newbie to vb .net, I made one database fom when I want to insert data through combo box (via insert query) to database it raises "Object reference not set to an instance of object" if I select any value it works fine but if it's empty it raises above exception,
'Set the SQL string
objData.SQL = "Insert into letters( REF_NO , PREP_USER_ID, SCND_IMG_NAME, REMAR
-
- how to extend a class
by centech
- 14 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Sorry this is in the same line as public vs private.
I have an instance of a class being created on one of the web pages.
how can I access a method of this class object in my report page.
Example:
This method exists in on the report server class
Public Class ReportServer
'Declaration of variables
Public Sub LOGFile( ByVal Desc As String )
Dim sw As S
-
- Obtain MAC Address
by gandalf29
- 2 Replies
- Last post
by Dave299
- How can my application to obtain the MAC adress of the PC in wich is installed
Como puede mi aplicacion obtener la direccion MAC de la PC en la que esta instalada
Thanks!
Gracias!
-
- how to print dialog
by saran89723
- 1 Replies
- Last post
by Tailor
- hi guy, it is easy to build print dialog in vb.net
-
- Ampersand problem.....
by Stinger
- 14 Replies
- Last post
by spotty
- hi,
I wanna see the text " Hello & how are you " in a Label. But Label doesn't display "&". I tried converting it separately, but no use.
If anyone knows a workaround, please respond....
Thanks in advance...
-
- How to Detect USB Flash Drive
by blabus
- 12 Replies
- Last post
by Frymaster
- I am making a program that will allow a user to use any USB flash drive as a key, that when inserted, will automatically (upon validation, of course) enter login and password data into web forms, applications, and maybe even Windows Logon. But first things first: how to I detect when a USB key is inserted into the drive, for instance, perhaps just detect the last/latest inserted drive
In additi
-
- passing value between mdi child to parent
by abukede
- 3 Replies
- Last post
by nogChoco
- hi.
im trying to pass the value from a datagrid row in a mdi child form to a text box in the mdi parent form.
i now how to pick up the value from the datagrid to a variable but i cant past it to the textbox in the MDIparent form.... :(
thx in advanced
-
- Data not refreshing - (totall newbie !!)
by SteveT101
- 3 Replies
- Last post
by Derek Smyth
- Hi
I am very new to developing and so you will all get to know me very well !!! This is my second attempt at developing using VB and last time I worked out many things for myself and in most cases the end result worked (sort of) but was not robust or efficient so this time I will be asking the experts and getting the "right" answers and will hopefully end up with a more useable ap
-
- Visual Studio error: Not enough storage is available to complete this operation.
by Bob Joziasse
- 11 Replies
- Last post
by Bob Joziasse
- I want to ask a queation about this following error; Error Visual Basic compiler is unable to recover from the following error: Not enough storage is available to complete this operation. Thank you for your time. Cheers, Bob
-
- Reading an XML Document into a dataset
by Jake_UK
- 2 Replies
- Last post
by Jake_UK
- I have a programme which returns an XML document from a HTTP operation and reads the resultant document into a data set by writing to disk and then reading from disk as below:
Dim oDoc As XmlDocument = App.ExBroker1.GetMUBets(strMarket)
Dim strFile As String = "C:\ReturnMUBets.XML"
oDoc.Save(strFile)
myds.ReadXml(strFile)
This seems quite a cumbersome m
-
- Need a way to store and retrieve 31 Strings in a Property
by Tim8w
- 14 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Since I haven't had much luck solving this problem myself, I'd thought I'd throw out what I'm trying to solve and see if someone has another way of doing what I want.
I have a CustomCalendar control. It contains 31 RichTextBoxes (one for each day of the month) where data can be entered during run time. I would like to have a Property where this information can be loaded and retrieved by the
-
- Error, HRESULT: OX80210015
by Ekukpe
- 3 Replies
- Last post
by JGalvinBackupEarth
- My problem is incoporating WIA Automation into my VB application. I did add the component but the Common Dialog does not show when I run the application. I got this error " HRESULT: OX80210015 ". I am trying to access my scanner device or at least see the Common Dialog to access the device. I used this code: "Set myDevMgr.Device = myComDialog.ShowSelectDevice()" , run the application but ofte
-
- Form Border Color
by JFSNUTTER
- 7 Replies
- Last post
by JFSNUTTER
- Is it possible to change the border color of a form that contains the control box I know that one can set the color of the form through .backcolor; is there any comparable way to do the same for the border area on the form
-
- refer to listbox control by name - vb .net 2k5
by Trillobyte
- 3 Replies
- Last post
by kleinma
- hi all, hoping you can help...
I am migrating some VBA code to VB.net 2005, and cannot find how to successfully refer to a listbox object by name...
in VBA i was using statements like:
i = Me.Controls(strLst(1)).ListCount
intArray1(intArraySize(0)) = Me.Controls(strLst(0)).List(i) '
pretty basic, they're encapuslated in a sub that handles byvals for controls being used.
-
- textbox to *******
by xion.truth
- 3 Replies
- Last post
by Jared Parsons MSFT
- got a password textbox linked to my Database. Everything is working fine but i need to password to be ****** out. I'm sure this is easy but i have been messing with it and can't figure it out.
Thanks
Michael
-
- System.Data.DataRowView in Combobox
by SKK*
- 2 Replies
- Last post
by SKK*
- Hi. I'm new to VB2005 and I'm trying to load a combobox from the combobox tasks (when right clicking on the combobox) instead of adding code to do it. I have the checkbox to use databound items checked. I've selected a table from my data sources to be the datasource. When I do this, it points it to a BindingSource. Then I can select my DisplayMember and ValueMember properties related to that Bindi
-
- Connection with SQL Express Edition 2005 unsuccessful
by sambhavjain17
- 2 Replies
- Last post
by nmadd
- Hello
I was just seeing the video tutorials on MSDN Learning center for how to connect sql databse with vb application.
But what happens is that everything goes on fine.
I get the data grid view on my form, or even the details view of my table.
i.e. It connects to the database and retrieves information from there,
The program runs without any error or exception,
I can see the da
-
- VB 6 and WinForm
by mkgan
- 4 Replies
- Last post
by mkgan
- Hello, I am upgrading my VB6 program to .NET. I have a question here: Is there any way to implement 'ActiveX EXE' in .NET
Thanks in advance
-
- Memory VB.Net
by Micky4401
- 1 Replies
- Last post
by Derek Smyth
- Hi,
I am using vb.net - I have a program that display 3 X 1 = and 3 buttons display 3 separate answers.
i.e. 3 X 1 =
Me.ButtonA.text = 3 Me.ButtonB.text = 6 Me.ButtonC.text = 8
The click event for ButtonA above, if the user selects it :
It will diplay a message that says: Good Job!
Also, the other 2 buttons Visible property will be set to False - so they
-
- Datagridview Issue - SQL data problem
by BrianMM
- 2 Replies
- Last post
by BrianMM
- The problem I am having is this: I have 2 save buttons on my form. 1 is part of the bindingnavigator and the other is just a simple button(btnSave). btnSave is used to save changes/new records in the datagridview back to the SQL table. The binding navigator save button is used to save Invoice records to a seperate SQL table. When a new invoice is entered, the bindingnavigator save button is clicke