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

Software Development Network >> Visual Basic

Visual Basic

New Question

How to Disable Autosave?
Why VB compiler is allways running !?
Open file
Update the ComboBox at runtime???
Using RGB values for color
How to use the SaveFileDialog control in Visual Basic
Cannot publish project
Problems to pass a form parameter from vb.net to vb6 com dll
WebBrowser will not work with Flash. ANYBODY HAVE A FIX
Integer.TryParse help

Top Answerers

--Alan---
Scott Coffey
sheldono
BortNE24
Xiaobo Gu
shmulik_segal
quame
redcodes
Vladimir Bougay
cplusplus1
H Certo
Only Title

Answer Questions

  • camtx1400 Printform anything better???

    I am trying to develop a reusable method of printing various forms. I've toiled with printform but it seems to restrictive i.e many times I need to be able to print "Duplex" or set the printer resolution to its highest 600 DPI.. printform to the best of my knowledge can't handle this. I would like to have a method I could use to print forms (sometimes many forms) to fill a standard 8.5x11 page even if the form utilizes a scrollbar. Printing using "PictureBox" seems to be what everyone recommends but no one has developed a common source code. Everyone has their own ideas which is good but confusing Any help would be appreciated Greatly!!!! Mitch5713   Oh yes I'm using Vb 5.0     ...Show All

  • Noldona How Create setup for a vb.net application with sql database.

    HI, I've created a vb.net application which contains a sql database which is 500 mb . I cannot create a setup as the file size is big. how do i continue to create a setup. 500 Mb will fit on a CD - so you could create a CD deployment and/or even with a web deployment it should work, its just going to take time. Is this a SQL database or a SQL Express database Did this generate an error for you when you tried to create the setup. truncate the tables or shrink the database to reduce the size. be watchful of your transaction logs you might not need those ...Show All

  • Srinivasan B text box filtering

    hi, i am new to the programming world and getting very lost. i have a assignment to complete for college, i need to filter to data in my data grid view using a textbox.text, can someone please point me in the direction of a simple explaination ofhow to do this, i am using Visual Studios Team suite and SQL server 2005. one other question once the information has been filtered i would like the user to be able to open the record (by click event) in a new window, i have got my two windows form 1 has my search, (textbox1, searchbtn, datagrid view) and form 2 has my details view, again can someone please point me in the right direction of a simple explaination (preferable with code or expamples). thanks for all your help. rob ...Show All

  • 0xDEADBEEF [VB.NET] How to merge many GIF Files into one file

    I need to create a software that it merge many GIF File into one file container.   My application has this form I want that when i click "Add File" it shows an OpenFileDialog and that add file's path in the ListBox And when I click "Merge File" It merge all GIF file present in ListBox And when I click "Split File" it split all GIF File present in a File Container and that It save GIF Files in the same directory of the File Container I tried to write the code but it change any bytes of the GIF Files when I merge :( and i don't know how to use Split Function in VB.NET [Off-Topic]I'm new in VB.NET and i don't know fine this new programming language Best Regards Flash I want to c ...Show All

  • urz Continuously adding buttons during runtime

    Hi. I want to build a program which can add its own buttons. However, I only ended up adding one button, and I don't know why. Here's the code: Dim i As Integer Dim ButtonMade As New Button Private Sub Button1_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click i += 1 ButtonMade.Text = i.ToString ButtonMade.Left += 100 AddHandler ButtonMade.Click, New System.EventHandler(AddressOf ButtonMade_Click) Me.Controls.Add(ButtonMade) End Sub Private Sub ButtonMade_Click(ByVal sender As Object, ByVal e As System.EventArgs) MessageBox.Show("Hello") End Sub I couldn't figure out why it just keeps on adding just one button, and when I try to add another one, it just transports the previously made ...Show All

  • bill perlman Help Needed with VB6 Data Type to VB05 Data Type Conversions

    Hello, I'd like some advice on solving a problem having to do with data type size changes when moving from VB6 to VB05. Specifically how do I convert the VB6 data type to the VB05 data type A simple one is VB6 "Integer" (2-bytes) is a "Short" in VB05. With VB6 the "Date" (8-bytes) appears to be (7-bytes) in VB05 (My data on its size seems to vary). With VB6 the "Currency" (8-bytes) is replaced with "Decimal" (16-bytes). My current project requires me to read a binary file made up of an array of different VB6 data types using a VB05 based program. I created a new Structure with VB05 data types and read the binary file. My data appears corrupted due to the differences in s ...Show All

  • Brandon Bloom Shutdown Windows

    Hello, i have searched for vb.net code that really shut down windows. But i have only found this c# code. Can someone translate this in vb.net Thank you very much, Markus From: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=243750&SiteId=1 using System; using System.Runtime.InteropServices; namespace Shutdown { /// <summary> /// Summary description for Shutdown. /// </summary> public class Shutdown { [StructLayout(LayoutKind.Sequential, Pack=1)] internal struct TokPriv1Luid { public int Count; public long Luid; public int Attr; } [DllImport("kernel32.dll", ExactSpelling=true) ] internal static extern IntPtr GetCurrentProcess(); [DllImport(" ...Show All

  • dmadrian First time user of Visual Studio 2005...need help DESPARATELY

    I just started using visual basic the otherday..from visual basic 6....which by the way I'm still trying to master. Anyway i started this project that I saved and possibly built even before I could finish it. Now I can't get my forms to open in the windows form designer...even when I double click them in the solutions explorer... Detailed assistance required Please....I have a deadline for this project....and already facing hurdles We can't help you if you don't help us help you. At the very least, tell us what error you are getting when you try to open the form in the designer. Oh, and tell your boss that it is going to take a bit longer than anticipated, switching from VB6 to VB.NET is rough going ...Show All

  • r2d2-proton converting datagrid control to html table

    I have several datagrid controls in an application i am finishing up on, i need to output the contents to an html file, so i need to convert the datagrid control into a html table, their wouldn't happen to be any easy way of doing this rather then going though cell by cell, extracting the contents and adding it on to a string along with the html code to make it a table is their well from the sounds of it your idea is harder to impliment, i think i'll stick with my idea, i just need some help doing so. Here is my Pseudo Code: - Create a string, start off with the <table> tag - Go though each cell one-by-one - Extract the contents - Wrap the contents in the necessary HTML tags - Append the result ...Show All

  • fddsfsdf Refactor - cannot get it to work

    I just loaded Refactor on my system that has VS 2005 Pro on it. After starting VS2005 I edited a few projects. I placed the cursor on a line and pressed Ctrl+~ , but nothing happened. I even created a new project, added some code, and pressed Ctrl+~ ...again nothing. I have even rebooted (when all else fails). Still cannot get it to work. Any ideas would be appreciated. Thanks, Tom What is refactor If it's this: http://www.knowdotnet.com/articles/netrefactorproducthome.html then you need to ask them. Yes, it's very cool. In fact I may well buy the Pro version in the near future because 1. You get about 50 or so refactorings. 2. It supports C#. 3. It supports both VS ...Show All

  • Fred Herring Timeout on first load with SQL Express

    I have an application that on the first boot, almost all the time, it will give a timeout error for the database. Has anybody else had this problem, and is it possible to fix Thanks! Hi Dave, I have the same problem too, and although I don't really know the cause/solution, I work my way around it. I don't think it is the cause of an Antivirus/Firewall program. I've tried it on my machine (with AV and Firewall) and on my parents machine (without). And both had the same error. On my form which needs a SQL Express connection, I use Try - End Try. In the catch section I place the whole thing again like: Try 'The Code for the adapter here: Me.MainTableAdapter.Fill(Me.LogbookDataSet.Main) ...Show All

  • av.arce Creating a text file with the landscape orientation with vb.net

    In vb.net, I am creating a text file and I want it to have the landscape orientation. How do I do that So far I have: Dim fs As New FileStream(filename , FileMode.Create, FileAccess.Write) Dim s As New StreamWriter(fs) s.BaseStream.Seek(0, SeekOrigin.End) 'write all data to the file s.close Thanks for the help. Beski I am trying to make a doc file, sorry for the mistake. Beski Text files don't have attributes like landscape... Are you just trying to open the file, and print it in landscape Or are you trying to make a MSWord file (.doc) You can write bytes to a file horizontally..... ...Show All

  • prog.gabi not legal form error

    Hello, I have written a small applicaiton for a class that opens and displays an image file, however when I get the open file dialog box the app crashes and states the path is not in a legal form. Has anyone ever run into something like this Here is the code I am using to select the file and pass it to the Picture Box If ofdOpen.ShowDialog = Dialog.Result.OK Then End If picBox.Image = Image.FromFile(ofdOpen.FileName) Thisi is the error I get when I compile the app and the cause the error to occurr System.ArgumentException was unhandled Message="The path is not of a legal form." Source="mscorlib" StackTrace: at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO. ...Show All

  • polymorphicx Converting KeyCodes to String. Using SELECT CASE with KeyValue or KeyCode. NumPad. Key detect or detection. Number, letter.

    I want to find out which key is pressed so i used a KeyDown event. I want to show a error message message whenever a invalid key is pressed. so i want to show in the error message what Key is causing the problem. Edit: Also can i detect that the Key is like alpha numeric, numeric etc. because since i am trying to disable Keys if they are invalid, not when the user presses any other keys like "F1", "Home" all that. I want to create something like a Mask, to achieve the user not being able to enter invalid Hexadecimal chars like Z, T etc Rushan wrote: Hi guys, I want to desable my numpad when I using excel, please give me a coding of VBA in excel for this ...Show All

  • learning_new writing text to open external application

    Hi All, I am writing an application that automatically answers a popup window in a third party application (Its a password window). There is only one "text" field in this box and this area is in focus when the form is up. I would also like to send an enter event to the form. I have been able to find the window handler and cant seem to do the sendmessage correctly. I was testing it out on the RUN command window and am only able to change the title bar of the RUN cmd and not the actual text area. Please help me Thanks in advance Michael Dim nSize As Integer Dim hwndChild, hwndChild2 As IntPtr Dim sBuffer As String = Space(32) hwndChild = FindWindow(vbNullString, "RUN") 'Untitled - notepad 'use this line if you want to test NOTEP ...Show All

151617181920212223242526272829303132

©2008 Software Development Network

powered by phorum