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

Software Development Network >> Visual Basic

Visual Basic

New Question

Managing systems from a common system
file rename in VB .net
How to open a Web page in my default browser from a VB .NET application?
Resize windowform1
accessing a thread's (or process's) % CPU usage
Seeing the registered sql server databases in XP
Stupid datagridview error..
Return cell location when using 'Find' in a macro
unable to specify/change toolstrip location
Slow Visual Basic IDE

Top Answerers

Rajput
ron nash
GILLT
Alexnaldo Santos
D.Jones
Davidxin
greenhorn
esamsalah
say_2000
DavidThi808
WVNS-TV 59
Only Title

Answer Questions

  • bn.srinivasa rao Updation Error (Access Database)

    Hi all i am facing a strange problem that i cannot under stand. i have a table names user_details (access database.). and when i want to change the password of a user named admin. it will generating error. =================================================================== Dim cmd As New OleDbCommand("UPDATE USER_DETAILS SET PASSWORD = '11111' WHERE USER_NAME = 'admin'", Conn) Try cmd.ExecuteNonQuery() Catch ex As Exception End Try cmd.Dispose() =================================================================== Error is. {System.Data.OleDb.OleDbException} [System.Data.OleDb.OleDbException]: {System.Data.OleDb.OleDbException} HelpLink: Nothing InnerException: Nothing M ...Show All

  • tdtdtd help with timer

    Hi, I've been trying to make a program that would change colors on the background at random using the R G B values. I need help using the timer. Below is the code I have so far. Public Class Form1 Dim a, b, c, d As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Button1.Text = ("Go") Button2.Text = ("Quit") End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Do Randomize() Timer1.Enabled = True a = 0 b = 0 c = 0 a = Int(Rnd() ...Show All

  • jokohews Method 'System.Windows.Forms.Design.ControlDesigner+DesignerControlCollection.Add' not found.

    I'm a regular user of VB'05 Express edition, but I was recently tasked with converting and modifying an application from VB6 to VB'05. In upgrading and building one of the forms, I encountered the following errors on displaying the designer: Method 'System.Windows.Forms.Design.ControlDesigner+DesignerControlCollection.Add' not found along with at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.Component ...Show All

  • François Paradis Send output to stdout from gui app...possible?

    I have a simple vb.net gui application (an alternative file requester in a form) that I would like to run from the command line. It executes fine, but I find that I cannot send any output (a string representing the file selected) to the command line upon completion. It appears that "console.writeline" doesn't actually write to the console Any suggestions as to how to send info back to the console window upon completion Keep in mind that this is a gui app (not straight console). that doesnt work ReneeC, I also tried that I instantiated that streams and received valid streams although, the second was a null stream. There is abother approach. You begin with a console task and add f ...Show All

  • Headon01 Just trying to understand?

    Below is the code that I got from MSDN help files it shows Encryption/Decryption, I want to use it in my program but first I thought I would try to understand it on it's own, so I have a form with two text boxes and a button, when the button is pressed text appears in the text boxes. What I want is a 3rd textbox that shows me the encrypted data, what variable do I use to show this THE EXAMPLE CODE Imports System Imports System.IO Imports System.Security.Cryptography Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim original As String = "Here is some data to encrypt!" ' Create a new instance of the RijndaelManaged ...Show All

  • Temppp DLL Creation

    I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All

  • William Lowers Minimizing Process Start Up - CPU usage and Start UP Time

    We have a one process which is started multiple times from a .NET Visual Basic console "exe" (i.e. many of these can be running simultaneously). Each process does its job and exits. We are continually starting these processes using the process object. Is there any way to minimize the "start up" time and CPU usage each time a process is started Best Regards - Dan Golden Is the process being started a .Net application - if so then you may be able to Ngen it to save a little bit of time. Native Image Generator http://msdn2.microsoft.com/en-us/library/6t9t5wcf(VS.80).aspx DanGolden wrote: Is there any way to minimize the "start up" time and CPU usa ...Show All

  • johnny_no1_boy Crystal Report And Similar Tool For Printing Document

    May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. your very welcome, glad i could be of assistance Anyone can help me to check the following underlined code The VB.NET 2005 can't recognize the underlined object. I will really appreciate if you can provide me some good Crystal Report web tutorials or information. Thank you.   Dim CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer = New CrystalDecisions.Windows.Forms.CrystalReportViewer Dim Report As CrystalDecisions.Crysta ...Show All

  • Ghassan Rashed Running a batch file

    Is there a special way of running a batch file I have tried process.start but it is not working. The batch file works when I double click it but not when I try to run it through my program. Thank you, Troy L The following will work without any clicking at all and will start xyz.bat with no arguments. Process.start("xyz.bat","") If your requiring a double click - then its probably something in your code or the bat file as process.start should not require any user involvement. I guess the current directory is not set, simply by executing the batch in the directory of your executable. Put e.g. this at the end of your batch: dir . pause Then you will see, wh ...Show All

  • Acanthus Help again...need help with a code i do not know how to make

    Hello,everyone again. I need help with a code i need to add the final touches to my lights out app,this is my problem I need to make a If then with all of these in it Button1.backcolor = color.black button2.backcolor = color.black AND SO ON TILL Button25.backcolor = color.black So i can make it If button1-25.backcolor = color.black then msgbox ("Congrats You have Passed the level,Please click on next to continue to the next level") End If But since button1-25 does not work,could anyone help me Thanks In Advance! sorry can you explain what doesnt work :-) I was typing out the code by hand P.S I edited the post also, it should be ForeColor (or backcolor, ...Show All

  • samaya78 Opening csv files through web

    Hi, I'm using the following code to open a csv (comma separated values) file over the web. The problem is, when Excel opens the file, it puts each line in the first cell of each row, completely ignoring the commas. I tried using other content types, but they all do the same thing. Any help would be great. Thanks. <% Response.buffer = TRUE Response.ContentType = "application/x-msexcel" Dim vntStream Set oMyObject = Server.CreateObject("MyObject.BinRead") vntStream = oMyObject.readBinFile("c:\temp\tempcsv.csv") Response.BinaryWrite(vntStream) Set oMyObject = Nothing Response.End %> Function readBinFile(ByVal bfilename As String) Set oFSO = CreateObject("Scripting.FileSystemObject") ...Show All

  • Wahl04 Responding To A User Clicking The Red X In Upper Right Corner

    Using VS05 Visual Basic - when a user closes a program by the red x in the upper right hand corner, is there a way to respond to that the same way as if they had properly used File, Exit Does the X raise an event I have not been able to figure this out yet. I don't want to disable the X, just respond to it. Thanks for your help. Bob The reason is this is a telephony application and File|Exit waits for all calls to finish before exiting the program. The Red X simply hangs up on everyone as the program closes. Thanks! Bob Hi, you could hook into FormClosing event and check the CloseReason parameter to see why it's being closed. If it's value is "UserClosing", the user either clicked the Red X, pres ...Show All

  • altamash Program to execute on one machine only

    Hello, My problem is that I want to deploy my program onto a 'thumb drive' and sell it that way and I need the program to only run off that drive. It is a small program that can easily be copied and run by anyone so I thought that if I could somehow 'lock' it to the small USB drive then that would solve my problem. Because some games require a CD to be in a drive before they will run I figured that that would be something that I could do, my problem is finding any help in how that might be accomplished. Can anyone point me in the right direction Thank you very much Bill Langston That's going to be hard to do. CD-Roms are generally copy-protected by playing weird games with the disk formatting. Downloadable games ...Show All

  • laserbeam listview to richtext drag / drop problem

    I have a vb.net app coded up with drag drop from a listview to a richtext box. Here is the relevant code: using listitem "hp41exec", e.Data.GetData(DataFormats.Text).ToString = "hp41exec", as one would expect. It's difficult to use breakpoints, since it tends to drop text into my source code :( Stepping thru it though, ListViewItemDrag fires twice and ListViewDragDrop fires only once. I suspect what is going on is the richtext object is doing its own DragDrop. Does that make sense If you want to look at the project, I can email it to you. That does seem strange - when you put a breakpoint on the drop handler, can you see what exactly is happening on the second drop S ...Show All

  • Seppe001 Removing Columns From Delimited Text File

    Greetings, I need to parse a delimited text file and remove the last 3 fields in each row. Can someone show me how to reference the columns and specify the ones I want to keep Thanks. Try this: Dim stmReader As System.IO.FileStream = System.IO.File.Open( "C:\1.txt" , IO.FileMode.Open) Dim rdrReader As System.IO.TextReader = New System.IO.StreamReader(stmReader) Dim strLine As String Dim intCounter As Integer Do Until (rdrReader.Peek() = -1) 'Not end of file strLine = rdrReader.ReadLine() For intCounter = 1 To 3 If strLine.IndexOf( "," ) <> -1 Then 'Delimiter exists, remove al ...Show All

151617181920212223242526272829303132

©2008 Software Development Network

powered by phorum