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

Software Development Network >> Visual Basic

Visual Basic

New Question

how to use progressbar in vs205
Online Tutorials & Books for Networking in VB.NET ?
RunAs in Visual Basic
Access database
Then with the CLASS defintion above you could use that in another CLASS definition or a STRUCTURE to mix OBJECT types. :-)
Debugging Error
possible to automate ms word if Ms word is not installed?
multiple forms at runtime
Hotkey control in vb.net?
Error on export to Excel

Top Answerers

daniele bonini
RubenPieters
NeilAtTawanda
GTrz
bhavu
Timothy Wilson
Aleniko29139
sroughley
ramjamman
Grant Jenkins
sitemap
Only Title

Answer Questions

  • GoDaddy Saving ListViewItemCollection

    Connection.Open() Dim cmd As New OleDbCommand cmd.CommandText = "INSERT INTO PANELDETAIL (PanelID,PanelName,ExamName) VALUES (@PanelID,@PanelName,@ExamName)" cmd.Parameters.AddWithValue("@PanelID", tboxID.Text) cmd.Parameters.AddWithValue("@PanelName", tboxName.Text) cmd.Parameters.AddWithValue("@ExamName", lviewIncluded.Text) cmd.Connection = Connection cmd.ExecuteNonQuery() Connection.Close() Basically, this code just inserted a certain record on my database...All seems fine but the one with the question mark, I don't know how to insert but I am certain that it's wrong.I just want to ask how can I ...Show All

  • paso Poor Performance in Visual Studio

    Hi, I am an experienced VB6 programmer, but just a new starter in Visual Studio 2005. I have found Visual Studio 2005 to be very slow. I set up 3 simple tests with the following results:- 1. Scanning 20,000 directory entries and retrieving date/time and size info VB6 3 Secs Visual Studio (Debug) 13 secs Visual Studio (exe) 3 Secs 2. loading 100,000 Nodes into a treeview VB6 2 secs Visual Studio (Debug) 320 secs Visual Studio (exe) 140 secs 3. loading 100,000 Items into a Listview VB6 2 secs 11 secs Visual Studio (Debug) 270 Secs ...Show All

  • gonzo883 Create a class that disables specific controls

    Hi guys, I am considering creating a class that disables certain controls on my form when it loads. Opposed to setting each 'enabled' property to false, i think a class that executes when the form does, is the most efficient. Am i right, is this efficient If so, how exactly would i go about coding it Many thanks in anticipation for your help. Kyle Well it depends upon what your overall objective is...If it is to just disable controls on load of a form then you can do that in the designer or you can do it in the load event of the form. kitsch wrote: Opposed to setting each 'enabled' property to false What method would your class use to disable the controls It sounds like your trying to ...Show All

  • Jarod.Net Create a file

    Hi! I'm creating a file in an aplication but when it creates it, the file is in blank. Could you help me with some method to create a file Thanks! What is the code you are using and what version of VB.NET are you using Hi, Here is a simple way to create a file. You must imports system.IO; And some thing like that in VB.net to create a write on file... Dim sw as new StreamWriter("C:\\demo.txt"); sw.WriteLine("Line 1"); sw.WriteLine("Line 2"); sw.Close(); Hope this help. I assume theat your trying to create a simple text file or something similar to that. Dim s as string = "Text File Contents" My.Computer.Filesystem.WriteAllText("c:\tests.t ...Show All

  • Ori' Storing variables outside of RAM?

    I'm writing a program that stores values in variables, but I need those variables to hold their values after the program closes, as I am making an organizer for things. I was thinking of writing them to a text file then retrieving them, but I know there's a better way. Thanks. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vbmysettings.asp Best regards, Johan Stenberg Text file, Application Settings( which can be persisted to file) , XML File, Database (Access, SQL ....) All are possible - it really depends on what data you are storing, how much of it there is and how your using it in your application. Okay, ho ...Show All

  • AllisonH looking to exclude a function based on a flag

    i want to (based on a flag) not reference any ink stuff so my application can run on non tablet pc's. what contructs in VB do i use would i need to remove references to the dll how do i that with functions in a class not sure what this is called...sorry for the vague questions. Dan You can't do what you want to do that way, based on what I think you are saying; however: You can use conditional compilation flags: #if USE_INK then #end if But this is at compilation (when you create the executable) . Do you need 2 executables or just one If you need two, then you can use the conditional compilation, as shown here, and run the desired executable on the target machine. Compile once for WIT ...Show All

  • Dika Convert Color Image to a Gray Shade Image

    Hi all, I'm creating a custom button control. I need to show a color image when the button control is enabled and a gray shade of the same image when the button control is disabled. How can i convert a color image to a gray image in VB 2005. Thanks, I know, there are many methods to do that, I wrote two classes, the first one uses the average method, and the another uses YIQ method. Here is the result : http://www.instructurez.com/posts_images/post_712.jpg Here is the code for average method : Public Class Colorful_To_Gray_Pics Public Function Colorful_To_Gray_Pic( ByVal InputPic As Image) As Image Dim TempBitmap As New Bitmap(InputPic) Dim XIndex As Integer , YIndex As Integer , Average As Integer For XI ...Show All

  • nbrege I don t know hoe to use Console.WriteLine

    I place a form and a button then I use Console.WriteLine in my code . But this latter doesn t display anything. where should I watch the output of Console.WriteLine. In which window Thanks Console.WriteLine is for when you have a Console. You do not have a Console when you are developing Windows Applications. If you are not writing output for debug purposes you need to state so and state what you are doing. If its a console application they should appear when the programs run, if your using a windows application you need to look in the output window. Debug -> Windows -> Output in Express will show the console.writeline output. You should use Syst ...Show All

  • sandeep437 Singleton-threading confusion

    Hi, My first singleton, so i have some doubts about threading issues involved. Public Class UsuRegistro Private bloqUsers As String = "bloqUsers" Public users As New Hashtable Public Function GetUsers() As Hashtable SyncLock bloqUsers Return users End SyncLock End Function Public Function GetUser(ByVal cod As Integer) As UsuObj Dim obj1 As Object = users(cod) Dim usu1 As UsuObj = DirectCast(obj1, UsuObj) Return usu1 End Function Public Sub RegistUser(ByVal cod As Integer, ByVal usu1 As UsuObj) SyncLock bloqUsers users.Add(cod, usu1) End SyncLock End Sub Public Sub DeleteUser(ByVal cod As Integer) SyncLock bloqUsers users.Remove(cod) End SyncLock En ...Show All

  • Sushisource Send Keystrokes on the Server

    I’m new to Visual Studio, I developed an application using Visual Studio 2005 (Visual Basic.NET) I embedded some flash files in my application and these flash files are refreshed and updated from an independent software(there is no .NET or COM references of this software to add to my project) so I built an update procedure using some keystrokes in my code to update and refresh the flash files. The application is sitting on the web server. To execute my procedure I need to login remotely to the server and execute it. I wrote another code for a timer so the timer will fire the procedure at a specific time to update the flash files The problem is that when I am not logged in to the server I can’t send keystrokes in ...Show All

  • IreneSmith Appointment Reminder Help

    First off, if this is in the wrong forum move it please. Ok, so... I am making a program that would help remind someone of an appointment. It has four basic objects - a DateTimePicker, a Button, a TextBox, and a CheckBox. I have set the DateTimePicker to a custom format of dddd, MMMM dd, yyyy -- hh:mm:ss tt. When the user sets the date and time and clicks the appropiately named "Add" button, it will add it to a list of appointments - the textboxes. Of course these probably aren't the best way to list them is it, but more on that later... When the system time reaches what is in the textbox it is supposed to alert them and give them maybe a couple of choices of dismissing it or moving it. The checkbox I haven't decided 100% on, ...Show All

  • Tridex Perminently update a dataset without SQL command?

    Hi, Is it possible to perminently update a dataset without an sql command. I am trying to edit a data table programmatically, and write my changes to my dataset. Something like this: dim dt as new datatable dt = me.dataset1.table1 dt.rows(1).item(1) = 5 dt.AcceptChanges() me.dataset1.table1DataAdapter.Update(dt) But, after i run this, the table in my dataset does not seem to be updated with the new values. What do i need to do differently Thanks in advance. Pete M Pete_M, DataSet table is stored in the memory and is different from the real table in the database. The following two methods shows the difference between update the dataset and the database tables: Refres ...Show All

  • Srikanth Ramakrishnan Date and Time Format Problem

    Question one May i know is there any time picker in VB.NET 2005 which allows user to enter a time The DateTimePicker can only retrieve current time and i think of using few combo boxes to form the format like hour,sec and AM or PM. Apart from that, is there any other way of doing it If i use the combo boxes method, how to parse the concatenation string as time and store in database   Question two I allowed user to select a date from DateTimePicker and format the date as the below and store it in database.   FormatDateTime(join_date.Text, DateFormat.ShortDate)   The datatype of that column i set it to string in order to prevent any format error. One problem is that the time format (DD/MM/YY) appea ...Show All

  • Davids Learning prevent null exception from occurring

    Hi there, I'm fairly new to VB.NET and love it but I'm not sure how to prevent a null exception from occuring. I can use the Try ... Catch to prevent the program crashing but I would prefer not to use this method. Is there a way to test for this without throwing exception I need to return a blank value for objUserInfo.Properties.Item( "mail" ).Value for example if nothing is found. I'm building a string from data gathered in active directory to output to a CSV file. It seems if a value is blank then an exception is thrown. The relevant section of code is: Dim objUserInfo As DirectoryEntry Try objUserInfo = GetUserInfo(objSubFolder.Name) ' ' Exception occurs on the following line s = s & ",&qu ...Show All

  • Stephen_Sbh Uploading files to the internet

    Hello again, Anyone have a clue on how to have VB create a text document and upload it to the internet... example: File Name: Location.txt Text in document: 222 this will be uploading once or twice a second... so if the location moves from 222 to 210 then the text in the document will be 210 instead of 222... so VB needs to create its own text document repeatedly... and then upload that text document to the internet... Thank you for any help, moveit124 well the file would only contain the text with the number 1-324... nothing else... so it has to overwrite a file everytime... and a file with just the text 324 ... is 4bytes... so yeah... it'll be fast i think... happen to know where i might be able to get code for this create text ...Show All

34567891011121314151617181920

©2008 Software Development Network

powered by phorum