Answer Questions
Steve Wolf VB .Net Express ? (not VB 2005)
Is there or was there an express version of VB .Net (2003) available for download. My work PC is stuck at XP SP1 and VB 2005 requires SP2. The closest thing to a ‘Visual Basic .net 2003 Express’ would be a copy of Visual Basic .net Standard edition as it is language specific (and limited) version of Visual Studio 2003. Unfortunately the Standard edition is not free like the Express editions and even now after the release of Visual Studio 2005 and the Express editions you’ll likely have to pay ~$100 USD for a legitimate copy of it. Just for note though, any applications built with the 2003 family of languages/IDE’s target the 1.1 framework and cannot take advantage of many of the enhancements in the ...Show All
Paic Citron accessing a project level variable accessible via any form or module..
I want to retain the name of a file loaded in a Windows Main Form and then be able to access that same file project name within a user control which is part of the same project as the Main Form. As it is now, I am instantiating a file containing global vars and then instantiating the same file all over again.... with uninitialized vars. Can I instantiate a class above the scope of both Mainform and the User Control which is instantiated before MainForm is loaded, available to both MainForm and User Control, that will persist throughout the runtime instance of the executable If I create a class to be used for global vars, where do I instantiated it Is there a place at the application level I can do this Thank you. -Greg Right now I decl ...Show All
George Wright Optional Parameter
sub Test( Optional ByVal myParameters(,) As String = Nothing) How do I check that the myParameters has had an array passed to it I'm looking for something like the following if myParameters=nothing Instead of the optional parameter (old crappy vb 6 way), overload the Sub and then you'll know, ie: Sub Test(Parameters(,) as string) 'Do Something End Sub Sub Test() 'Do Something End Sub Do it like this: Private Sub Test(Optional ByVal myParameters(,) As String = Nothing) If myParameters IsNot Nothing Then Debug.Print("Array size = {0} x {1}", myParameters.GetLength(0), myParameters.GetLength(1)) End If End Sub ...Show All
builtsoftware Image On Mouseover (Repost because nobody replied to the origional)
How do I get an imgae to display & follow the mouse by having my mouse over another image Ok, heres the deal: I need to get an image to display (like a tooltip) when I put my cursor over another image. Thats about it. If you can help me with this that would be nice :) HI your code really helped me in my drag drop code the images from thumb view to Viewer code -GRK You can also set up a custom cursor that only displays when over a particular control: ' Cursor from image example. ' Example uses a button, picturebox ' and openfiledialog Public Class Form1 Dim pubcur As Cursor Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventAr ...Show All
Ilan D cookie-cut a small rectangle out of a larger bitmap to a smaller one
Visual Basic 2005 (newby) - I have an image placed into a bitmap from which I need to take a smaller rectangular area and copy that unmodified to another bitmap. The destination bitmap is of the size of the rectangular cut. Thus, one would think that is easy, but, I am not experienced enough to know the declarations and methods that make it easy. You create a graphics object to draw on your empty bitmap: dim g as graphics = graphics.formImage(emptyBitmap) Then use one of the overloads of g.DrawImage that accepts the source bitmap you are copying from, and a rectangular area in that bitmap as an argument. See Bob Powell's GDI faq which has diagrams for the overloads And the msdn on Graphics.DrawImage ...Show All
ikeriba Line return in resx file
anyone know how to add a newline character to a string in a resx file. I read in a book that the resx file will accept \n as a newline indicator but it doesn't seem to work... \n is the scape sequence for a newline in c ....concantenate using VBCrLf or Environment.NewLine thanks ...Show All
Aleniko29139 Packet Sending?
Hi, I really want to learn how to make a program in visual basic that can send and receive packets to transfer data from one user to another. I don't know where to begin and it would be really helpful if i could see some sort of example of how it is done. Also if you can, i would prefer an example with a remote connection between two computers. Thankyou. You need the Socket class. Start with the example shown on that page, then google for examples of the TcpListener class. I just ran the example on that pg and at this part For Each address In hostEntry.AddressList Dim endPoint As New IPEndPoint(address, port) Dim tempSocket As New Socket(endPoint.AddressFamily, ...Show All
JB1863 Messagebox
Hi, I know messagebox, msgbox functions are able to post messages, but they need user to send a result to messagebox. Now what i want is I need a messagebox to post information when a function or procedure is running on the background, and when this function or procedure finishs, this information box will disappear. For example, when my application is doing some save tasks, a information box is posted with text "saving now....", after saving is finished, information box is disappeared. Anybody knows how to it Thank you very much! Sorry, I think your code is complicated. What I have done, dim f as new frmmessage 'here frmmessage is predesigned form I need f.label.text="saving now..." f. ...Show All
Bandile circular references between usercontrols and 'main' form in vb6->.net upgrade
in upgrading from vb6 to vs2005 user controls are introducing a circular reference problem in the following way. In the vb6 solution, user controls could access methods in the 'Main Form' upon which the user controls are used. In VS2005, I create a separate Windows Control Library Project for each User Control. For composite controls I 'reference' any other controls as needed. However, there are controls which call methods/functions on the 'Main form' within a Windows Application project. That project includes the references to all the user controls ( which show up in the ToolBox.) Circular references have been introduced which didn't exist before. The Mainform references the User Control. The User Control calls MainForm methods. ...Show All
Shady-Potter Missing Assembly Microsoft.SqlServer.ConnectionInfo while using ClickOnce deployment
hi, I am using VB.net and I have a problem while publishing my application using the ClickOnce deployment on a shared folder on the seever. On my PC, the application works fine where the VS2005 is installed. But when I tried to install and run the application on an end user machine , it gives me the following warning: "Unable to install or run the application. The application requires that assembly Microsoft.SqlServer.ConnectionInfo Version 9.0.242.0 be installed in the Glocal Assembly Cache (GAC) first." how can I solve this problem Thanks in advance Regards, I'm having the same problem. The client has the latestlatet .NET 2.0 framework and the latest MDAC installed and I ge ...Show All
Thymen How do i display error message in one message box
hi, i have question about display all the error message in one message box. The application that i am creating will allow user to enter for example first name, last name, email address, their relationship status. The fields for different textbox could contain different errors, for example name textbox could not contain symbols and email address must contain @ sign. if errors occur then message box should pop up after submit button click. now the question is how do i put all the error message in one message box after submit button is clicked. thank you Sry, i think you misunderstood the question. I already did the parts on how to check the error enrty. the problem is that now i want to display all the error ...Show All
Rita Ch Closing out a excel workbook in browser
using frontpage 2003 & excel 2003 with internet explorer. I can go to the Excel program thru the browser but can not exit excel while in the browser. I have try all types of vb code (just not the right code) for the close out commandbutton in my excel program. Can anyone point me in the right direction and/or the proper closeout code to use in my excel program Thanks Wayne These forums are for VB.NET questions. The VB within Excel is Visual Basic for Application. VBA is a very different product from VB.NET and it sounds as though you are writing VBA code as you are talking about you excel program. Are you using VB.Net if so please provide a code example of what youve tried using so far. ...Show All
yoshimitu Does VB2005 work on .NET Framework 3.0?
Hello If I just have .NET Framework 3.0 (I don't have 2.0), do my projects work on the computer welll Thanks Can you tell me shorty what the main differences between .NET 2.0 and .NET 3.0 Is .NET 3.0 faster Thanks It's last question. The .NET 3.0 installer includes .NET 2.0 installer (that's why it has ~ 50 megabytes). If you have a very small version of it (something like 2 megabytes or less) it will download the rest from the Microsoft download site. "Do I have to give him .NET 2.0 or .NET 3.0 which one is recommended " You don't need .NET 3.0 if you did not use any of its features but it's nothing wrong if you install it. ...Show All
Jakein2006 Enter to go to the next TextBox????
Public Sub NextLine( ByVal ad As TextBox, ByVal da As Keys) If da.KeyCode = Keys.Enter Then ad.Focus() End If End Sub I want to enter text in a textbox and when i hit enter i need it to go to the next textbox....Instead of writing a KeyDown event for all my textboxes i tried to write this function but it doesnt seem to work saying that option strict on dissallows late binding.....Any help I thought i would just be able to pass the value of the textbox that should recieve focus after ENTER is pressed....any help would be great..... System.Data.SqlClient.SqlException: SQL Server does not exist or access denied. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTran ...Show All
iamme Using DataObjects in an OOP environment
This question is a little involved, but I would really appreciate some guidance. I have been studying (in my job) how to implement object orientated programming and using data objects to communicate with a data source. I am putting this knowledge to use in my current project - a simple help desk program. I have a form, which the takes input from the user to display, modify and create records in 4 tables of a SQL database. I believe that one or more of these statements displays incorrect practice, and would explain the area where I am going wrong. My form creates my class instances, which interact with my DataSet, which fill and update the DataAdapters, which send and retrieve data to and from ...Show All
