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

Software Development Network >> Visual Basic

Visual Basic

New Question

Label Printer Problem
Building a String() using a String
Minimum function
Passing value from one form to another (tricky question!)
Newbi Question..
Help
Add Selected listbox item to another listbox
Position of double clicked item in listbox
Timed Forms
what s a good practice for date fields

Top Answerers

Rich Wilson
HotKeeper
DQM
harish1981
graab
Trevor2006
Peca55
Jason Du
Bill Henning
Christian Sciberras
Progressiv IT
Only Title

Answer Questions

  • lingga Wait for a file to be created in a command line application

    I created, well trying to create, a command line application that waits for a file to be created and then copy it to another folder. I am using the filesystemwatcher. But how do I wait for the event raised by the object in a command line app Now the app returns to the prompt after its started. can you show us some code take a look at this if you have not: http://msdn2.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx you just implement the OnChanged event, as shown in the example, and wait till the event is raised (it does it automatically when the condition has been met) ahmedilyas wrote: I don't see any FSW (FileSystemWatcher) events in this code....I'm a lit ...Show All

  • Abhi Arjun How can I send a form and its Subform (Datagrid) as a text file?

    How to I print a Form and its subform as a Text file or send it to a text files then print the text file using a button Maybe using something like this Please be specific if you can. Thank you Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'True escribe cada linea debajo en el file the texto "test.txt"./SIN borrar el anterior ' False, prepara un nuevo archivo en cada oportunidad Dim objfile As New System.IO.StreamWriter( "c:\test.txt" , False ) 'Estoy usando este formulario para escribir al formato de texto en el archivo test.txt objfile.WriteLine( "PENA'S ACCOUNTING" ) objfile.WriteLine( "17 Canal Street" ) o ...Show All

  • maddman Restarting Windows

    I need my program to be able to restart the computer. However, when I copied the code off of http://support.microsoft.com/default.aspx scid=kb;en-us;176695, but when I run, I get a PInvokeStackInbalance run-time error at the OpenProcessToken line. So if the Microsoft code example doesn't work, does anyone else have an idea on how I can restart Windows I tried those changes, but still get the imbalance exception. When I changed every long to integer, I got on the next line a MemoryAccessViolation. For now, I am using the following: Public Class ExitWindows Public Const EWX_SHUTDOWN As Long = 1 Public Const EWX_FORCE As Long = 4 Public Const EWX_REBOOT = 2 Private Declare Function ExitWindowsEx Lib "us ...Show All

  • Christian Sparre Turning Beep sound off after enter text in the text box

    Below is code Private Sub txtAnHuman_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then KeyAscii = 0 lblEng.Caption = SPI(txtAnHuman.Text) End If End Sub multiline = False. This is the way I have intented I have lots of text box in my application. Need a simpler answer I tried Private Sub txtComm_KeyPress(ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtComm.KeyPress If e.KeyChar = vbCr Then e.Handled = True End If End Sub I got a compile error To solve your problem of having a lot of text boxes, just use a single routine that handles the KeyPress for all of the textboxes on the form since you're probably not using this ...Show All

  • Steve Whitley Change filename when new year

    I want to change the filename of my .aspx -file from Mypage2006.aspx to Mypage2007.aspx at a special date (when its 2007-01-01)..... (And when ist 2008, Mypage2007.aspx should be Mypage2008.aspx and so on...) I will do this from the code behind-file Mypage2006.aspx.vb..... Someone know how to do that you place the code where you want the operation to run in your application. Again im pretty sure that the idea you have will not work in ASP.NET but rather more of a Winforms application running in the background or a background service. Or even create a Windows scheduled task running a batch file to rename the file. you can ask more about this to see if it will run in an ASP.NET application ...Show All

  • kalai Open files in associated applications

    Hi All I have a simple Application and I need to open my documents files in assoicated applications given the path name and the file name and the extension. For example I got all my files stoted in C:\Documents and under that I got following files. mydoc.doc mypdf.pdf mytxt.txt myautocad.dwg and so on.. If I provide the file path in my program it should open up the file with the relevent assciated application. for example mydoc.doc should open up with MSWord and myautocad.dwg should open the autocad 2004 installed in my computer. How do i do this in my vb.net 2005 framewrok 2.0 Code example would be extreamly helpfull. Thanks in Advacne Prash basically you will be running a process which will run/execute ...Show All

  • danskcarvalho How to drop down items in listview or datagrid?

    I want listview and datagrid can drop down item like combobox. Please help me. Can you describe what you want in a little more detail Adding Combobox to a cell in a datagrid http://www.vbdotnetheaven.com/Code/Jul2003/2134.asp http://www.knowdotnet.com/articles/kdngrid.html http://www.csharphelp.com/archives/archive151.html Using 2005 and the datagridview cell type specifically for a combobox is there and well documented. I want listview's cell will appear dropdown arrow when I click on it ...Show All

  • Joshizzle c# to vb

    What is the vb code for this public enum NotifyIconBalloonIconFlags : int { NIIF_NONE = 0x00000000, NIIF_INFO = 0x00000001, NIIF_WARNING = 0x00000002, NIIF_ERROR = 0x00000003, NIIF_NOSOUND = 0x00000010 } This does'nt work Public Enum NotifyIconBalloonIconFlags NIIF_NONE = 0x00000000 NIIF_WARNING = 0x00000002 NIIF_ERROR = 0x00000003 NIIF_NOSOUND = 0x00000010 End Enum Remco given the helpful error message of "This does'nt work" the only thing I can see is that it should be Public Enum NotifyIconBalloonIconFlags as Integer Replace 0x with &am ...Show All

  • My Vizai DataTable or DataSet

    I'm trying to create an SQL statement that will return duplicate fields from a Text file that I imported. The imported file is NOT in a Database, but rather in memory. What should I query against, the DataSet or the DataTable Also, how do you create a complex SQL statement and use it against the DataSet/DataTable Looking for something like this: SELECT * FROM myTable WHERE ssn IN(SELECT ssn FROM mytable GROUP BY ssn HAVING COUNT(*) > 1; Any sugguestions would be great!!! EZ1976, DataTable is a table that created in DataSet. In order to use DataTable, it means that you are creating a table in memory of DataSet. In order to return the duplicate fields from the text file, I suggest you to divide the SQL query statement int ...Show All

  • Siteadm How to Access a Unregistered Non-COM DLL From VB.NET

    Hi, I have a non com dll which is functioning for years.(i do not have the source code) I need to access it from a vb.net application. how can i achieve this Any suggestions/solutions/sample code is be highly appreciated. Thanks in advance! Dinesh. If it exports functions you can probably call them by using the Declare statement. You may want to tell us how you were accessing it before, otherwise we don't really have much information to go on. Mattias guess is probably correct though. ...Show All

  • RizwanSharp How can I create and use a .dll file to be associated with a form?

    Hi, I wanted to create a dll file (project) that will be used in the same solution of a windows form. I'm going to use one dll file to scan for any missing file and (or) directories inside the applications path, I was trying to use application.startuppath, but it is not accessible inside a dll file. How can I pass the value from the form to the dll Unless there is some other way, that is the first thing I thought of. I don't even know how to call the dll, I tried adding it as a reference to the form project, but it doesn't work, please explain in depth of what to do, I have never created or worked with any .dll files previously. Thanks. Thanks so much, I also found out to access things inside the ...Show All

  • Zakspeed63 VB Classes

    Using A Class In Viusal Basic  [Part I of VI] OOP Basics-basic Rudimentry Elements This Will teach you about classes, the basics to OOP and create an application that uses a class. These lessons will build on each other and eventually make an application that uses  a class for star wars troopers and how to publish an application. INDEX [PART I - INTRODUCTION TO OOP] [PART II - INTRODUCTION TO ENCAPSULATION/PRIVATE/PUBLIC KEYWORDS/FIXING THE CODE] [PART III - METHODS/CONSTRUCTORS/OVERLOADING] [PART IV - PROJECT:TROOPER] [PART V - CODE STRUCTURE] [PART VI - FINAL TOUCHES/RELEASE] What is OOP OOP stands Object Oriented Programming. It uses objects from the real world in classes. What is A Class A class is a design for an ...Show All

  • nightchaser The Discontinuation of Microsoft Windows

    I have just been informed that Microsoft will likely in 2010 discontinue the Windows operating system and replace it with an entirely new code base. I desperately need someone to tell me if what I am doing now will be completely useless in the near future. http://support.microsoft.com/gp/lifepolicy Best regards, Johan Stenberg ...Show All

  • Sicundercover Can you digitaly sign your program?

    hey i was wondering can you digitaly sign your program and also make to be able to install into C:\Program Files is this possible thank you. Any Way of doing it for free yay i found a trial version so hopefully i can get it to work now. How can you make a windows installer package if anyone nows please either point me in the right direction or help or at least so me a website that tells me, i'm using visual basic 2005 express edition. thanks visit http://www.verisign.com That is correct - you are limited to clickonce deployment in VB Express (One of the limitations in the free version). If you want to start creating windows setup packages - then you can either. Buy a version of visual studio / VB th ...Show All

  • Kelandom When should I call dispose()?

    No problem, let us know if you run into any issues! Usually, it's best to call dispose() on an object when you are done with it. This will allow the object to clean up resources as soon as it can. I recommend using the "using" keyword when interacting with disposable objects; see the following: http://msdn2.microsoft.com/en-us/library/htd05whh.aspx Here is a general document on when to dispose on objects, and how the disposable pattern works: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconfinalizedispose.asp Thanks timothy ng for the information, i will study them ;-) ...Show All

777879808182838485868788899091929394

©2008 Software Development Network

powered by phorum