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

Software Development Network >> Visual Basic

Visual Basic

New Question

TabPage Header Question
using OLE Automation (GetObject) in a web service
Win32 API in VB.NET 2005
Replacing forms
JIT Debugger Error message caused by filelistbox
Updating a pivot table
disable code?
What's the difference between BUILD and REBUILD solution?
ActiveX components
Alternative to Data Reader (VB.NET 2003)

Top Answerers

Candela
Six
ryan101
SeanTom24
killers
kopo
rcurrie
Gliksman
AlexDcosta
TechNoFear
Ranju
Only Title

Answer Questions

  • kkarrancsu How do I copy bitmap data to a buffer?

    I have an application that displays some images using PictureBox. There is a requirement to toggle between colour and monochrome or grey-scale versions of the image, so I've created a class derived from PictureBox that contains extra bitmaps that hold the various versions of the image, and then when the user switches between them, I just assign the relevant bitmap to the PictureBox. When the image is first loaded, the application generates the monochrome and grey-scale versions from the loaded colour version. This is where the problem lies. For each version of the image, I make a clone of the original, and then loop through X and Y, using GetPixel and SetPixel to change the colour based on a conversion formula. That also works ok, b ...Show All

  • Ken Fleming How to replace the <Enter key> event using space in ASP?

    hi how can i replace the enter key event present in an ASP variable with a white space i tried a lot but bad luck....My attacks on this issue: replace(request("textarea"),"vbCrLf"," ") replace(request("textarea"),"&vbCrLf"," ") replace(request("textarea"),"Chr(10)"," ") replace(request("textarea"),"Chr(13)"," ") replace(request("textarea"),"<br>"," ") replace(request("textarea"),"\n"," ") replace(request("textarea"),"\r"," ") Can anybody help me.... thanks in advance........ Sounds like ...Show All

  • please help me Visual Basic C#

    It is possible to change this code into Visual C#. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Button1.Text = "On" Then Button1.Text = "Off" Else Button1.Text = "On" End If If (Button1.Text = "On" Or Button2.Text = "On" ) And Not (Button1.Text = "On" And Button2.Text = "On" ) Then PictureBox1.Visible = True Else PictureBox1.Visible = False End If End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ...Show All

  • johnny_no1_boy How Can i Make my Own web borswer

    Hey i Need heplp so far i've got a window with back, forward, refresh, stop and a url box and go with a webbroswer below i would like ot be able to get this to work heres the code below so far. [code] Public Class H2FWebBrowser Private Sub cmdGo_Click() wb.Navigate(txtURL.Text) 'make the webbrowser navigate to whatever is in txtURL End Sub Private Sub WebBrowser1_DocumentCompleted( ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles wb.DocumentCompleted End Sub Private Sub cmdGo_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGo.Click End Sub Private Sub cmdStop_Click() w ...Show All

  • DQM Graphics: smoothing problem

    Hello, I would like to use the circular progress bar control that is shown on the Code Project site at this URL: http://www.codeproject.com/useritems/sql2005circularprogress.asp The control works well, but the inner circle is not smooth. This is especially evident when the control is enlarged. Any ideas how to make it smooth Thanks Tom Hi Mike, Thanks for taking time to reply to this question. I think I must be missing something. I tried to add the 5 lines at the end of the method CalculateSegments(). The e.Graphics.FillPie... would not compile there, so I put that line where the "e.Graphics.ExcludeClip(innerBackgroundRegion)" was and it compiled, but it did not create ...Show All

  • MarcoB Problem reusing VB6 control in VB .NET - created from Progid

    I'm having some problems in trying to upgrade a VB6 application to VB .net 2005 - I hope someone can give me an idea where to look: The basic upgrade process worked fine, but I'm having trouble with some VB6 / .NET interoperability. The part of this application I'm having trouble with has to create ActiveX controls from their VB6 progids. The old VB6 code used to create these activeX controls dynamically from progids using "controls.add". In .NET, I have tried converting the "controls.add" code to the following, where progid refers to a vb6 user control. (Note that there are a load of these controls which all work perfectly well and I really dont want to have to upgrade them to .net!) When I run the code ...Show All

  • Blkbird textbox text not updated

    I have a several subs where a textbox writes whats happening. The sub could look something this private sub DO_Something txtstatus.text="Now doing this" call Another_sub me.close End sub But the problem is that the textbox doesnt write the text im telling it to. I've tried putting the my.application.doevent() in the first line but this doesnt help either. But if i in example put a messagebox right after the textbox.text="ijhpih" then it displays the messagebox and the the text is written in the textbox. How can i get it to write the text in the textbox Well this is frustrating. The board chokes on my full post. Lets try a stripped down version. Try This: ...Show All

  • Jerod Moemeka Printing directly

    I have in the past created a way to print by creating a file and using writeline methods create the content and then in the end send the file location to a print method that would print the file... but now, I want to print directly to the printer but after I create/format the output. However I am pretty sure the program will run over a network with not enough privileges to create a file, is there a workaround to creating the output and then sending it to the printer thanks, johnp There are several different approaches to setting up a print routine. 1. A one page printout where you want to absolutely position everthing yourself (Print "AAA" at X,Y position, print "BBB" at some other X,Y ...Show All

  • JJ77 Sum on a listview

    I've the following code to populate a listview with records from my database: Private Sub preencherListView() Dim lstItem As ListViewItem Call conexao() sSQL = "SELECT * FROM [TempoTotalFamiliaQuery] WHERE (Data LIKE'" & dtpDataRelatorio.Text & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill(ds, "TempoTotalFamiliaQuery") For i As Integer = 0 To ds.Tables("TempoTotalFamiliaQuery").Rows.Count - 1 lstItem = New ListViewItem() lstItem.Text = (ds.Tables("TempoTotalFamiliaQuery").Rows(i).Item(0)) lstItem.SubItems.Add(ds.Tables("TempoTotalFamiliaQuery").Rows(i).Item(1)) lstFamilias.Items.Add(lstItem) Next l ...Show All

  • Nick W. FileSystemWatcher - Created events fires too early

    I have been playing with a FileSystemWatcher, to start processing files as soon as one arrives in a folder. Specifically, I'm looking for a zip file, then unzip it. However, when I try to unzip a file as soon as I get the Created event, the file has often not finished being written, and therefore I get an error when I try to unzip it. This time period is very short, a tight loop without pauses trying to open it for write will return OK in 3 loops. Question ======= How do I get FileSystemWatcher to raise an event when a file has FINISHED being written, instead of START being written Thanks for the tips Jim 1. Agreed 2. I like the incremental idea. There's a parameter called intTimeOut ( ...Show All

  • fbecker How do I use Team Build/Team Explorer

    The long and short of the whole problem is this: I can't find Team Build. I have Visual Studio 2005 Team Suite installed. Team System is all there. I need to be able to set up an automated build, involving several different build projects, need support for local builds, and I need to have logging done by Team Build (most importantly it must record any errors encountered during the build process down to the line of code). But I can't do any of that because I have been unable to find a way to open Team build, or access its functionality through Visual Studio 2005. Despite the fact that it shows up as an installed component in Add/Remove programs, has it's own directory full of installed components, and can detect already installed components ...Show All

  • Ariel Erlijman User Control problem

    I have a UserControl which basically shows in a textbox the content of a row in a table relationally linked to another table in a database and also a combobox containing the contents of that second table. This mean that as you travel through the main table you can see what the linked text entries are and have a combobox when entering a new record. I started the table in VB.NET 2002 and upgraded it to VB2005 Express and have been using it successfully for some months.So, it has saved considerable code and added to my VB skills. However, having recently discovered the MaxDropDown size property for the combobox I wanted to add a line to the UserControl to fix the MaxDropDown size to be the size of the records in the table it accesses. T ...Show All

  • Luis Carlos Guimar&amp;#227;es Windows Application

    I am curious how to code to use a Calculation Button.  What I need to do is finish a program I've started but I am stuck.  Needed information: Calculate - declare variables : total credit hours, new hours, prior hours, a loop index as integers total grade points, semester gpa, new cumulative gpa, new points, prior gpa, all as doubles write a for loop that  iterates through the 2 array lists( hours and points) and adds each element to the totals if the total hours is greater than zero, calculate the semester average = total points divided by total hours set the semester average text box to the results, formatted to 2 decimals process the new cumulative average retrieve the prior gpa and ...Show All

  • Jonathan Cran SQL Express and VB.NET 2006

    Hello everyone. I have a login form which has a username, password, and login type (i.e. user,admin) fields and I want to add the code in the LOGIN button. I am still pretty new to SQL Express and VB.NET, so how would I go about making a connection to the SQL database called Users.mdf I want it to check whats in the username, password, login type fields to what is in the Users.mdf. If they select admin and have admin priv then they can go into either admin or the system and if not admin priv. then they can only login to the system. do you mean between classes if so yes: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=700821&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx ...Show All

  • Linda Shao Old code issues...

    I use VB6 at school, and was quite used to doing the following: number = txtbox1.txt mumber = number+42 lbl1.caption = number Why does it not work with the new version, and hw can I fix it What I'm looking for is a way to get text (in this case numbers) from a textbox, manipulate it, and output it to a label. How can I do this Also., for later purposes, how do I directly output a textbox to label While we are talking best practices on checking your input, you would need to wrap your code in a try-catch block if the value entered in theTextBox was not a number. Otherwise, you will throw a FormatException at run time. Alternatively, with 2005, you can use TryParse as follows: dim theNumber as Integer If Integer.TryP ...Show All

626364656667686970717273747576777879

©2008 Software Development Network

powered by phorum