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

Software Development Network >> Visual Basic

Visual Basic

New Question

How to make the ListView items load a database row?
Error, HRESULT: OX80210015
Dataviews - How to return just one column
Can you mame your own attributes, or whatever they're called?
ListView control Problem - missing blue rectangle around selected item
Docking forms
Not including hidden files in list of files in directory
Error on export to Excel
Interoperability in VB6 with dll in VB.NET
Windows Service not registered in the registry

Top Answerers

Iker Garaizabal
flash.tato
Dave Waterworth
Hiral
keithpsft
tackett
shimshon
DevilDog74
George Clingerman
Sundaraguru
sitemap
Only Title

Answer Questions

  • daff2 Graphics Disappear After Minimizing Window

    I have a VB 2005 windows apps with a picture box on a form. I created a graphic to draw stuff on the picture box: Dim g as System.Drawing.Graphic g = picBox.CreateGraphics Then I draw stuff ... but when I minimize the form's window and then restore it the stuff I've drawn does not appear. I don't know how to cause the program to redraw the graphic when the window is restored ... i.e. how to "anchor" the graphic to the window. If the answer involves using the paint event I would appreciate a bit of detail ... I cannot figure out how to do it. Thanks. Here's some 'Sue-Dough' code Declare all calculation variables that you need to at the form level, including some boolean ...Show All

  • No-spam Sam ListBox & StreamWriter & StreamReader

    I have a "Form" with: 1- List Box 1- TextBox 3- Button 1- OpenFileDialog 1- SaveFileDialog I want that clicking the btn1 it shows the OpenFileDialog and read file that it has got this structure: SKI1 0 1 7 1 0 0 18 10 1 19 0 29 10 1 30 0 40 10 1 41 0 50 10 1 51 0 62 10 1 63 0 81 10 1 82 0 95 10 1 2 0 0 95 16 5 3 0 1072 0 1 4 2 1 93 15 I want that it reads all  Line of the File and it add an Item in ListBox for line. For example the first Item of the ListBox in this case is SKI1 And the 2th Item is in this case. 0 1 7 I want using the StreamReader classes. And i want that when i click an Item of the ListBox it shows the Text in the TextBox and I can edit the Line and that clicking antoher but ...Show All

  • ejschoen1 Application Problem

    Hello! I'm currently deploying an application developed in vb.net . We sometimes encounters connection problems. The system sometime hungs up. And when one work station encounters this problem all the other pc where affected. I'm still thinking where the problem is... is it on the program itself or the network setup..... Anyone who encountered the same problem .......... Any ideas about this ........ what should I do it would help if you can: describe the application post some code where the problem is occuring post any exact error messages where the code is throwing an exception if the app hangs whilst connecting, possibly: network issues connectivity problems firewa ...Show All

  • Hobbit666 Select cells in datagridview{Urgent help}

    Hihi.... I need help on the following problem.. Thanks in advance...ok my problem is.. i need to do a function that allow user to click on the cell of the datagrid and display the information of that row selected into both combo box and textbox.. I managed to do the part where user click on a cell details will be displayed... but how do i retrieve only the information of that row the cell belong to.... is there a way to do it in visual studio 2005 and sql server 2005.. really need help urgently.. thank you..~~ This example shows one way of getting the contents out of a text box and into a textbox. It assumes you are allowing multiple cells to be selected - although this may not be the case - but the code ...Show All

  • Blast Override ShowDesktop button

    Hi Guys, How do you keep your program showing when someone clicks the "ShowDesktop" button. I have tried a bunch of properties of the form but cannot find one that overrides the button. Some of the ones I tried: Resize, LostFocus, Paint, ResizeBegin,ResizeEnd, ClientSizeChanged. Any Suggestions Thanks Thanks Scott, That worked like a charm. I appreciate it. Thanks again, Try setting the "TopMost" property to true and the "MinimizeBox" property to false. -Scott Wisniewski ...Show All

  • viliescu Stopping Alt+Ctrl+Del

    Hi all I'm writting a program for public payable networked computers for playing games. I've got the server/client billing and other stuff like that done. Problem is, when my program boots up, it displays a full screen form (on top of everything), which holds the login/programs they can use/play. I've managed to remove the Alt+Tab, Alt+F4 and other key combinations like that.  Although, i'm finding that Alt+Ctrl+Del still brings up task manager no matter what i do. I have a solution, that on program startup, it renames taskmgr.exe, (and the backup in dllcache), and it works (Doesn't launch taskmgr),  however, there is a windows warnign saying files are missing. (No big deal, i rename on program shutdown). Is there a way aro ...Show All

  • Esprit SqlDateTime overflow.

    you have to check the data types of the parameters in the store procedure with the parameters you are passing. can you post the store procedure. You also have to specify the Data types of your parameter. : .. .. .. cmd.Parameters.Add("@EmpImage",SQLDBType.CHAR,5 ) ' for string type, also specify the length cmd.Parameters("@EmpImage" ).value = strEmpImage cmd.Parameters.Add("@frmDate", SQLDBType.Smalldatetime) cmd.Parameters("@frmDate" ).value = dtFrmDate .. .. .. .. Hope this helps :) I am inserting the date/time in mm-dd-yyyy format. I am selecting the date from calendar control I have made in ASP.Net, it ...Show All

  • Dr. YSG MDI parent form and child form

    Hi, I m doing migration from VB6 to VB.net Previously, i call a child form within MDI form is using call form1.show() Whereas when upgrade to VB.net, even i change the call method to Dim frm1 as new form1 form1.show() But it still give me AccessViolationException The above coding gives me no problem when calling 1 form from another form but when i add MDI form it causes it Error!!! Does anyone know how to solve this problem HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Try changing the following piece of code (in bold) Get If m_GlobalForm Is Nothing OrElse m_GlobalForm.IsDisposed Then m_GlobalForm = New MDIForm() End If Return m_GlobalForm End Get ...Show All

  • zerotri Is it possible to make a parent form a child form of another form vb.net?

    Hi! I am new here as well as the programming language I am using. I am working with forms now and I just want to ask if it is possible to make a parent form a child form of another form What i want to do is something like this (grandparent ->parent -> child) When I set the parent as a child, it gives me the error that I can't set the parent as a child. Thanks in advance. You will have to set the .TopLevel property to false on the child form(s) to host them within another form. You may want to consider using user controls (instead of forms), however, to do this. I'm really sorry if i didn't indicate that im talking about MDI. So that just concludes that there is no way I can do that. Tha ...Show All

  • RobDeveloper how to display unicode

    Is there a way to display unicode characters in a listbox or property grid Look in system.text.encoding   http://msdn2.microsoft.com/en-us/library/system.text.encoding.aspx   And we are talking about coding in VB.Net which is why the question confused me. Well, I have a file with a list of items that I add to a listbox. It is in unicode format and the unicode chars all change to question marks.How would I change the text from the file to unicode before adding it to the listbox. The text from the file is in a string(). Am I not mistaken or aren't strings normally unicode So the question really is - are these items in unicode to start with or is it encod ...Show All

  • AndyL Getting a VARIANT* from activex control

    Hi all, I am using Visual Studio 2005, and have created a Visual Basic project where I use an ActiveX control. This control has this method; void getArray(VARIANT *); This VARIANT consists of a CComSafeArray of double precision floating points. Now I want to access this method from a Visual Basic application. As far as I have understood Visual Studio 2005 is using Visual Basic 2005 and that doesnt support the VARIANT data type. Therefore I have tried like this: Dim myVariant As Object = DBNull.Value myControl.getArray(myVariant) Now, my problem is how to access the elements stored in the safeArray which is in the VARIANT Hope someone can help me here! Thanks! ...Show All

  • veXed ON Close OF IDE i Get "an unhandled win32 exception occurred in devenv.exe"

    I am getting the following error when I close down the dot net IDE. "an unhandled win32 exception occurred in devenv.exe [2420]" I have tracked it down to when I have a form open in the Designer & then I close the IDE. No run or compile done. All forms are inherited from our own base forms. My solution has 14 projects, hundreds of forms/classes. PC Configuration Brand new HP PC Pentium d 3.4ghx 2.5gm Ram, 80gm HD (51gb Free) Dual Monitor XP with SP2, Office 2003, Toad, etc.. Visual Studio 2005, Component One Controls for Vs2005 I have installed the hotfix that fixes most fo the IDE bugs!. As an update to this i have now installed VS2005 Service pack 1. Th ...Show All

  • pdianne Database Access

    I have a listview that is populated by a database. Whenever the user scrolls through a textbox, the listview is updated, either by highlighting the contents or re-populating it. When a user holds down an arrow key and scrolls through the textbox rapidly, it continually queries the database over and over. This doesn't seem to be the most efficient way to do this. The database is read-only, the user will never add anything to it... is there a way I can capture a snapshot of the database and maybe query that, instead of opening a connection, querying a database, repopulating, closing a connection everytime the user scrolls through the textbox So I can query a database once, and store a portion of the datab ...Show All

  • jwadew print dialog problem

    hey out there. how do i make the print dialog send output to the printer i have looked a little around, but i cant find anything.. i know i have to use something like this: If PrintDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then <missing code> ;) End If can you help me //Martin Dear Sir, When you are coding Print Dialog .Attach for example webBrowser1.print() at the end. OK Or use Print Document tool. Bye. Mur it Hakan C L Please look at the following link. That will give you some idea. http://msdn2.microsoft.com/en-us/library/system.windows.forms.printdialog.aspx ...Show All

  • linhtrung Session state in VB.net

    Hello all! I know there is a session state in asp.net. Is there something in a vb.net application that does the same thing Thanks! Rudy What type of state are you wanting to retain There are application settings and user settings features built in to VB.NET for Windows Forms. Session state is required in a web application because its a stateless model. Windows application can maintain state - so there is not as much of a need for a session state implementation. Thanks Spotty! I need it for a windows application. I just wanted to make sure there wasn't something out there before I create something to do the ...Show All

252627282930313233343536373839404142

©2008 Software Development Network

powered by phorum