|
I was wondering if someone could tell me how to be able to use the default system icons? I set up a Toolbar and an ImageList, and wanted to be able to use the default Windows icons for new file, save, save all, etc. I know the default icons are stored in shell32.dll, but I'm not sure how to proceed. Any help would be appreciated!
-Sean
sean@codemonk.org
|
|
|
|
|
I have a program called IconView which can extract icons from shell32.dll . I can't remember where i downloaded it from. If you want it, I can e-mail it to you.
Notorious SMC
Vb is as VB does
|
|
|
|
|
I found the program with a search on Google. Thanks very much for the response.
-Sean
|
|
|
|
|
hi
I would like to learn about writing windows services. Any site and sample code available?
venkat
|
|
|
|
|
Hi Everybody,
someone can help me to open, view and save tiff multipage file in VB .NET.
Thanks
|
|
|
|
|
Can anyone tell me where to begin to move the info over.
|
|
|
|
|
Hi all
This is my first post in this forum
Just a small question. Say test = Boolean.
In C# i can do if (test) to do an if.
Can I do If test Then this in VB.NET? Does it have same function? I cant test this as it is part of code generation, but it does compile fine
A simple yes/no appreciated
Cheers
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET low popularity, please visit
|
|
|
|
|
|
Sure you can do it...
Private Sub cmdTrue_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdTrue.Click
BoolTest(True)
End Sub
Private Sub cmdFalse_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdFalse.Click
BoolTest(False)
End Sub
Private Sub BoolTest(ByVal testValue As Boolean)
If (testValue) Then
MessageBox.Show("True!")
Else
MessageBox.Show("False!")
End If
End Sub
Does what I expect it to do...
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.
|
|
|
|
|
|
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
|
|
|
|