|
|
Yes, with or without parentheses works fine for VB.NET.
cheers,
steve
|
|
|
|
|
Yes, without the parems is fine.. That's just the style I became used to using.
Paul Watson wrote:
At the end of the day it is what you produce that counts, not how many doctorates you have on the wall.
|
|
|
|
|
|
I have this VB app. When I use my exit-button to close it down everything is fine, but when I use the X-button in the top right corner, the window disappears, but leaves a process running.
How do I fix this?
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Sounds to me like you might have one of the following:
1 - A form that is hidden but not unloaded (there is a difference).
2 - An object variable that has not been set = to Nothing when you are done with it.
Paul Watson wrote:
At the end of the day it is what you produce that counts, not how many doctorates you have on the wall.
|
|
|
|
|
Ah, there is a form that is hidden (frmComSelect in the code below). But how do I close it? I have a hard time finding anything useful in MSDN.
The app is designed like this:
First a window is displayed prompting the user to make a selection.
Thereafter, the main window is displayed.
Private Sub Command1_Click()
If (optCom1(0).Value = True) Then
PortNum = 1
ElseIf (optCom1(1).Value = True) Then
PortNum = 2
ElseIf (optCom1(2).Value = True) Then
PortNum = 3
ElseIf (optCom1(3).Value = True) Then
PortNum = 4
End If
If (Adapter(0).Value = True) Then
PortType = 1
ElseIf (Adapter(1).Value = True) Then
PortType = 5
End If
frmComSelect.Hide
frmMain.Show
Main
End Sub
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
You would use frmComSelect.Unload
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
The compiler does not like that. It says 'Method or data member not found'
Do I have the wrong type of window?
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Unload frmComSelect works fine. Thanks for the pointer.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Ok here is the setup. Myself and a few of my friends are new to .net but we all know c++ quite well and one person knows vb. I have created a class in c++ that I would like to inherit into a vb program so that vb can create and call functions in the class. I am under the impression that this can be done with cross language inheritance, but I can't find any information about it and I have no idea how to do it. Any information would be appreciated.
Thanks,
krauftig
|
|
|
|
|
You can do that easily if you use the C++ managed extensions provided by .NET. Visit the resources here at CodeProject[^] for an introduction to Managed C++. For the most part, after you have a manged assembly it is only a matter of making a reference to it and deriving from it, regardless of the language you want to use.
steve
|
|
|
|
|
Hi,
I would like to implement a class that is a singleton (a class in which only one instance is allowed to exist as any given time) in visual basic 6. Does anyone know how to do this? Thanks in advance for your help.
|
|
|
|
|
I'm making a program which connects to the Internet for a miltiuser environment.I need to implement a function which connects, via Dial-up, to the Internet.
I found a code in C++ but I don't know how it can help me.
any help is much appreciated.
*** Praise none, but the Creator ***
T-break SUX
|
|
|
|
|
Hello,
I have a VB dll which is invoked from VC client. VB dll is a COM component and it displays a form to input data.
The problem is that most of the times, whenever the user clicks the mouse outside the VB dialog, the from goes nehind the vc frame.
the VB form is loaded as modal still it happens.
Any suggestions.
Regards,
Deepti.
|
|
|
|
|
Hi
(i've been askin my questions in a backwards manner) anyways
I have 2 arrays of data, One array for x-axis and one for y-axis.
How can I make a 2D Bar graph ?
Ehsan Behboudi
|
|
|
|
|
If you want it for the web, see your repeat post below and Chris's suggestion.
If it's for a Win32 client, consider using GDI+ and painting onto the form directly.
Cheers,
Simon
"From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
|
|
|
|
|
You mean in order to display it in a html page, i should save it as jpg.
If we go one step back, to making the graph it self.
How can I do that>?
Ehsan Behboudi
|
|
|
|
|
2D bar graphs on an HTML page are easy...
1 - Create a table that has as columns rows as you need data columns.
2 - Create a gfew gif images that are 1 pixel high and as wide as you need the data column to be.
3 - Figure the biggest size you need to hold all your data and create your table to hold that size.
4 - Figure each of the other data points as a percentage of the highest value.
5 - Place each of the images into the table column, and set it's height equal to the percentage of that data point to the largest number.
|
|
|
|
|
I would like to clear few things for myself:
by table,, you mean an array?
gif image is an object that i can choose,, is that correst?
Ehsan Behboudi
|
|
|
|
|
Let's back up a bit here...
What type of application are you writing?
Web app or Forms based app?
VB6 or VB.NET?
|
|
|
|
|
The application is VB
it is a forms based.
and its VB6
I basically have two arrays , one for X-axis and one for y-axis.
and all I would like to make a bar graph.
Ehsan Behboudi
|
|
|
|
|
Here is a great link to a sample that shows you ho to use the MSChart control that comes with VB.
Sample Clickety[^]
Paul Watson wrote:
At the end of the day it is what you produce that counts, not how many doctorates you have on the wall.
|
|
|
|
|
Hi,
My VB application makes a graph, I need to save the graph as a HTML file.
How can I do that?????
Thanks
Ehsan Behboudi
|
|
|
|
|
Well, if you want to save it as a HTML file, you probably want to use SVG. If you want to display it in a HTML page, save it as a jpg.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|