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

Software Development Network >> Visual Basic

Visual Basic

New Question

Chart in a Window
EMAIL
how to make an .exe with VB (not a dumb question dont worry)
Odd behavior on enter key twice
Selected Value in ComboBox Populates DataGridView
listview to richtext drag / drop problem
Vb.net calling VB6 Application
DLL Creation
Newbie to VB.net
Decimal places for a percentage value

Top Answerers

jturpin
xyzt
Joe Lucas
K.Kong
lib_team
Lucas Pasquali
Feroz Khan
cmwith
Alexey Raga
CSharpShooter
Amulet Project
Only Title

Answer Questions

  • Arun Narayan Background painting problem... odd.

    I built a simple Label control with a gradient background a few weeks ago by inheriting a new control class from the existing Label class, and then overriding the OnPaintBackground method to draw a gradient on the background of the control. This was working great until yesterday. With no changes whatsoever to my code, I dropped one on a form and to my surprise, the gradient looked all messed up. Then when I ran the form, the control appeared as nothing more than a solid black box. I've pasted the entire source for the control below, take a look and see if anything jumps out at you. The code's pretty straighforward, but I'm just not seeing where the problem is coming in. My best guess is that it's something to do with using Me.Bounds for ...Show All

  • hmayer VB .net tab control multi line...

    Ok, I am creating a new version of a program in vb .net. The main page has a tab control with 7 tabs on it to select your general category. However, the two word text does not always fit on these tabs. I want the text to wrap instead of just going out of view off of the tab. However, there is no wrapping option or way to get the text on multiple lines(like there was in VB 6), except for forcing it by inserting a new line character into the text. But if I do it that way the text is no longer vertically OR horizontally centered and looks very bad, and is plainly unacceptable. So, is there any way to get the text on multiple lines on the tab control I have been looking everywhere for this option and it is simply not there. Thank you. ...Show All

  • Jan Kučera Converting VBA to VB2005 problem (or my ignorance)

    Hi, I've been in the IT trade all my life. I didn't come to this job as a programmer but after working here a short while, I showed everyone how I could save the company tons of man-hours (money) with a few custom programs. They didn't have any programming languages so I used VBA inside of their Office 2002 suite. They were so impressed, they gave me anything I wanted. I wanted Visual Studio 2005. Suddenly I'm a full time programmer here. The first thing I wanted to do while I familiarized myself with VS2005 was convert an already working, processing intensive, program that I had already written in VBA. This thing literally compares billions of cells in very large spreadsheets, and as you can imagine, it takes a while to process. I spen ...Show All

  • Volker Gerdes Current row in dataset

    hello, a question please. I am binding a table of a dataset to a listbox.datasource. When the usager choices an element of the listbox, how can I know the current row in the dataset Thanks... NetPochi, According to your question, I suggest to you to return the ListBox.SelectedItem property value. Or return the ListBox.SelectedObjectCollection class. Do you consider that is a solution You could also return listbox.selectIndex. From my understanding, when you bind a dataset to a listbox, the row index are the same. So you if you select option 2 of your listbox, you're selecting row two of your dataset.table. Also, if you are binding your dataset with code or thru design viewer. If you ...Show All

  • eldiener crystal report 9

    hiiiiiii... can anybody plz give me the code for calling crystal report 9 file in VB 6.0..and exactly which component to add on the form.... In references select 'Crystal Reports Viewer Control 9', 'Crystal Reports 9 ActiveX Designer Design and Runtime Library' and 'Crystal Reports 9 ActiveX Designer Runtime Library'. In Components select under the Controls Tab 'Crystal Report Viewer Control 9' and if it is there the Crystal Reports 9 under the Designers tab. Some of these may already be selected. To actually put it into the program i use the CRViewer9 control under the General part of the Toolbox, and then use the following code: Dim m_Application As New CRAXDRT.Application Dim m_Report As ...Show All

  • moondaddy Can't kill Excel.Exe after using Excel component in vb.net

    Hi , I'm using Excel.Application generating excel report via vb.net 2003 , the problem is excel.exe process reminds even after generated excel report closed . I have been using the followed code to close or dispose the process , but it does'nt work either. thenks Dim procList() As Process = Process.GetProcesses() Dim k As Integer For k = 0 To procList.GetUpperBound(0) Step k + 1 If procList(k).ProcessName = "EXCEL" Then procList(k).Close() procList(k).Dispose() End If Next Hi, The above method will kill the process. However if there are multiple applications or batch program running independant of eachother and each ...Show All

  • jameyer Graphics Disappear After Minimizing Window. Force the PAINT event using OnPaint. Scroll the sub window.

    I have a VB 2005 windows apps with a picture box on a form. I created a graphic to draw stuff on the picture box: Dim g as System.Drawing.Graphic g = picBox.CreateGraphics Then I draw stuff ... but when I minimize the form's window and then restore it the stuff I've drawn does not appear. I don't know how to cause the program to redraw the graphic when the window is restored ... i.e. how to "anchor" the graphic to the window. If the answer involves using the paint event I would appreciate a bit of detail ... I cannot figure out how to do it. Thanks. My web page storage area may not be working okay. Adelphia just got bought up by another cable company. If you cannot ...Show All

  • Mitch Wardrop Recognizing changes on a Datagridview

    Hello. A question please. I fill a datagridview with a datatable. I assign this datatable to the datasource property of the datagridview. That in the load event of my form. After the user is done his changes on that datagridview and press on the "Ok" bouton, how can I recognize the add rows, the modified rows and the deleted rows WITHOUT staying a collection, array, or some like this in memory Is there a way to do that Thanks in advance.... NetPochi, I suggest you to use the DataTable.RowChanging event which occurs when a datarow is changing. As known that the DataSet contains the DataTable, they are both in memory. Please take a look at the DataRowChangeEventArgs class, it pro ...Show All

  • morus How to merge 2 pdf-files.

    I created a little program wich is able to export 2 pdf-files. These 2 files must then automatically be merged. Does anybody know how I can do this in Visual Studio I would doubt that this is something that is provided within the .NET framework / Visual Studio as in order to support pdf files you need to use a 3rd party control as it is not a supported out the box file format. That said a simple web search on .NET + pdf + component http://www.google.com/search hl=en&q=.net+%2B+pdf+%2B+component will reveal numerous components which you'd probably want to investigate. There might be some 3rd-party components to merge PDF documents. I've always used ...Show All

  • Selectis Help with string manipulation in combobox

    Hello, I have a combobox in which I populated as follows: John Smith - Count 24 How can I change that string in my combobox to read John Smith - Count 23 after I save a record ... and then John Smith - Count 22 and so on... I'm not sure if I could just grab the number value, and subtract it by 1 and then take the result and concatinate it back to the string... Thanks in advance. Hi Rashar, a possible solution is to create a integer variable and set that variables value as 23 dim countvariable as integer = 24 then set the combobox string as "John Smith - Count " plus the variable's value yourcombobox.text = "John Smith - Count " + countvariable.tostring put s ...Show All

  • Dnieto23 nanoseconds per second?

    Hi, I have the following code snippet..... Dim StartTime As DateTime = Now() Dim EndTime As DateTime = Now() Dim One_Second As Long = '1 - second in nanoseconds While (EndTime.Ticks - StartTime.Ticks) / One_Second <= 2.5 'wait for 2.5 seconds Application.DoEvents() EndTime = Now() End While What should the correct value be for the number of nanoseconds per 1 second in time to properly determine the number of seconds in time that have passed I've played with various values and the closes one I've had success with is "10,000,000". I chose this routine because it can give finer values less than 500 milliseconds like 0.25 seconds Any other suggestions and code improvements are appreciated. TIA ...Show All

  • el_Fede Programmatically retrieved event log EventID does not correspond to Windows EventID

    Hi, I am developing an application that reads the event log in windows. I have managed to retrieve everything correctly except the Event ID. Most EventIS's are similar but for e.g. " Broadcom NetXtreme 57xx Gigabit Controller" Windows Event-ID is 15 and when I retrieve it programatically it is 327695. Another Event ID also for this controller is 6 and 327686. The difference between both are 9. Can anyone explain this Can it be fixed Best /M Thank you for answering. Seems that the problem is advanced I have made the row containing .eventid bold and larger in my previous post so you see it. I have tried to replace the row with: oEvent.InnerText = (oEventLogEntry.EventID ...Show All

  • HMote php editor

    hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only Consider looking at the following links 1. For a small program allowing you test regex results: http://weitz.de/regex-coach/ 2. Describe using regular expressions: http://etext.virginia.edu/services/helpsheets/unix/regex.html Hope this helps Other regex docs I recommend: http://www.regular-expressions.info/ for code highlighting check: http://www.actiprosoftware.com/Products/DotNet/CodeHighlighter/Default.aspx)cts/DotNet/CodeHighlighter/Default.aspx Tho ...Show All

  • martok Dynamic Creating of assemblies

    hi, i want to create a dynamic aplication who can create more code by theself : Dim s As Stream = File.Open( "Script.vb" , FileMode.Create) Dim ws As New StreamWriter(s) ws.Write( <here i have new generated code in vb.net> ) ws.Close() s.Close() Dim psi As New ProcessStartInfo() psi.FileName = "cmd.exe" psi.Arguments = String .Format( "/c vbc /r:ScriptTest.exe /target:library Script.vb" ) '< here program runs a vb-compiler psi.WindowStyle = ProcessWindowStyle.Minimized Dim proc As Process = Process.Start(psi) proc.WaitForExit() Dim ase As Assembly = Assembly.LoadFrom( "Script.dll" ) Dim Script As Object = ase.CreateInstanc ...Show All

  • markovuksanovic Reading Serial COM-port with IRQ interrupt handler

    I am writing a program for RFID registration in VB.NET I am searching for a (VB).net class to read/write from/to my COM-port. But the reading should be interrupt triggered. I already found some programs to read from my com-port but I haven't found anything of how to make this interrupt triggered. So that the port is only read when data is send trough. Ps: I prefer VB.NET solutions, but if you would only have a C# solution you are always alowed to send it trough. It would only take my a lot longer to untherstand the code greetings Dries Driescox, How is your project going Is this article titled Serial Communication with VB.NET and linked http://www.codeworks.it/net/VBNetRs232.htm I hope that can ...Show All

313233343536373839404142434445464748

©2008 Software Development Network

powered by phorum