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

Software Development Network >> Visual Basic

Visual Basic

New Question

textboxes
Help with simple coding from vb6 to .net
Timer countdown?
Selecting a TreeNode by RIGHT CLICKING on it, I m using VB.Net, VS2003
Class MSAdodcLib.Adodc of control adoDep was not a loaded control class
IrDA and controller from TV in WinXP
Refactor - cannot get it to work
Keydown event
Supporting Different Languages
run time location question

Top Answerers

Steve at Pixelda
jrboddie
Dan-Teklynx
TheSniipe
Vikasumit
Ayronski
Rbgreen
LalitBoliya
Phil333
Kamii47
sitemap
Only Title

Answer Questions

  • Anarchy Save setting in Visual Basic.net

    Hi, I am working on saving my settings in Visual Basic.net. This is a first for me and I tried to find a document or something on the web to help me. Does anybody know of an document on the web that I can look at that will give me a step by step or can somebody please direct me in the right way. Thanks Lawrence, There are two ways for the My.Settings to save. Go to My Project > Application > Tick the checkbox which says "Save My.Settings on Shutdown" You can put my.settings.save into Form1.Closing Event Sorry for not mentioning that before Regards, AliQ Ali, I have a small app where the user needs to enter the Server name and then the password. How do I do that in the app s ...Show All

  • MJian Question

    Hey gyuz! I wrote a little program that runs any other program you want throuh a contextmenustrip.The program adds a notify icon in the tray and you can access the menu through there.All the programs you add are saved in the registry for calling them. I used the AddHandler to create a new ToolStripMenuItem each time i add a new program. But here is my question .. when running a program: I used : Process.Start(RegistryKey.GetValue(sender.tostring) and Shell(RegistryKey.GetValue(sender.Tostring),AppWinStyle.NormalFocus,False) The Process.Start works fine. The Shell throws the File Not Found Exception. I don't why! Sorry guys i was away for a while! Yes the problem was the double quotes. I used quotes with Sender.toStrin ...Show All

  • MrBigStef Changing screen resolution with VB 2005

    I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in. This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion process from VB6 a fatal change crept in. My guess is that it's either in the ByRef/ByVal or Short/ ...Show All

  • TRACEYMS WebBrowser will not work with Flash. ANYBODY HAVE A FIX

    I have created a web browser and after like 2 clicks on any flash enabled web page it disables and i cannot click any type of flash anything it doesnt work. Does anyone know a fix to this That didnt work at all, the problem is that after a few clicks on a flash application it will not let me click it anymore. This happens inside the webbrowser1 control oatman, Add the following VBScript code in your web browser: <script language= "VBScript" > sub fs_fscommand( ByVal command, ByVal args) Call fs_doFSCommand(command, agrs) End Sub </script> Hi, Parse all script code in your browser and output only the ht ...Show All

  • RookieBoy initialized array

    In Lesson 5 of the Absolute Beginers Video Series for Visual basic Using Branching and Recursion http://msdn.microsoft.com/vstudio/express/vb/learning/ The following statement is shown as an example of how to declare an initialized array of strings. In the video this appears to work fine. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myArray() As String = ( "Sammy" , "Jimmy" , "Sally" ) MessageBox.Show(myArray(1)) End Sub But when I create this statement I get errors like: 1. ')' expected 2. myArray is not declared. What's missing What am I doing wrong I love trying to learn something new and, i ...Show All

  • HD Land Adding list items from delimited text file

    Back again with another Noob question.  My form will ammend user's input via text box to a delimited text file, but i want to get the info from the text file to show up in a listbox.  How do I accomplish this I already have the listbox on my form and have tried ... My .Computer.FileSystem.ReadAllText( "C:\Entries.txt" ) and Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Dim filename As String = "C:\Entries.txt" Dim fields As String () Dim delimiter As String = "," Using parser As New TextFieldParser(filename) parser.SetDelimiters(delimiter) While Not parser.EndOfData ...Show All

  • jiggs How can I check a value in Registry?

    Hello I use this code to get values from Registry: Dim MyKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey( "Software\A\B" , True ) Msgbox MyKey.GetValue( "Key" ) But if subkey Software\A\B doesn't exist, I get error. How can I check whether if subkey Software\A\B exists or not Thanks check if mykey is nothing. if not then call mykey.getValue Thanks, it's working. If I wrote: Dim MyKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey( "Software\A\B" , True ) If MyKey = Nothing Then I get error me ...Show All

  • Charltonn Write data in VB.NET to Access using SQL

    Okay, I have an Administrator page that is able to create new users. I have a simple adduserform that has a TabControl added in it with a tab for General Info and User Info. Those have quite a few texboxes for input and outside of the TabControl are 3 buttons that are Save, Clear, and Exit. What I want to do is have the Save write the data to my small database that I have for users. If you want to see an example of my screen you can see it here.... http://redbearcustoms.no-ip.info/VB/adduserform.html Okay, sorry bout the link. My server went down last night and I haven't had time to bring it back up. Now for the database, Im currently writing it in MS Access but I want to eventually convert it over t ...Show All

  • Roy mm Wizard Generated code and regions

    Hello folks, I know this is answered somewhere here. Just can't find it so I'm sorry for asking this simplistic question. When working with wizard generated code where does one specify the #region that the code should be entered into. I'm finding it most annoying that the generated code is always ending up in my main class view window and cluttering it up. Thanks for any ideas folks... I'll pass your comments to the people who own the dataset generators. Hi Antoine, Yesterday (and today as well) is a good indication as to why we shouldn’t work when we have cold chills and headaches. For some inexplicable reason I was fixated on #regions when I was indeed thinking na ...Show All

  • Alexnaldo Santos VS 2003 Walkthrough not working in VS 2005 Creating a distributed Application

    I have looked through these MSDN forums and ASP.NET forums with no luck. I'm using VS 2005 Team Ed for developers - clean install - selected General option for default project type. Created New Web Service project by selecting the File... New... Web Site.... ASP.NET Web Service (there was no template under Project... as suggested in the walkthrough) The problem: the database drag and drop onto the web service designer pane doesn't generate a sqlConnector or a sqlDataAdapter. I can: connect successfully to the database in server Explorer. create a Dataset by using the Website menu -> Add New Item... DataSet but shouldn't I be able to just drag and drop the database onto the Web Service James Reid ...Show All

  • RibenaUser how can i do with " in vb

    how can I do with " in vb , I want replace " to & email:huangzhixing@hteb.com I dont think there is any difference but could be wrong. is this what you need replace(some_freakin_string, ControlChars.Quote & ControlChars.Quote, "&") there is a difference; Using String.Replace cause eventual programmer fatigue dou to the extra 7 characters of typing. Consider the implications of having to type these extra charactrs multiple times a day times multiple work weeks , etc. We should start a petition demanding that Replace be designated the ergonically better method of replacing characters in a string in Vb.net Ibrahim(GD&R)Malluf ...Show All

  • JeroenMeijer Complex Operations with DateTime

    Hi, I have a datetime var to which I would like to substract "x" minutes but I don't get the correct datetime result, for example: 23/11/2006 02:25:10 p.m. and I need to substract 10,434 minutes so I can get the starting date: Dim xDate as datetime = Cdate("23/11/2006 02:25:10 p.m.") Dim xNewDate as datetime = xDate.addminutes(-10434) xNewDate= 16/11/2006 08:31:10 a.m. If 10,434 minutes = 7 days, 4 hours and 24 minutes then the correct date should be: 16/11/2006 10:01:10 a.m. What am I doing wrong Thanks in advance. George George Waters wrote: If 10,434 minutes = 7 days, 4 hours and 24 minutes The problem is it isn't, it's 7days, ...Show All

  • Edouard Mercier MSB4018

    VisualBasic Build or Rebuild generates the following error that I can't find any info on. Has anyone ran accross this error Error List Window: The "GenerateResource" task failed unexpectedly. System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A) at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain() at Microsoft.Build.Tasks.GenerateResource.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, B ...Show All

  • Reid Westburg datagrid column values to label1.text

    hi for example;I showed my query result (select id,email from mail) on datagrid. there is four rows. id email 1 mail1 2 mail2 3 mail3 4 mail4 I want to write email values to label1.text. label1.text="mail1;mail2;mail3;mail4" how can I do :( I have been giving error msg:cast from string "email" to type "integer" is not valid what can do error row : sb.Append( CStr ( Me .DataGridView1.Item("Email", i).Value)) I solved with that code: for i=0 to ds.tables("tbl_stok").rows.count -1 label1.text &=ds.tables("tbl_stok").rows(i)(0) next thanks... Dim sb As New System.Text.StringBuilder For i As Integer = 0 To Me .DataGridView1.Rows.Coun ...Show All

  • Scooter&amp;#33; VB 2005 Express false compiler error

    I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum