Software Development Network Logo
  • SQL Server
  • Visual C#
  • IE Development
  • Smart Devicet
  • Visual Basic
  • Visual Studio
  • Windows Vista
  • SharePoint Products
  • Microsoft ISV
  • Visual FoxPro
  • Windows Forms
  • Visual C++
  • .NET Development
  • VS Team System
  • Game Technologies

Software Development Network >> Visual Basic

Visual Basic

New Question

my.settings string,integer,color,bool work, system.data.datatable does not?
Scanning Documents
Convert Week Number To Date Range
Classes and definitions
How do I write a box to a textfile and print
How to sort a TreeView numerically
Using LIKE inside Stored Procedure.
How to: Print an Mdifrom?
Regression Equation / Statistics in VS 2005
Retrieving the Current Caret Position from a Textbox

Top Answerers

jqq
D J Mitchell
english_d
Raihan Iqbal
Phil Gould
joginaidu
Thomas.Goddard
Joel Hensley
Revant
Daniel Kelly
American Baby: Parenting Twins and Multiples
Only Title

Answer Questions

  • Ponnurangam navigation between forms

    i have a project with 17 different forms all being housed in a mdi parent form. i have tried to impliment a previous button on most of the forms, which is complicated by the fact that there is more than one way to get to some of the forms at this stage, i have used a global variable which is changed each time a form is closed, then a case statement within the previousbutton_clicked event procedure that will use the variable to figure out which form to go back to. this seems to work, but i was wondering if anyone knows an easier or better structured way of achieving this functionality. any ideas will be greatly appreciated. thanks in advance, Mark You can look at the following page: htt ...Show All

  • Punpromk Connection to SQL Server (Express) from VB.NET (newbie)

    Hi All, Hope someone can help me on this or point me in the right direction. I have looked at lots of threads and other parts of the forum but seem to be going round in circles so anyone if you can please help. So far this is where I'm at ---> 1) I have SQL Server Installed and have created a small 'test' database. 2) I have created a single table called "Account" added 4 fields and added some data, again all within the SQL Server interface. 3) Within VB.NET I've opened a new 'application' and from the 'Toolbox' --> 'Data' have added SqlConnection1 and SqlDataAdapter1 to the 'form'. For the moment I've left the control names as they are. The ConnectionString (on SqlConnection1) is as follows --> work ...Show All

  • PaulSmithLondon Using Array as Data Source for DataGridView Control

    I have a VB2005 windows app that contains an integer array ... call it X. Is it possible to assign the values of this array to a DataGridView control I simply want to display the elements of the array and the DataGridView control seems like the proper tool to use but I don't know how to make the array the control's data.source. Thanks. you can do so but there will be some problems using an ArrayList if it contains these values. If the arraylist does have an object other than string/integer etc.... then it will show it properly. What type of array is it ...Show All

  • profesacutz How do I add values to datagridviewcomboboxcolumn from an sql source?

    I have the following code which is used to input values into a table that contains ID | Item | Combobox The Combobox column stores the name of the combobox (I have several comboboxes that store values in this table) and the Item values are the items that go into the corresponding comboboxes. I need to have the values from that table where combobox is "Funding_Source" to populate "FundingSourceDataGridViewComboBoxColumn" here is the code I currently have: Private Sub DataGridView1_CellValidating(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellValidatingEventArgs) Handles DataGridView1.CellValidating Dim cnnDB_DBNAME As SqlConnection = New SqlConnection(strConn) Dim cmData As SqlCommand ...Show All

  • motorola Trouble accessing module from custom user control.

    I have a seemingly strange situation. I have module in my solution called IO. I use it, among other things, to share some variables amoung classes. In it I have a sortedDictionary called variables and properties (readonly) getVariable and (writeonly) setVariable. I have been able to use these properties fine in all of my classes until I try tried doing so on a custom control. My custom control exists and is already placed on a form. I then add the IO.getVariable(varName) statement to the custom control and complile. It compiles fine, but once I go back to the form on which the custom control is already placed, I get an error saying that "object IO not set to instance of object", and the form will not show. Since IO is a ...Show All

  • bryanedds Interaction between VB user interface and C.

    Hi. i m dveloping an application in which an LDAP server is involved using VB and C. I want to know how VB user interface interacts with C and vice versa. Eagerly waiting for the reply. Thanks in advance. P/Invoke is designed to do exactly what you'd like. Can you post the signatures of a couple of the functions in the DLL and we'll get you started on how to write the P/Invoke signatures for them. hi parsons, I have written some C code which needs to get some values inputted in the VB UI . Then i need to perform some operations on those values and again i have to send back the resultant values to the GUI. Can you please guide me on this. Thanks in advance, If you are using Vb 6.0 pl ...Show All

  • A.Kahn Storing the value of a field from a table into a variable to be displayed on the screen

    I know I am close with what I am doing but haven't found quite the right combination yet. I am a newbie so please bare with me!! I have a table called Dimension1Goal1 in a dataset called CCADPDataset that I am trying to pull the value of a field called Intervention1_1 out of to display on the screen. Her is what I have coded: Dim DimGoalMethod As String DimGoalMethod = CCADPDataSet._Dimension1_Goal1.Intervention1_1Column I keep getting the error Value of type 'System.Data.DataColumn' cannot be converted to 'String'. The properties of the field is a system.string, why can't I do this and what should I do HELP!! CCADPDataSet._Dimension1_Goal1.Intervention1_1Column is a column in the dataset what you want is a s ...Show All

  • ManuelT printing a hard copy

    So i have an app that has text boxes, labels, and comboboxes. the program populates a database. What i need to do now is Print a hard copy of the data (from a command button on the form) and send an email to someone (through Outlook).. Can anyone point me in the right direction on how to do this Thanks. Ian. yup thats the problem - the code snippet in the documentation was just a sample. So it was reading a text file, and now you are reading a file (same effect). you need to not read a file but instead read the textbox: so instead of this:   While count < linesPerPage line = streamToPrint.ReadLine() If line Is Nothing Then Exit While End If yPos = ...Show All

  • dusda bitmap to an icon

    i am not positive this belongs here but i have developed a few program which i would like to place a custom icon on. is there a way or a converter i can use to create this icon and deploy it, i tried to make a bitmap of a simple icon, but see no way to make it into what ever visual basic/visual studio requires. it keeps saying it needs an 'icon' file so how do i make one meow.. There are a couple of ways to do with this. If you google on the net, http://www.telegraphics.com.au/sw/ ' this is an Aussie gentleman who gives away a free Icon plugin for photoshop. He requests a $5.00 paypal donation. I use this plug and it's wonderful. Also VB accelerator has a great program called: Alpha Icon Creator. - ...Show All

  • miller0521 Different Versions ? What is that?

    hi folks Just joined here ,curious about few things before i leap into Visual basic What are these different versions here Visua Basic Express Edition Visual Basic 2005 Visual Basic 6 Professional ,standard etc etc editions...So confusing ..Could some one elaborate this please.. Thanx There are many versions of Visual Basic : Visual Basic 6 (1998) Visual Basic 7 (2002) (.NET) Visual Basic 7.1 (2003) (.NET) Visual Basic 8 (2005) (.NET) There are many editions, one of them is Express and it's a 100% free edition. Product Feature Comparisons . Basically the current versions of Visual Basic is Visual Basic 2005. There are various versions of the product and VB express (Full name is VB 2005 Express Edition) ...Show All

  • Abdullah.Ahmed Load 1997 V6.0 MSMAPI32.OCX so upgrade Wizard will work?

    Dear VB Community, I am a hobbyist trying to help out at work with an old VB6.0 program that we want to move to VB .NET. The one and only VB6.0 programmer we had left along with our VB6.0 compiler. So, I have Visual Studio 2005 and VB .NET and do not want to start from scratch. Here is the error I get when I run the upgrade wizard: "Visual Basic Upgrade Wizard error Upgrade failed: Exception occurred: Could not load referenced component: MSMAPI32.OCX (1.1.0) You need to install this component before you upgrade the project. It is recommended that you install VB6.0, with all referenced components, and ensure the application compiles and runs before upgrading." Thanks for any help/guidance you can give. ...Show All

  • Matt_br Combobox Question

    In access, you could refer to the value that existed before the new value was commited in a combobox like me.combobox1.oldvalue I have a combo that I am wanting to verify that the user really wants to change the value. How do refer to the old value in VBE How do you undo what the user has done if needed Davids Learning To do this you will have to maintain a copy of the old value of the combo box in a variable on the form, and then handle the TextUpdate Event. You can then compare the new value to the old value and then prompt the user as necessary. There is no way to cancel the change, so you would then need to change the value back in the event that the user selected "cancel&qu ...Show All

  • Sattva PrintForm documentation/examples

    PrintForm seems to have many properties and methods, but I cannot find documentation on them or any examples to illustrate their use. Is any available For example, I would like to be able use landscape mode and "size to page". As it is, it seems all I can get is a small snapshot of the form in the upper left-hand-corner of a portrait mode page with most of the page blank even though the form is large enough to need most of a page to print clearly. There may be a straightforward way to do what I want to do, but I have been unable to discover what it is. Thank you in advance for guidance. This code will make it print landscape: PrintForm1.PrinterSettings.DefaultPageSettings.Landscape ...Show All

  • IamHuM Open File Dialog

    Ok, I'm new to VB and only know how to do simple things(show new forms/dialogs, change text in textboxes, etc). I have used many other languages so I'm not new to programming if you need to know. I saw that theres an open file dialog I can use, and its exactly what I want, but I have no idea how to get what the user selected in the dialog. Also, what would I use to display a list of strings on top of each other and the user can select them. When the user clicks one, I would like to be able to know which string the user has selected. I have Visual Basic 2005 Express if it matters. Thanks for any help. Thank you, I learned a lot from your posts. Open file dialog question ...Show All

  • hazz Bolding Treeview nodes !!!!

    Hi I am using vb.net 2002 Actualy i want to bold some nodes depends on some condtions. i used this code for bolding N.NodeFont = New Font(Me.Font, FontStyle.Bold) its working fine.. problem is ,suppose node text was "Microsoft Book" after bolding that node, it may loose some charactor .for eg. it will become " Microsoft Bo " or " Microsoft Boo " its depends on its length.Depends upon its length we may lose more charactors. how can i overcome this thanks in advance Hi i did it in 2005 . it was easy.... Any Way Thanks For Help You could change the "Backcolor" of the Node, if the goal is simply to highlight it. Note also that the TreeView has an automatic ...Show All

94959697989901234567891011

©2008 Software Development Network

powered by phorum