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

Software Development Network >> Visual Basic

Visual Basic

New Question

codes to start reader
How to save data from a form to a xml file?
registering filetypes to an app
Remove newly added item in dropdown Combobox
Menustrip missing!
Closing a form immediately
Setting MessageBox returnValue to Yes
prevent tabpage from changing while input is validated
MSG Box/and simple text box question
Create Dataset and use dataset in coding

Top Answerers

He is Cool
FM2
Sanjukta
winstonSmith
karthik.sr
PeteJM01
WilderLand
Tom Waters
stormtreader
edwinzzz
sitemap
Only Title

Answer Questions

  • Marcus Widerberg ComboBox Frustration: Setting a default "SelectedIndex" when adding a new record refuses to work.

    Help! This is a very frustrating problem. Ok I have a typical databound Form with a bound ComboBox bound on the form Load event. I have a typical BindingSource and BindingNavigator Control with an "AddNew" button. When a new record is added to the dataentry form (i.e. not the combobox) I intend the combobox to default to the first value in the list by setting... mycombo.selectedindex = 0 I have this in the BindingNavigatorAddNewItem_Click event but it has no effect! I also tried placing mycombo.selectedindex = 0 in the BindingSource "AddingNew" event but this also has no effect. I have discovered that the "selectedindex" is somehow inexplicably changing itself back to  -1 As an experime ...Show All

  • ACCOUNTINGONLINE.US click and drag, howto?

    How to click and drag a component, such as textbox for windows application and smartdevice app I'm sorry..but it still got an error 'Location' is not a member of 'System.Windows.Forms.MouseEventArgs'. I try to change e.location with textbox1.location > no error! but I can't find the the textbox events such as MouseMove, MouseDown, Mouse Up still need help, thx Drap and Drop is a pretty big subject, can you give us more detail as to what you want to do Here is a link to a FAQ on how to implement basic drag and drop functionality in a control. It's a good starting point. http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=556&CategoryID=3&tabindex=302 Where are you trying t ...Show All

  • Mar_GP VB6 interop to .NET webservice client

    I have generated a C# client .dll for a .NET webservice. I did this by adding a web reference in VS and edited the .cs file. I have added interfaces and attributes for COM interop. I have it registered on a Win2k machine and cannot access it with VB6. Of course VB6 Intellisense works fine (I'm assuming due to the interfaces). When I run the app, it pukes with 'ActiveX component can't create object'. I understand this to indicate a registry problem, but I've done many REGASM's and GACUTIL's. I have seen many examples of VB6 to webservices, but they all use the MSSOAP3.0 toolkit. I have successfully accessed the webservice with the MSSOAP3.0 toolkit. Is it even possible to hack a VS generated webservice client .dll, and has anyone got an ...Show All

  • kperson Scrolling Treeviews and DataGridView together

    I have Treeviews and DataGridView side by side, and I would like to scroll these controls together. So if the user scrolls down one Treeviews or DataGridView, the other would scroll automatically. How should I do this in VB .NET 2005 I would keep the index of the first displayed row/node the same (or whatever index matches) in both controls. I don't know the DataGridView control too well, but I think it's these: TreeView.TopNode.Index DataGridView.FirstDisplayedScrollingRowIndex ...Show All

  • Siggy01 Rich Textbox coloring

    Is it possible to have separate color on certain words in rtb I have an application that search from SQL and that information is displayed on a textbox; it is similar to chat format, but the new information shown above unlike on the bottom like chat. I would like the newly searched item to be shown on top part of the textbox. How do I make certain word or line in color while others are different color For example, FirstName LastName Address1 FirstName2 LastName2 Address2 as I search for new name, it shows the newly found item on top, and the color applies. it is possible but tricky. Check this out.. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=845868&SiteID=1 ...Show All

  • rabi DataGridView Navigation

    Hi, im sick of this error: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function It happens, when i use (1 case) : MyGrid.currentcell = Mygrid.CurrentRow.Cells(0) it also happens when i try to remove a row, but not in all cases, how can i avoid this fu#~@n error . . . thanks in advance It's the same, i've tried that, with index, with names, with e.rowindex (when possible), with current row, theres no diference :( try using mygrid.currentcell = mygrid.item(0,mygrid.currentrow.index) not sure if it will make any difference though What is it that you are *really* trying to do Do you want to prevent users from being able ...Show All

  • Leo Kent Button1_KeyUp

    Why it doesn't work when I quite hold of button1 Private Sub Button1_KeyUp( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Button1.KeyUp MsgBox( "Button1 is up" ) End Sub Thanks Thank you, DMan1 . It works. Private Sub Button1_MouseUp( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseUp MsgBox( "Button1 is up" ) End Sub It's possible but I don't know to do it. I suspect you are confusing KeyUp and MouseUp. Private Sub Button1_KeyUp ( ByVal sender ...Show All

  • ArchanaG Select Case statement being evil

    The select case statement is out to get me! Has anyone else run into the trouble of having a Select Case statement and one of the case statements has hit if you look at the data, but refuses to hit anyway That probably doesn't make sense... Put it this way... I have, say, a ListBox control that has three IP addresses in it. For argument's sake we'll say the three items are: 192.168.0.1 192.168.0.2 192.168.0.3 These items have the indices 0, 1 and 2 respectively. Now, inside a function that receives a string of data (T) from a network user I have code that's something like this: Dim X As Integer For X = 0 To (ListBox1.Items.Count - 1) Select Case ListBox1.Items(X) Case T 'Code segment 1 Case Else 'Code ...Show All

  • Kevin Stephens Crystal Reports in VS 2005

    We are using VStudio 2005 Professional at work and it comes with a version of Crystal Reports. Does anyone know if this version of CR is a sample or is it a full version Thanks. Oh, I didn't get that from your original post. I'm not sure, but I don't think that has anything to do with versions. It sounds like you've got some empty properties on your report and you'd like to hide them. If that's the case, you can conditionally suppress fields or do some text formatting to "pretty print". It's a full version in that you can deploy reports freely withouth having to worry about licensing. I'm not 100% sure, but in earlier version ...Show All

  • Tryst wrong Count of Records

    Hi, I am having troubles with the count of records in a Form. All my Tables used in my Access database are linked tables to an SqlServer. The Form I use is a wizzard created form and the recordsource is simple like "SELECT * FROM tab1 join tab2 ..". I want to display the number of records in the form, but it seems, that the recordset does not load all records at once. What i did is: Private Sub Form_Current() lblRecordCount.Caption = Recordset.RecordCount End Sub But when I open the form, it displays just "16", if i move to a record below, it changes to "28", when i scroll to the end it finally displays "100" - which is really the right count. I tried this also with a new database, where i created a table with 500 records ...Show All

  • Vonny232 Save

    The menustrip has a button to save...How do you make it work This will write the contents of a textbox on the form called textbox1 to a text file called c:\test.txt My.Computer.Filesystem.WriteAllText("C:\test.txt", Me.textbox1.Text, False) i want to save the form with the text in it indeed you can. you can either have a "Settings" class for example, to set your settings such as "display splash screen on start up", then you can serialize this class and deserialize it on startup, which restores the values back into place however I believe that you are very new to VB/.NET development so we will ...Show All

  • Alexey Nayda Function to open a form, then when it is closed, return a value back to original form

    Hi Guys! Basically I'm after a way I can open a form (say, form2 for the exercise), then when form2 is closed, the function will return a value from a textbox on form2, obviously calling the function from form1. I've got something like the following... #FORM2 Public Class Form2 Dim Showing As Boolean = True Public ReadOnly Property ValueIWant() As String Get ValueIWant = Me .TextBox.Text End Get End Property Public Function GetValueFromForm2() as String Me.Show() If Me. IsShowing = False Return Me. ValueIWant End Function Public ReadOnly Property IsShowing() As Boolean Get IsShowing = Showing End Get End Property 'There is also a sub that alters "Showing" to false when a button ...Show All

  • TaiKun enabling readonly property for textboxes on a form in a for/foreach loop

    Hi, I have some forms and i have several text boxes on each. Some are on the form and some are in groupboxes. Now I want the readonly property to be true for some textboxes and some textboxes on group boxes. I have done this but it won't really work in that context. Dim ctrl As Windows.Forms.Control For Each ctrl In frmRslCapture.Controls If TypeOf ctrl Is TextBox Then ctrl.Enabled = False End If Next Any ideas Hi mate, I already know that enabled and readonly are 2 different properties. The line where i write it doesn't work in that context explain that, what i tried to show in the code is that the code works for the enabled but i can't access the readonly property like th ...Show All

  • Andre kyros Looping

    How do I setup a for next loop array to open files if I don`t know how many files are in the folder Sorry I forgot to mention that I am trying to get image files for a slide show to open in picturebox and the only way that I have been able to do it is to specify the number of files in the folder. I figured out the memory exception. My dir is d: instead of c: Now I am getting"Index was outside the bounds of the array" I am still playing around with it though By the way thanks for the help.I am a complete beginner at this.I try to figure things out for myself but this has stumped me. I am getting one picture to load now ...Show All

  • MF Recruit How to execute a remote application

    Hi all, I can't understand how to execute an application on a remote computer. I have an application on a server and I need to create a procedure in this application, that runs (execute) another application on another computer. I have tried with the Process class, the Management class. But can't do it. Can anyone help me Tnx Perhaps a little more description on what applications you are talking about may help. You may want to consider something like. .NET Remoting or Web Services for executing processes on a remote machine. Good Idea Spotty, Im goin to try a WebService. Thank you ...Show All

303132333435363738394041424344454647

©2008 Software Development Network

powered by phorum