Topics
-
-
- *Gurus*
- 3 replies
- 3.1k views
Hi can anybody help please? I am using Notepad to develop vb.net applications, due to the fact that my employer is all too keen to work towards .NET but wont get their finger out to get Visual Studio.NET :-( Anyway thats another story, my question is: How do I handle the form closed event. I understand how to handle the button click events etc, but not the form closed event. Any advice would be much appreciated. Cheers, Gazzo.
Last reply by Gazzo, -
-
How to change font size in lblbox from within?
by Guest shelly21-
- *Gurus*
- 4 replies
- 3.3k views
I'm having a slight issue trying to figure out how to change the font size within a lbl.box within the program. The box will display some text depending on which button is pressed. And certain button produces a longer text that would not fit (well) in the label box. So when I try to use lblbox.text.font.size = 8, It doesn't work as that property is ReadOnly. I could change the font colour easily, but not font size.... Is there another way to do this? :confused:
Last reply by divil, -
-
- 1 reply
- 1.6k views
Okay, I'm sure this will be a simple problem for most, but my mind isn't able to clearly see through it right now. I'm making a rather simple program, which will print items in a list format only if they are checked on the screen. How can I make them retain their list format, but yet not have the vbcrlf's affect them? When a checkbox is checked, it creates a string with the appropriate text. Would it be possible to add the necessary code into the string or something of a similar fashion? A sidenote...I liked printing in VB6 MUCH better. Seemed simpler. Thank you.
Last reply by Dodgeram01, -
VB .NET takes too long to compile
by Guest Heronjr-
- *Gurus*
- 1 reply
- 2k views
Hi, I am a VB6 developer studying VB.NET and I've got a problem in my home Windows XP, and this problem does not happen in my office Windows XP. The Visual Studio .NET Enterprise Architect is taking too long to compile even the simplest projects (1 form 1 button). It take 3 minutes to compile and execute the application, while at my office machine it does that in seconds. Both machines are Pentium III with 256 RAM (Office) and 512 RAM (Home). Both XP systems are updated as their .NET Framework (SP1). After compiled, the .EXE applications runs instantly. The problem is compilation (F5). At home, I also have installed VB6, but I've read that both can live together. …
Last reply by divil, -
-
-
- *Gurus*
- 3 replies
- 4.5k views
hello all, i've been using the System.Diagnostics.Process.Start() as per divil's suggestion a few days ago - this works great. however i now have a situation where i need to open files as read only. can anyone shed any light on the matter? do i need to use the System.Diagnostics.ProcessStartInfo() arguments? thanks, drew.
Last reply by paynea, -
-
Question on Migrating VB6 DLL to .NET
by Guest byrne1-
- *Gurus*
- 3 replies
- 2.2k views
Here's my situation: I support and do development for a vendor supplied software package that utilizes VB6 forms and code, all of which can be customized. I have several DLL files written in VB6 that interact with the vendor's VB6 forms, etc. One of my DLLs has to be completely overhauled and I need to make the decision of whether to do it in VB6 or to do it in .NET. Can someone offer up some good advice on whether I should go ahead with the rewrite in .NET or should keep it in VB6? I should mention that the vendor's code will remain in VB6 for the forseable future. Althought I am perusing the net and reviewing articles and opinions on this matter, this forum has…
Last reply by Thinker, -
-
Using the WInsock Control in VB.NET
by Guest jcvilla-
- *Gurus*
- 2 replies
- 6.5k views
I need some help in VB.NET regarding the WInsock Control. What happens is that I am making a very advanced messenger in VB6/C++ but then I decided to go to VB.NET but I have a problem with the winsock controll. I can make a client and a server and establish a connection but when I transmit data it executes the Winsock1_DataArrival event in the server but when i put "Winsock1.GetData (data)" it does nothing, it simply stops running the code as if nothing happened. I tryed alot of things, I tryed changing the Variable "Data" type string to type object and when I output it to a messagebox it saya "System.Byte[]". I would really apreciate some reply so that I can continue thi…
-
-
Visual Basic .Net Documentation Needed
by Guest Kaveh_1972-
- Moderators
- *Gurus*
- 4 replies
- 1.6k views
I need good, downloadable e-book or documentation for Visual Basic .Net programming. Where can I find one?
Last reply by divil, -
-
Date and Time Question
by Guest scorpion53061- 4 replies
- 1.5k views
Is there a way I can code to make the time and date be read from a server on a network instead of the machine it is running on.
-
how to launch an application with a command button?
by Guest jun-
- *Gurus*
- 3 replies
- 1.7k views
In VB 6, I can use ShellExecute, but what can I use in VB.net? Any body know?
-
-
Starting application via timer
by Guest nickimc- 0 replies
- 1.7k views
Hi Everyone, Here's a question for all you .net sharks I've created a vb .net application that retrieves info from an Exchange server about the users different folders. If certain rules are met I'm doing some manipulation on the folders. When I start the application myself it actually WORKS :) Now I want to run this application once every 5 min. but when doing so by using a timer (timers.timer) to trig it, I get the error msg. "Cannot create ActiveX component." Number 429 when trying to create a MAPI folder. The strange thing is that it is the exact same code I run, just triggered by a timer and not me??? I don't know much about timers or their rights bu…
-
how to "as any" for RegQueryValueEx WinAPI call?
by Guest cgchris99-
- *Gurus*
- 1 reply
- 2.7k views
I am trying to use RegQueryValueEx API call. I have the example that works in VB6. My example has it defined as follows... Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long Notice lpData as Any, VB.Net does not allow this. So, how do I make this work? Thanks for any help
Last reply by divil, -
-
Picturebox Scale method
by Guest mcerk-
- *Gurus*
- 2 replies
- 5.9k views
Hi in VB6 there was a picturebox scale method. I have a picturebox loaded wint a map of my country. In VB6 I changed picturebox's coordinate system with scale method. I need that, becouse this is a geotechnical coordiate system and every data I have to draw on this map is written in this system. But help says that there is no eqvivalent to this method. That the only coordinate system in picturebox is default one (with pixels). I could write a procedure to convert pixels to this system, but what if I resize picturebox? I used this coordinate system: Picture1.Scale (375050, 194050)-(624250, 29850) Please help... Thank you. Matej
-
-
-
- *Gurus*
- 4 replies
- 1.9k views
How can you receive the client Left coordinate and Top Coordinate from a form???
Last reply by NicoVB, -
-
Starting out/Avoiding pitfalls
by Guest AnakinVB-
- Moderators
- 4 replies
- 1.7k views
I am an intermediate VB 6.0 programmer. I have heard plenty of nightmarish tales from people who have tried going to VB.NET. Things like "the standard edition isn't sufficient and doesn't work" "operating system wasn't sufficient" "impossible to figure out" So I do not get caught up by the common obstacles, can anyone recommend what I need to do to start using VB.NET? I have Windows XP home edition. a) Do I need to own a server? b) Is there a fairly inexpensive way to get VB.NET Studio? c) Will it conflict with Microsoft InterDev? d) Can someone just tell me the best way to get started with VB.NET (nightmare-free)? Thank you Anakin
Last reply by Robby, -
-
DataGrid and Booleans --> checkboxes
by Guest Andrejko- 3 replies
- 1.9k views
Does anyone know how to instruct DataGrid to display checkboxes for boolean columns? I assume this would require typed DataSets.
-
Problem viewing ASP.NET Page i've done
by Guest Cyber_Boy- 1 reply
- 1.8k views
I've just been trying out ASP.NET and have done my first small page. It justs contains of two labels and two textboxes. Now when i view the ASP thingy, all i see is the text of the two labels. The textboxes are not visible in the browser Anybody knows the reason why this happens? It looks like the only controls that i can use and i can still see when it is viewed are just labels!
Last reply by Gazzo, -
How to change a file's modify date
by Guest andylo-
- *Gurus*
- 1 reply
- 1.9k views
Need a bit of help here :) Does anybody know any functions in VB can change a file's modify date? Thanks Andy
Last reply by divil, -
-
Referencing a Form by name
by Guest Andrejko-
- *Gurus*
- 4 replies
- 1.8k views
Does anyone know of a way to reference a class (say, a form class) by a String representation of its name? IE, System.Windows.Forms.getFormByName("Form1").someMember (pseudocode) would be equivalent to just saying Form1.someMember Note: I am not trying to reference an instance of a class, but a Shared (static) member of that class.
-
-
passing values between forms
by Guest jhoga-
- *Gurus*
- 10 replies
- 3.1k views
I'm having trouble setting the value of fields in a user form based on a selection made in a second form. The first form brings up an SQLServer base datagrid. In form2 I have set the grid click event as follows: Dim myRow As Integer Dim myCol As Integer Dim myVerification As String myRow = myGD.CurrentRowIndex strSelLastName = myGD.Item(myRow, 1) strSelFirstname = myGD.Item(myRow, 2) strSelMI = myGD.Item(myRow, 3) strSelAddress = myGD.Item(myRow, 4) strSelCity = myGD.Item(myRow, 5) strSelZip = myGD.Item(myRow, 6) Now i want to set form1.textbox1.text = strSelLastNAME I hav…
Last reply by divil, -
-
Who's Online 0 Members, 0 Anonymous, 44 Guests (See full list)
- There are no registered users currently online