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

Software Development Network >> Visual Basic

Visual Basic

New Question

ActiveX EXE projects in .NET
Supported Database
C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Change system time using vb.net
How do I add projects to my solution
How To Set Default Font For Applications
Flickering Textboxes when focus is off screen
How to UNLOAD an assembly that was loaded by using System.Reflection.Assemblie.Load method???
Default Geteway and Subnet Mask how to get them into string?
Access 2000-2003

Top Answerers

silenced
Ricardo Pinto
Iggy Kay
PETER SCHWINN
Darkside
Philips-HCR
M Thomas
Sam Jost
OracleDBA
drewex
sitemap
Only Title

Answer Questions

  • daff2 Passing the values from a custom dialog box back to the original form

    Hi, I have a form that contains a button on it. when that button is clicked, i have a custom dialog box that contains 3 different buttons. the user should click one of these buttons, the dialog box close, and then some code run in the original form depending on which button was clicked in the dialog box. how do i do this I assume that its something to do with passing parameters back and forth between the forms, but i am not sure how to do this with the sub_click subs. Any ideas Thanks, ben Hi Ben, Maybe you could do something along these lines ..... Public Class FormDialog : Inherits Form and has three buttons on it This form could then contain a method that does something along ...Show All

  • Wayne R Label not visible on form when Text property is blank.

    I blanked out the Text in design time since I only want it to display when a button is clicked during run time. However, I wanted to relocate the label on the form and there's no indication of where it is during design time. Is there any way to display the label on the form and access its properties in the Properties window Thank you. I found the down arrow in the Properties window that lists all the controls on the form -- don't know how I missed it before. From there I can change the Text property temporarily until the label is relocated to where I want it. Go to the properties window (normally F4) and select the control from the dropdown list of controls on the form at the top of this window. The control will be sel ...Show All

  • Amit Sharan Tool Tip in vb.net - Handle is not initialized

    I am developing a windows application using VS-2005, vb.net, net framework 1.1 and SQL. Following is the code for utilizing tool tips in the form: Private Sub frmEMS_Incident_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim tTip As New ToolTip ' Set up the delays for the ToolTip tTip.AutoPopDelay = 1000 tTip.InitialDelay = 1000 tTip.ReshowDelay = 500 ' Force the ToolTip text to be displayed whether or not the form is active tTip.ShowAlways = True ' Setup the ToolTip text for selected fields and buttons on the form tTip.SetToolTip( Me .cmd902Update, "Auto-fill of da ...Show All

  • Jonathan Cran Multiple Catch blocks permitted

    Visual Basic Language Reference  Try...Catch...Finally Statement (Visual Basic)  Multiple Catch blocks permitted. If an exception occurs while processing the Try block, each Catch statement is examined in textual order to determine if it handles the exception, with exception representing the exception that has been thrown. ------------------------------------------------------------------------------------------------------------------------------------------------------ I have found that if I implement a multiple catch block an entry is always added to the exception stack for the block even though the exception that passed through was not an exception that was to be handled. I was expecting this multi-catch bloc ...Show All

  • Mzladybug Setting the start routine in VB 2005 winforms

    Hi, I am using VB2005 winforms. I am modifying an existing application, which has a start page of modJobMain.vb I need it to be frmJobSearch_Load I cant seem to set it to the frmJobSearch_Load at the properties page. When I "leave out of project" modJobMain, I get an error "No accessible 'Main' method with an appropriate signature was found in 'JobSearch.JobSearch' " Any advice Thanks MSNetDeveloper, It seems that there are only classes and functions included in your program. Just add a Main function in your code like this: Public Shared Sub Mail (ByVal args() as String) End Sub Hi, Two ideas, 1) On the default FORM double click it and when the Form_L ...Show All

  • Mitch Walker - MSFT Mac Address

    Hi Can some body help me out in finding out which of the macaddress is fixed and doesnot lose the value when the network adapters are diabled. I have used the following code to identify the the mac address on my system. Dim mc1 As System.Management.ManagementClass Dim mo1 As ManagementObject mc1 = New ManagementClass( "Win32_NetworkAdapter" ) Dim moc1 As ManagementObjectCollection = mc1.GetInstances() allValues.AppendText( "Win32_NetworkAdapter" & vbCrLf) For Each mo1 In moc1 Msgbox( "Adapter Type :-> " & mo1.Item( "AdapterType" ) & vbCrLf & "MacAddress :-> " & mo1.Item( "macAddress" ) & vbCrLf) Next The Result i rece ...Show All

  • Derek Smyth Using third party DLL files

    I have been supplied a third party DLL written and tested under for VB 5. Its function is to extend modbus to be able to use chars and longs. I would like to make use of the functions it contains under the VB.NET 2005. I have the standard version. Could someone explain how to make calls or incorporate it within this environment please. Thank you in advance Add a reference to the DLL from a Project in a Solution and you should be able to execute the functionality directly. I'b interested to know what functionality exists in this VB5 file that can't be done in the .NET framework, tho... :) Hi and thanks for the reply. Since posting I have been doing a little more research and you are right I can do it by send ...Show All

  • Rob Thomson Software Publish Question

    Alright, I have a program that I'm working on and i have noticed that whenever I run the Publish in the Programs Properties, that it makes a .exe . Now whenever I run the .exe , I noticed that it puts it under Start - All Programs but I don't see it anywhere in the C:\Program Files\ . Why is that Also, I have a .mdf in the application. Will it create the .mdf upon install for me or do i have to encode that into the program I'm actually using the Publish Now that is in VB.NET under Preferences . I'm new to the who making an install. What other way is there to do. Remember that I need something pretty EASY to start off with. You're using ClickOnce. It is easy to use ...Show All

  • nagual20 Creating Combinations

    I need help creating an array that holds all of the combinations based on some inputs. The input matrix if you will is variable and is defined in the structure below and is loaded into an array fdcConfig. Any idead how to create the arrray that is described at the end Believe it or not this is not school homework. It has just been a while since I did anything recursive and I believe that is what is required here. Structure SimulationInput Dim InputID As Integer Dim MinValue As Single Dim MaxValue As Single Dim Increment As Single End Structure Dim fdcConfig() As SimulationInput 'There is some code here to populate the array 'intInputs = the max index of fdcConfig() Let's assume that the array is loaded as foll ...Show All

  • Yogesh Kumar to Spotty

    I'm looking for help in keeping one of my programs open, so if it were to hang, freeze, shut off, or what not the program being loaded would realize this and restart it now I know this isn't right, that's why I'm here, but something like this... say it was in C:\ if C:\filename.exe = shutdown then process.start("C:\filename.exe") end if how could I get this to work This would allow you to tell if the application is loaded and if it isnt restart it - but you could have you application hung and this would do anything useful as the getprocessbyname method would still find the hung process and therefore leave it as such. What this would do is if the process was closed then at the next tick event - ...Show All

  • Yuhang SetWindowsHookEx Always returns Zero

    I am using VS 2005 8.0 I do not know why the following code is always returning zero for the SetWindowsHookEx. I have unchecked the "Enable the visual studio hosting process" in the projects debug properties but it always passes the If _mouseHook.Equals(0) condition and the Hook is not initiated. Can anyone tell me why Below is all the code on the form. Thanks. Imports System.Runtime.InteropServices Public Class Form1 Inherits System.Windows.Forms.Form Private _mouseHook As Int32 = 0 Private _mouseHookProc As CallBack Private _appThreadID As Int32 Private Const WH_MOUSE As Int32 = 7 Private Delegate Function CallBack( ByVal nCode As Int32, ByVal wParam As ...Show All

  • JamesPMiller Accessing registry using VB2005

    Hi, I want to search for the installed software via registry. I don't know what should be exact path where i can locate the installed software in registry or what will be the keys which will help me to search all the installed software on the specific system. Please help me out. In the uninstall key it is not always provided. In the appPath it is also not always provided + you don't know which part of the path is the company name. => Conclusion: either one of the solutions work faltless A possibility is to use the application name from the registry and create a database that maps the name of the application to the company name. This ofcourse means that you have to enter all the possible values. Greetz, Geert ...Show All

  • paoloTheCool how to read all file name in a folder

    i want to read all file names in any folder and store in the excel file so how i can do this The above will create a csv file which excel can read in but alternatively if you want to create a excel file (xls) The following statement constructs an array for file names from the folder Dim files() As String = System.IO.Directory.GetFiles("c:\myfolder") For Each s as string in files 'Write an excel cell. Next and then an interesting little article will show you how to write Excel spreadsheet directly from VB - all you would be doing is iterating through the array as above - but in the write an excel cell - you would be writing the variable s to a cell in the spreadsheet How to automate Excel from VB ...Show All

  • Gouri Sankar Need Help/Ideas for Program

    I'm making a program that changes the size of a group of user-selected images stored on the hard drive (JPEG, GIF, BMP, ect.), but I'm kind of stuck on how to approach this. I was wondering if anyone had any ideas/suggestions. I know how to resize each single image, but I don't know how I should automate it to do a group of images one after another. I was thinking about storing a list of filepath addresses of the images... Thanks for any help. Try using System.IO.Directory.GetFiles to find the image files in a folder... Would this work for multiple individual files Basically what I want to do is open a file dialog and be able to select multiple images by either holding down CTRL or SHIFT, and ...Show All

  • Jake.K Folder and file

    Hi i hope this is the right Forum. I use this code in a vb projekt now i want to try making a .net appliction in studio maybe someone can help: Dim side As Date Set fso = CreateObject("Scripting.FileSystemObject") Set folderobj = fso.GetFolder(" \\server\vaerksted$\ ") For Each folder In folderobj.subfolders If InStr(folder, "_") Then side = Mid(folder, (InStrRev(folder, "_") + 1)) If side + 7 < Date Then folder.Delete force:=True End If End If Regards alvin Thanks I got it to work regards alvin Hi on the server i have a folder call "Verksted$" First i connect to the folder : 'Set fso = CreateObject(& ...Show All

434445464748495051525354555657585960

©2008 Software Development Network

powered by phorum