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

Software Development Network >> Visual Basic

Visual Basic

New Question

PrintForm and DPI
VB.NET Language Translator
Sorting thru directories for files
Design Time Hide .Net controls
Coding Listbox Puzzle
get user's network name
Generating text around an arc in an image file
My program dont stop when an error occurs
Need help:click event for button control not woking with IE6
Vb.net calling VB6 Application

Top Answerers

OmegaMan
HC86
Sqnyy
CarlosAlfaro
suneelkumar
GStevens
imdqa
Linda2270
Zaph0d
lol1988
XMLFeeds.de
Only Title

Answer Questions

  • shakalama .Net Component in VB6.0

    I have created a .net component and compile it with “Register for COM interop option” and used this component in VB6.0. Its working perfectly fine while tested locally. I created a package for the VB6.0 application and installed on a separate machine. It’s installed successfully. While I run the application it throws exception - ActiveX component can’t create object. Please Help! Where's the assembly located relative to the VB6 application Assempbly is in the APPPath directory. And the remote machine will not be having the .Net Framework. I was able to fix the issue using regasm where remote machin has .net framework. Please Help Ok .. Thanks You definitely need to ins ...Show All

  • gafferuk KeyBored Hook

    Hello i have found that : http://www.developer.com/net/net/print.php/11087_2193301_3 spouse to hook the keybored how can i do this MSDN Article about hooks: http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/ Related threads: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=283034&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=164166&SiteID=1 ...Show All

  • cooldoger MSRDP.OCX and Office 2007

    Hi Everyone, I have a small application using the msrdp.ocx control, everything works great until I test the application on a machine with Office 2007 installed, it just simply crashes, cold hard crash. Looking at the error log file is like looking at mumbo jumbo. The application runs fine, the crash occurs when I'm trying to unload the form with the msrdp.ocx control. If I run it in design-time, it will also crash however if I place a breakpoint anywhere, it will not crash. Something is going on with respect to timing and I have no clue what it could be; I have error handling everywhere but it doesn't catch it. Anyone else experience a problem with the two components working together Any help is appreciated. Thanks Nuno ...Show All

  • rs12345 modal dialog active...

    Any news on the "Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again." I have had this happen several times and its a pain in the butt! ME TOO ... now this is happening almost every time I try to shut down visual studio. There is absolutely NOTHING open on my pc except VS and there is NOTHING open in VS ... I have closed down EVERY window possible and it still wont end without me having to go into task manager and cancel it off (which ISNT good !!) I have a new pc and I dont want to start cluttering it up with aborting applications the WRONG way (thru task manager). Please ... can someone help .... I use VS 100% of the time and this is reall ...Show All

  • Devi48354 Hi, Tailor POINT is a STRUCTURE with more than one property and is treated as a single item.

    Hi, I'm having trouble coming to grips with the use of arrays. This time I need to put a number of co-ordinate Points into an array. for example startPoint = 50,180 endPoint = 100,180 I've initialised my array : Dim arrowCoord(,) As Point = New Point(,) {} Then tried to input data with this. arrowCoord(0,0) = (startPoint, endPoint) I'm getting the error message that a ')' is expected at the comma between startPoint and endPoint. Would appreciate any advice. Whe I get this right I need to write the data to an Sql table, so would appreciate a little help with that also, as far as the extracting the data from the array. Thanks Tailor Hi, All Sorry for the delay ...Show All

  • Alan Finney simple string manipulation pda

    I've got a string "6/78=12.34" i need to get the value to the right of the = sign how would I do that Mitch Or using the more traditional VB methods, which will work in every version of VB and VB.Net Dim theString As String = Textbox1.text If theString.Contains("=") Then Dim iPos As Integer = InStr(theString, "=") Dim theWantedString As String = Mid$(theString, iPos + 1, theString.Length - iPos) MsgBox(theWantedString) End If    Dim ResultsString As String = Textbox1.text         If InStr(ResultsString,"=" ) <> 0Then   &nb ...Show All

  • J.A.J. Datagridview Scrollbars Freeze up after binding datata to the control

    Problem: Scrollbars are not functioning after the datagridview control is populated with data. I am having a hard time trying to figure this out, but I am loading an excel file into a table, and then binding the table to the datagridview control. However, after the datagridview control is filled. The scrollbars seem to be frozon. I have tried loading a table with 10 rows and tried other sizes as well but same result. The only way, I was able to get the scrollbars to function correctly was to hide the form and then show the form again. After showing the form again with the datagridview already populated the scrollbars function correctly. I have also tried to refresh the datagridview control, the form and I also tried application.doeve ...Show All

  • Clark Wilson System.IO.StreamWriter hanging program execution

    Hi all.... I have code that does lots of work, and I log progress using the following code text. I've noticed some unusually long times for the code to complete, and when I break the execution always hangs at the same line Public Shared Sub sub_WriteToFile( _ ByVal What As String, Optional ByVal ReportPath As String = "") Dim strReportPath As String = _gstrReportPath If ReportPath <> "" Then strReportPath = ReportPath Dim objReader As System.IO.StreamWriter Try objReader = New System.IO.StreamWriter(strReportPath, True) objReader.Write(What & vbCrLf) objReader.Close() Catch Ex As Exception Err.Raise(Ex.Message) End Try Console.WriteLine(What) End Sub What might ca ...Show All

  • archimed01 How to gracefully handle timeout expired?

    Hi, there. I would like to find out is there a better way to handle System.Data.SqlClient.SqlException: Timeout expired. I am not looking for performance tunning advice or setting timeout to a higher limit, or running a backgroud thred type of advices. I want to see how to trap it and bubble it up to the end users, then possiblly retry the call later. It is a win form app in vs2005. Thanks! Thank you for your reply. Yeah, it will be grateful if you can give me a hit for my reference. Also, I am using Microsoft ApplicationBlock DataAccess as my data access layer. I am not sure it returns a universal false/nothing or exception code, I may need to write a wrapper for that. Any suggestion ...Show All

  • Jefy using .focus on textbox without selecting the text in it

    When i use the .focus command on a textbox, it automatically selects (highlights) the text thats in it also. Can i do this without selecting the text If you set the HideSelection property to False then when you focus on the textbox it will have exactly the same selection (or no selection) as when you left it. you can't quite but you could set the selection length to 0 and selection start to 0: Me.theTextBox.Focus() Me.theTextBox.SelectionStart = 0 Me.theTextBox.SelectionLength = 0 ...Show All

  • Dany V read special characters from textfile in visual basic .net 2005

    Hi, I am trying to load a simple textfile into my program. The file contains some swedish characters (aaoAAO) which for some outlandish reason isn't loaded. So the text looks very weird, looks like the StreamReader just skips them. Here is the code that tries to read the textfile: Add System.Text.Encoding.Default byte order mask as in... IO.StreamReader(sFileName,System.Text.Encoding.Default) Partik. Amazing.. Thanks a lot . it worked like a charm cheers. Karthik //To open a File for reading fin = new FileStream (pStrSrcDirPath + pStrInFileNameWithExt, FileMode .Open, FileAccess .Read); fstr_in = new StreamReader (fin, System.Text. Encoding .Default ...Show All

  • John Veson ImageLooper Control

    I am working on a VB tutorial, and at the same time trying to create my first control called ImageLooper. This is pretty straightforward, a control box with a picturebox1 inside, a left arrow button and a right arrow button (button1 and button1 respectively). The idea is, with each click in either direction, the next or previous in line image will display, depending on which arrow is clicked. Each button works individually ok, but when I switch from the left arrow button to the right or visa versa, instead of going to the next image down or up, on the first click, it takes one step in the opposite direction, displays that (wrong) image, then, with subsequent clicks, starts moving through the images correctly. The language is below: ...Show All

  • zeifer ContextMenuStrip Control Initial Display Capability/Operation

    Hello: VB.Net (2005) I have a ContextMenuStrip control (name: ContextMenuStrip1) associated with a TextBox control. When the TextBox is entered the ContextMenuStrip is displayed with the ContextMenuStrip1.Show instruction. When an item is clicked in the drop down menu the associated function operates as expected. Question regards the initial display capability of ContextMenuStrip1: How can one of the items in the ContextMenuStrip1 drop down menu be hi-lited by default upon initial display Question regards the operation of ContextMenuStrip1: Is it possible to activate the hi-lited item with the Enter key in additon to activation with a mouse click Thank you for suggestions.... jes ...Show All

  • Barbie G Streamwriter in VB 2005

    This SHOULD be easy. I must be missing something. I'm assembling a long string and trying to write it out to a file. If I display it in a message box or textbox, it looks fine. But when I write it out to a file, it gets chopped off. I thought it might be my data, because it is supposed to be HTML, but it seems to be related to the amount of data, because it chops off at about the same number of lines no matter what the data. I tried breaking it into smaller strings and doing two writelines, but it still does the same thing. lname = names(1) outFile = "D:\Class of 57\updatehtm\" & lname & ".htm" output = New FileStream(outFile, FileMode.OpenOrCreate, FileAccess.Write) fileWriter = New StreamWriter(outp ...Show All

  • Ultrahead How to insert data (probably simple question)

    I am quite newbie and I have one, probably simple question. I try to insert data into my database (SQL Server 2005) with this code (VS .NET 2003): Friend Sub Datainsert(ByVal Name As String, ByVal Surname As String, ByVal DateOfGame As Date) Dim ConnectMe As New Odbc.OdbcConnection ConnectMe.ConnectionString = "Driver={SQL Native Client};Server=localhost;Database=ProjektKoncowy;Trusted_Connection=yes;" Dim Writeit As New Odbc.OdbcCommand("INSERT INTO ProjektKoncowy.dbo.Wyniki (Name, Surname, Points, Status, DateOfGame, KindOfGame, Autor) VALUES (Name, Surname , ' 3 ', ' 1 ', DateOfGame ,' 4 ','John Smith')", ConnectMe) Writeit.Connection.Open() Writeit.ExecuteNonQuery() ConnectMe.Close() End Su ...Show All

555657585960616263646566676869707172

©2008 Software Development Network

powered by phorum