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

Software Development Network >> Visual Basic

Visual Basic

New Question

Is there any way to autoclick with the mouse?
FrameWork or PowerPack?
How can I know when the property is read or written to, within a superclass, from a subclass.
Setting the start routine in VB 2005 winforms
How to structure directories for .vbproj's shared amonst several solutions?
GDI+ How to handle multiple complicated Paths individually
Exposing ActiveX Objects and their members
adding functions to a Botton in my Form
Adding 2 textboxes and display the result in a 3rd textbox
Excel Functions within VB

Top Answerers

Deepa7476
Selva kumar
Steve Jensen
Bill Henning
nater
Philly10407
Gage
Sanath4vcpp
Matt_343
Filip S
sitemap
Only Title

Answer Questions

  • arioule Closing a Form?

    Hi every one, I have a problem with closing form in vb.net.I have tow forms ,form1 with botton1 and form2.I have this code in botton1 to open form2 Dim newmform As New form2 newmform.MdiParent = form1.ActiveForm newmform.Show() but the problem is I want to close form1 after openning form2. this issue was very easy in vb6 with the event form1.close but I cannot do that in vb.net. so please give your help. thanks ahmedilyas wrote: if you close the main form (form1 for example) you will probably also close the other forms that are open. That is the problem I want to close only main form (form1 for example) without the other. You are setting MidiParent! Therefore, the new form m ...Show All

  • Ilan D VB Date to Access database - specified cast is not valid

    I have two date fields being inserted into a table in an Access database. In Access the format is set up as date/time (general). In VB it is the usual: Dim DateIn As Date Dim DateOut As Date They each store a value of DateTime.Now . The data actually gets into the database but everytime I hit submit I get "specified cast is not valid". I should note when I changed the format to text in Access and String in VB the error message went away. Below is my SQL to insert the fields into the database. Any help is greatly appreciated. Dim myInsertQuery As String = _ "INSERT INTO Test (DateTimeIn, DateTimeOut, PGMSSN, Batch) VALUES ('" & DateIn & "', '" & DateOut & "', '" ...Show All

  • mrboldt Help again...need help with a code i do not know how to make

    Hello,everyone again. I need help with a code i need to add the final touches to my lights out app,this is my problem I need to make a If then with all of these in it Button1.backcolor = color.black button2.backcolor = color.black AND SO ON TILL Button25.backcolor = color.black So i can make it If button1-25.backcolor = color.black then msgbox ("Congrats You have Passed the level,Please click on next to continue to the next level") End If But since button1-25 does not work,could anyone help me Thanks In Advance! what doesnt work you need to be specific. if the buttons are on the form, you could iterate through each button through the Controls collectio ...Show All

  • TemporaryNick Reusing Forms

    Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB I think this is exactly what I need. A few Questions from a true neophyte: 1. The Public statements (e.g. Public Class Form2 and Public F as Form 2 ) - are they module level code ...Show All

  • aka_Big_Wurm Count down Timer

    Hi, I am new to VB but want to write a timer that counts down 3 min like an egg timer would, I would like this count down to be visdable. I have been searching for code but am not understanding timer concepts. Any one out there that can help Thanks David Change: Private Sub ChangeNum( ByVal num As Integer ) Dim min As String = CStr (Int(num / 60)) Dim sec As String = CStr (num Mod 60) If sec.Length = 1 Then sec = "0" & sec End If Dim mytime As String = min & ":" & sec Me .Text = mytime If num = 0 Then aTimer.Enabled = False MsgBox( "Done" ) End If End Sub ...Show All

  • derrickcui USB Capture Card Device using SendMessage and Clipboard.

    Hi. I was hoping I can get some help through this site. I am streaming video from a usb video capture card. I use the function "SendMessage" to retrieve a frame, copy it to the clipboard, then redraw/resize it to draw on a picturebox. However, i would like to create a local clipboard and copy the frame to the local clipboard and not the windows clipboard. I have tried declaring: Dim m_clip as Clipboard But when I call m_clip.Clear or any other clipboard attribute, it would give me an error saying that the object was not declared. Am I doing something wrong Also, SendMessage hwndCap, COPY, 0, 0 This copies to the Windows Clipboard, can i directly copy it to the local one that I would create T ...Show All

  • billg51 Class Not Registered Error in VS 2005

    Hi We have migrated a VB6 (exe appllication which refered some other ocx/dll projects) application using VS2005 upgrade wizard. The application has migrated and while I am trying to debug the VB6 OCX control from the migrated VS2005 application I set the followings on the VB6 ocx project properties 1.in the component tab ---> i selected the, Binary Compatability 2. in the Debug tab -->I selected the wait for components to be created. I Run the VB6 OCX project & then I run the migrated .net applicaiton in VS 2005, I am getting the error "InvalidOperationException was handled : The Error is : Class not Registered (Exception from HResult: 0x800401154(REGDB_E_CLASSNOTREG))" and the Partial class frmM ...Show All

  • OnCallBI-DBA 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

  • cuberice animate system tray

    I can animate the system tray while my program still do events (for example: while program query database and fill all listboxes, the system tray will have a animated icon) There is no direct way to do this in the framework instead it would be up to you to replace the image being displayed over and over again to achieve the desired effect. Yes, you can use a timer to control this. You will want to make sure though (possibly through DoEvents() that you long running background work is giving a chance (from time to time) to the timer to do its work and the UI to be drawn. and can I have a timer to do that and at same time do the other operations ...Show All

  • Tom B how can I use the sender object to determine which of the panels fired the event?

    given the following; Private Sub Panel_MouseDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PanelDrawingLeftTop.MouseDown, PanelDrawingRightTop.MouseDown, PanelDrawingLeftBottom.MouseDown, PanelDrawingRightBottom.MouseDown how can I use the sender object to determine which of the panels fired the event Isn't it a cast Thank you, -Greg Dim pnl As Panel = CType(sender, Panel) If pnl.Name = "PanelNameImLookingFor" Then... Thank you! I like that idea! and also Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load ...Show All

  • PeteJM01 BindingSource AddNew Contraint BUG?

    This is my problem. I have a table in Access "ASV Letter" in which the field "Number" is the primary key. I connect to that DataBase with a DataSet. I have a button to add a letter. It opens a DialogForm where the user types the values of the new field. If he tries a value that was already used, it trips an error as expected. But.... If he gives a new letter and immediately after try again with the same number, no exception at all are raised! If he clicks the button again, the addNew method fires an exception (dbNull not allowed in the field). I really cannot uderstand why. Any one could help ALL OK. Thanks. EndEdit() just ends the current edit operation ...Show All

  • aaks Wireless Connections

    Ok so heres my problem. Im trying to automate the addition of a new wireless profile. I dont know if its possibly in VB or if its even possible in general and I have been searching endlessley on the internet. In the Wireless Network Connection Properties window, under the wireless networks tab is a button thats says Add... Instead of having to physically go to a users computer and add a new connection I want to make some sort of program or script that i can give to the user which they will run and automatically confiure the new wireless network connection for them along with the data encrption type, the network key and everything else. Any insight on this would be greatly appreciated. Thanks in Advance, Paul ...Show All

  • hye_heena visual basic

    hi can anyone help me i have just started using visual basic i am doing some work for college i have been ask to design a progra asking the user to enter their name ,address town postcode and phone number i have to create 5 tet boxs foer the information when i click for the second text box should it say text box two When you drag controls from the toolbox, each control is assigned a unique name, which is basically a control name, followed by a sequence number. So, when you drag TextBoxes to your form, they are assigned names like: TextBox1, TextBox2, TextBox3, ... These names probably don't mean anything to you so it's best you change them to more meaningful names: you can rename TextBox1 control to n ...Show All

  • dinesh1234 Textbox Control Question

    I have a few textboxes and thier size has been set to limit only 4 characters only. How do you move to the next textbox after the user types in 4 characters Davids Learning I believe you can use keyup event, then check for textbox length (4), then you focus your next text box. The following should work for you Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress, TextBox2.KeyPress, TextBox3.KeyPress If CType(sender, TextBox).Text.Length >= 4 Then System.Windows.Forms.SendKeys.Send("{tab}") e.Handled = True End If End Sub ...Show All

  • Sunil_Kumar_63c25f Deployed application referes to source files.

    Hi and thanks for your help, I have a solution with a DLL project, this dll works as visio plug in, using VS 2003 installer. I have no problem installing the application with Microsoft installer. Now I tried to use another software to deploy my assembly, I copied the project output (main and referenced DLLs) then used my installer to installer these files to the destination directory. The problem is that installation works fine until I change the directory name of my solution : I checked and found my deployment application is always looking at my bin directory of my solution. I am not very familiar with references and dont want to use VS 2003 installer. How to set references and have installed Assemblies used Thanks ...Show All

353637383940414243444546474849505152

©2008 Software Development Network

powered by phorum