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

Software Development Network >> Visual Basic

Visual Basic

New Question

replacement for quick-console
Code using socket for LAN messaging applications
How to Detect USB Flash Drive
Compare 2 objects
Passing a Byte Array to a COM object expecting a variant
How to link two forms (ALT-Tab problem)
Problem with encoding between vb.net and a unmanaged DLL in C
How to put headers in a listbox
listbox items
Replace file in .EXE installer

Top Answerers

PhillyPa
nmirhan
Joao Pinto
Davids Learning
SaimaSalim
sedanwer
r2thej
Sneh Mani Tripathi
bbossi
Aghasadeghi
sitemap
Only Title

Answer Questions

  • pmanisekaran tooltips in subItems of Listview control.

    In ListView Control SP6.0 (with Visual Basic 6.0) can set Tooltip in SubItems. How can I have the same functionality with ListView Control Net There's no TooltipText property on SubItems, but this link might be able to help you: http://homepage.mac.com/ruske/ruske/C1501534740/E20060415103448/index.html Hope that helps, Jonathan ...Show All

  • sawer Bolding Nodes in treeview makes problem..

    hi i am using vb.net 2002 actualy i want to bold some nodes depends on some condtions. using this code 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" its depends on its length.depends upon its length we may lose more charactors. how can i overcome this thanks in advance Widen the treeviews width... ...Show All

  • Kalaivani Prakash Array Help!!!!

    Hi, This may be a very basic problem but im haveing real trouble with it and its driving me crazy!!!!!!! I have created a class called Class1 I can create a new object by calling Dim test2 As New Class1 I can change its attrributes by test2.summary = True test2.is_stage = False etc..... Now what I want to do is store this class in an array. I have tried the folowing code but it doesnt seem to work Dim proj_tasks(10000) As Class1 proj_tasks(counter) = test2 This keeps erroring and I dont know why! Can somebody help me out! Also if your feeling very generous could you please adivise me on how I could make this a dynamic array rather than having to set the array to a huge size in the first place ...Show All

  • Trainwreck Getting processor type

    Is it possible to get the processor type and count in VB2005 I cant seem to find anything in the my.computer namespace. and without using wmi..the best you will do is to return the processor architecture: Dim a As System . Reflection . Assembly = System . Reflection . Assembly . GetExecutingAssembly () Dim MyAssembly As System . Reflection . AssemblyName MyAssembly = a . GetName MessageBox . Show ( MyAssembly . ProcessorArchitecture . ToString ()) Which on almost all machines will return MSIL not the actual processor type! To get processor count System.Environment.ProcessorCount ...Show All

  • jkidd01 Global Declaration

    hi, generally we'll declare global variables to b used in all forms of our Proj.,in a Module. bt hw do declare global nos. that is.,95 for freight. 69 for discount. even though i'll b using only in Invoice,as new schemes hav to b added in future i cant giv in the Invoice form codings.i need to add separately. Help me.... Hi That has to be the hardest to read post I've ever seen .... apologies if I misunderstand your requirements. Public Const FREIGHT As Integer = 95 Public Const DISCOUNT as Integer = 69 If you put the declarations in a module, they will act just like older style global variables/constants. Stick them in a class and people can access them using code along these lines ... ClassName.FREIGHT ...Show All

  • The Other Bill Object oriented issue puzzles me

    I have a project with a form and 2 classes: Form1, clsAcad.vb and clsAcadPlot.vb I'm trying to keep all my objects in the classes but most methods of these classes use the same objects. This forces me to initialize same objects in both classes, then apply methods on them. So, using code in Form1 I'd have to make sure I pass the same document names to variables in both classes before using them. Can I retrieve the object from the class to the Form1 and pass it to the other class I guess not, that would be a violation of the encapsulation concept. I could combine the 2 classes in 1 In this case I'll have a large class with many methods useless in other projects. Should I use inheritance Is there an easier way of doing this ...Show All

  • Fredrik Johnsson Mistake

    Disregard. what errors What happens tried it on a different system Did you install the .NET Framework you need to install it in order to run your .NET Developed app wtf ...Show All

  • Mark See Raise SaveFileDialog's FileOK event?

    Let say my application have two buttons, button to open file and save file. When the open button clicked, the open dialog will open and let user select a file, after selected, user will need to click the save button to save the opened file to given (coded) location, I do not want the save dialog to open, instead, I wanted the file to be saved when user click the save button, is it I need to raise the FileOK event of SaveFileDialog or is there any other better way Thanks in advanced. Thanks. I did it with FileWrite. You guys helps. Thanks. Stephen, I have not used any of the previous versions of VB. But as NoBugz pointed out, just skip using the save dialog if y ...Show All

  • XCT Adolfo Terminate program from nested function

    Hi, I'm writing a .dll. I'd like to know how to stop all the code running from anywhere in the solution. For example: -A class of the .dll is called from an .exe. -Function A is called from the main sub. -Function A calls Function B. -Function B calls Function C. -I need to terminate all the running code from Function C with a simple method/function. Is there an easy way to do this Sometimes it gets very long to propagate error handling back tho the main sub when deep into functions. I hope I explained it clearly. JakkyTchong Something like this should do it: Imports System Imports System.Diagnostics Imports System.ComponentModel Public Class Class1 Public Sub KillMe() Dim currentProcess ...Show All

  • Han Qiao mcisendstring x64

    Hello, I got a little problem. I would like to play sounds with my application. I tried already a lot of methods. I tried the mcisendstring method too. This works very well in 32 bit (x86 compile), but not in 64 bit (x64 compile). But why does this not work in x64. I've installed Windows XP x64 so normally it has to work. Can somebody please help me Sincerely, Sascha Zeidler Your best bet would be to ask Larry Osterman since he is on the team at Microsoft that is familar with how the MCI command set was ported. If it was me though, I would just find another way to play my audio files. The MCI command set was written in 16 bit and than ported to 32 bit and it 'MIGHT' have been ported again to 64 bit. There are other ...Show All

  • VashTheStampede Creating an Excel Object using VB.NET.

    Hi everyone, This is my problem: I am trying to create an excel object so I can run an excel macro. This is the code I a using: Dim oExcel As Excel.ApplicationClass Dim oBook As Excel.WorkbookClass Dim oBooks As Excel.Workbooks Dim missing As Object = System.Reflection.Missing.Value Me .TextBox1.Text = Me .TextBox1.Text + " Report Creation in progress Please Wait..." + vbCrLf 'Start Excel and open the workbook. oExcel = DirectCast (CreateObject("Excel.Application"), Excel.Application) oExcel.Visible = False oBooks = oExcel.Workbooks oBook = oBooks.Open("C:\Developpement\Project_RCP\RCP_App\Job Bruts\Job RCP.xls", missing, missing, missing, missin ...Show All

  • Acanthus array allocation vs. memory available

    When creating or redim'ing arrays, how does one tell if it was successful What if there wasn't enough memory available I can't find any documentation of an exception thrown when creating or redim'ing an array that needs more memory than the running system has available. Isn't that a real possibility What am I missing Steve if you wrap it in a try catch block and catch the exception if it was not successful. There are two ways of looking at memory (Physical and Virtual). For the most part with windows application, the memory is virtual which means you machine can use more than the physical RAM in your machine. It will create swap physical memory in out to disk when it it has to (somet ...Show All

  • SDavis7813 Case Else

    So I have this Select Case list which has a bunch of radio buttons (named adoXX) when the radio button is checked true, it is supposed to add the data from a textBox into a listBox as the last entry. I thought I had this right.... but apparently not. what a mess. 'anything listed as ado is a radio button 'anything listed as lst is a listBox function Select Case if adoAL.checked = True then me .lstAL.items.add(txtVote.text) else if adoAK.checked = true then me .lstAK.items.add(txtVote.text) else if adoAR.checked = true then Me .lstAR.items.add(txtVote.text) else if adoCA.Checked = True then ...Show All

  • Matt E. Can I save a file(.DAT) form a ListBox

    This code isnt doing what I want it to. Its supposed to take the items from the ListBox and put them in the .DAT file Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click My.Computer.FileSystem.WriteAllText("C:\Documents and Settings\All Users\Desktop\CODE.DAT", lstDisplay. False) If SaveToolStripMenuItem.CanSelect Then MsgBox("Code.DAT has been created and located on your desk Can you help me with the 's part Hi i am the other worker on the program we are making it saves to the desk top but when we go to look at the file its blank like it did not add the strings if soemthing is wrong please let me know 'Create a ...Show All

  • WhyteKnight Label Lext

    i can't get te text in a label change. i'm using VS2005 and this code: myReader.Read() lblNombre.Text = myReader( "nombre" ).ToString MessageBox.Show(myReader( "nombre" ).ToString) myReader.Close() The message box displays the right information, but the text in the label doesn't. are you sure that is the correct code I'm guessing not otherwise you would not be able to compile at all. should be: myReader.Read() lblNombre.Text = myReader( "nombre" ).ToString() MessageBox.Show(myReader( "nombre" ).ToString()) myReader.Close() Also, what is actually shown in the label when you set the text anything at all Ok, i put Me.Show() after i change ...Show All

343536373839404142434445464748495051

©2008 Software Development Network

powered by phorum