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

Software Development Network >> Visual Basic

Visual Basic

New Question

Errors and Warnings
VB picking up old version of Framework
How to upload files
How to get context menu for webBrowser control
Help creating a Excel formula or a VB Macro for a specific function
Limits on Memory Use?
DataGridView Row Slection Question
drawing on forms
Key short cut help
Culture date format and system dat format conflicting

Top Answerers

kewpcg
wesneon
kevow
Helge Norvang
James Asher
Tridex
Michel Dion
NoelF
deGame
that_guy
sitemap
Only Title

Answer Questions

  • Cezar Felipe Please will someone give me a code for a webcam?

    Please will someone out there send me a code so i can view my webcam on a windows form. Please , Please , PLEASE! Thank you everso much. Looks like some code. From the description, its 1.1 framework stuff developed using 2003 but as the original poster didnt provide any specifics about equipment and development environment. I suppose this should give them something to work with. Guys/Girls - when you post a question - try to provide as much specific details as possible. If your looking for assistance we need to know specifics to give you a good answer. The more specifics you give the more likely you are to a. Get an answer b. Get an answer with addresses your specific question c. Get a ...Show All

  • Michal Laskowski To Microsoft staff about vbNull.

      Hi, Why is vbNull not Chr(0) instead of "1"  or = System.DBNull.Value See>> Dim s As String = Chr(0) MsgBox( " String 's' is = " & s) or>> Can yourselves not make it the default value for a string instead in future versions of Visual Studio please Dim s As String = System.DBNull.Value.ToString MsgBox( " String 's' is = " & s)  I presume Chr(0) = System.DBNull.Value.ToString   See also http://asciitable.com/ about Chr(0)   Regards, S_DS   You are mixing stuff up here! DBNull.Value is something completely different. That is NULL in the database (means NULL of a member of a relation). If you want to set a string to&nbs ...Show All

  • Wayne Sepega What are some tips for converting VBA to VB.NET

    How would I convert this VBA statement to VB.NET ReDim Preserve GroupNotes(0 To GroupNotesLast) As GroupNoteStats Thats a pretty conveluted VBA statement with the declaration and redim in the same statement But "redim" and "preserve" are keywords in .NET...the "Group" stuff is identifiers so the correct VB.NET syntax would look something like this: Dim GroupNotes (5) As GroupNoteStats Dim GroupNotesLast As Integer = 10 ReDim Preserve GroupNotes (0 To GroupNotesLast ) redim is re-dimension, in other words extending the length of the array I believe (been ages since ive done VB6/VBA) ...Show All

  • Maranello Can't close Excel with VisualBasic 2005

    I'm using excel.application in visualBasic 2005, and I don't manage to close it. I tried some solutions found on the net, and appart the one killing the processus "Excel" in the task manager, no solution seem to work. In this simple example, Excel disapear from the task manager, but with the line in comment activated, excel stays open. Launching the function a second time create a new Excel Process, but close it after (one is still staying in the task manager). Please, help me to close the processus. Dim xlsheet As Excel.Worksheet Dim xlBook As Excel.Workbook Dim xlapp As Excel.Application Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All

  • Philipp Konradi ListView Key Update Possible?

    Is it possible to update the key of a listview I can add and delete items, but update would be cleaner, if possible. Thanks Yes you can, the ListViewItem.Name property (misnamed a bit) is the key for the item and can be assigned. For example, this code works fine: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click With ListView1 .Items.Add("key0", "Test", -1) Dim item As ListViewItem = .Items("key0") item.Name = "key1" item = .Items("key1") Debug.Print("{0}", item.Text) End With Thanks! You're right, the name is kinda crappy. I'll tr ...Show All

  • cdx11356 Textbox Focus From Form Load

    I am trying to focus a textbox when the form loads. Although TextBox.Focus() works with most events, It do not work when in form load or activated. I would be grateful for help Many thanks for your prompt response. I have tried the alternatives you suggest without success. It’s important for user friendliness to have an input textbox focused when the forms loaded. It would be surprising to say the least if MS development engineers have omitted this. In vb6 setfocus worked fine. Help Please. Setting the tabindex would presumably ruin the tab order on your form. Have you tried setting the tabindex = 0 TabIndex = 0 works, so do ...Show All

  • Skippy1313 Hosting Excel Appliaction as a contorl in .Net form

    Hi every one,   I need to host Excel application inside my Application main Form that I am building I want to add it as a control same as web browsers in VS .Net from toolbox. with webbrowsers control we can drop it in the form and then configure it. How can be done with Excel or World Hi- If you have Office 2003 (or earlier), you can use OWC (Office Web Components). There is a spreadsheet control, chart controls, rich edit control, and a few others. To use this in VS.NET: - right-click the Toolbox - Choose Items... - select the COM tab (OWC is a COM component) - choose Microsoft Office Spreadsheet control - drag n drop from the toolbox to the form - start setting ...Show All

  • England1000 Header File

    Hello All, I have written code in c++ it contains some Header files.Now i am migrating vb.net 2005.How to include the header files from the existing C++ Code Thanks in advance. Amar. VB Doesn't use 'header files' as such, let alone C++ header files. What is in those header files Which header files do you want to include ...Show All

  • Craig G How to open an xml file with vbcode and replace strings in it

    Hi .. Thnx for sparing your time. I have an xml file generated by informatica. eg - abc.xml I now need to read this file and search for a particular tag in the entire file .eg- </name> Once i find this tag i need to move all the text after it to a new line. so if its like (This is how an xml file looks when you say view source - it opens as a txt file) <age><add1><add2></name><name><age><add1><add2> After adding a new line feed it should look like <age><add1><add2></name> <name><age><add1><add2> So i need to find text and replace it with a new line feed character. it should bascially b -replace(</ ...Show All

  • white2grey how to draw analog meter(gauge meter) in vb.net

    hi, i need to draw a full circled gauge meter in a window form. it should have the needle in the zero position and change accordingly to the value we provide to it plz help me its urgent Moved to VB forum for better responce. You can rawly draw on the winform. Get the Graphics, use the pencil or something else. Or for some encapsulation, you may want to make it a control that can be used later, then you have to implement a customed control. Which part are you confused with, the GDI+ thing i want to design it as a windowcontrol library i have done it in vb6 with three different gif images and its working fine. i dont know the similar syntax in vb.net. in vb6 picture1.line is used to draw the line ...Show All

  • Alex Yakhnin - MSFT savedialog problem

    hey im working on a html editor program. and i of course want to give users the oppertunity to save their pages. i have the savedialog, but how do i make the dialog save the content that the user wrote all content is in a textbox named "edittxt." hop you will help //Martin hey that solved the problem, thanks. i also fixed the open dialog the same way, there isn't any easyer solution to the open dialog, is there just a thought anyway ;) //Martin Or if your using VB 2005 or VB Express then you can use the My.Computer.Filesystem.WriteAllText Method If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then My.Computer.Filesystem.WriteAllText(SaveFileDialog1.FileName, ...Show All

  • danmbuen WIA : get devices list

    Hi all, I want to make a VB Project to capture images from my webcam. I use WIA to make it, here my code : Dim class1 As CommonDialogClass = New CommonDialogClass Dim d As Device Try d = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, False, True) Catch ex As Exception Debug.WriteLine(ex.ToString()) End Try But I get this message in debug box : Une exception de premiere chance de type 'System.Runtime.InteropServices.COMException' s'est produite dans WindowsApplication1.exe System.Runtime.InteropServices.COMException ( 0x80210015 ): Exception de HRESULT : 0x80210015 a WIA.CommonDialogClass.ShowSelectDevice(WiaDeviceType DeviceType, Boolean AlwaysSelectDevice, Boolean CancelError) a WindowsApplication1.Form1.Se ...Show All

  • maverick_majnoo Visual Studio 2005 SP1

    Hi all I just want to know if SP1 for VS2005 release date will be in the ending of 3rd Quarter ! anyone knows ! thsk JSB I think you would probably be more likely to see it in 4th quarter - before the end of the year. I dont think its scheduled to be released before end of the month. it should be yes, its gone under testing since either yesterday or today sometime.... Visual Studio 2005 Service Pack 1 Beta has just been released. For more info, check out http://connect.microsoft.com/VisualStudio/content/content.aspx ContentID=3311 Best regards, Johan Stenberg only feels like yesterday when VS2005 was launched...I actually ...Show All

  • rguarino "Cannot access disposed object" - Object is NOT disposed!

    Module Startup 'create the instances of the form at this level so we can talk to it Public gamescreen As New frmBehrendopoly Public auct As New Auction Dim mainscreen As New MainScreen Public Sub Main() Dim frmWelcomeNew As New welcome Dim scrsize As New ScreenSize Dim frmplay As New Players Dim frmplyNames As New PlayerNames frmWelcomeNew.ShowDialog() 'Displays Splash Screen scrsize.ShowDialog() frmplay.ShowDialog() frmplyNames.ShowDialog() mainscreen.ShowDialog() 'Displays main Form End Sub End Module This code worked perfectly under VB.net 2003. After converting the project to VB 2005, I get the error "Cannot access disposed object". The error refers ...Show All

  • ShiningMasamune IrDA and controller from TV in WinXP

    Hi, I have Sigmatel IrDA(USB). How I operate(receive data from TV controller) with IrDA I looked to sigmatel homepage but I not found anything about this(I found only drivers). Windows is not supported anything communicatio via IrDA Is not Windows support communication with IrDA (receive data from IrDA out of identification device) There are some other threads about TV remotes and IrDA in this forum. The basic answer I've seen is that IrDA and infrared remotes cannot communicate.  They run on different wavelengths and are for different purposes.  You can't use an infrared data port to control a standard device like a tv or vcr.  You'll need an infrare ...Show All

8485868788899091929394959697989901

©2008 Software Development Network

powered by phorum