Click here to Skip to main content
15,889,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sub Main? Pin
John Kuhn26-Feb-04 17:52
John Kuhn26-Feb-04 17:52 
GeneralRe: Sub Main? Pin
Dave Kreskowiak27-Feb-04 3:22
mveDave Kreskowiak27-Feb-04 3:22 
AnswerRe: Sub Main? Pin
gpa20001-Mar-04 20:37
gpa20001-Mar-04 20:37 
GeneralMultiple Monitors Pin
Robert Gronenthal26-Feb-04 3:18
Robert Gronenthal26-Feb-04 3:18 
GeneralRe: Multiple Monitors Pin
Charlie Williams26-Feb-04 6:30
Charlie Williams26-Feb-04 6:30 
GeneralRe: Multiple Monitors Pin
apferreira26-Feb-04 8:02
apferreira26-Feb-04 8:02 
GeneralXP look needed in vb applications Pin
FASTian26-Feb-04 3:06
FASTian26-Feb-04 3:06 
GeneralRe: XP look needed in vb applications Pin
Niels Penneman26-Feb-04 21:42
Niels Penneman26-Feb-04 21:42 
VB.NET: System.Windows.Forms.Application.EnableVisualStyles()

VB6:

Add the API function InitCommonControls, defined as: void InitCommonControls(VOID);

In VB: Private Declare Sub InitCommonControls Lib "comctl32.dll" ()

Make sure you make a call to this in Form_Initialize:

Private Sub Form_Initialize()
InitCommonControls
End Sub

Then add a manifest file called <appexename>.manifest, so if your app is App1.exe then this file would be App1.exe.manifest. The file must contain the following lines:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Your App name goes here"
type="win32"
/>
<description>Your App name goes here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>


greetz Wink | ;-)
*Niels Penneman*
<hr><a href="http://users.pandora.be/un1c0rn/software/">Software/Dev Site</a><br><a href="http://users.pandora.be/un1c0rn/">Personal Site</a><hr>
QuestionPassword viewer??? Pin
erikkloeze25-Feb-04 21:37
erikkloeze25-Feb-04 21:37 
AnswerRe: Password viewer??? Pin
Dave Kreskowiak26-Feb-04 2:09
mveDave Kreskowiak26-Feb-04 2:09 
GeneralDeclaring Custom Variables/Properties Pin
Codemonkey8525-Feb-04 13:31
Codemonkey8525-Feb-04 13:31 
GeneralRe: Declaring Custom Variables/Properties Pin
John Kuhn25-Feb-04 14:07
John Kuhn25-Feb-04 14:07 
GeneralRe: Declaring Custom Variables/Properties Pin
Codemonkey8510-Mar-04 12:14
Codemonkey8510-Mar-04 12:14 
GeneralRe: Declaring Custom Variables/Properties Pin
John Kuhn10-Mar-04 13:44
John Kuhn10-Mar-04 13:44 
GeneralRe: Declaring Custom Variables/Properties Pin
Codemonkey8511-Mar-04 4:58
Codemonkey8511-Mar-04 4:58 
GeneralRe: Declaring Custom Variables/Properties Pin
John Kuhn12-Mar-04 2:51
John Kuhn12-Mar-04 2:51 
GeneralVB Script Password InputBox Pin
morde1ac25-Feb-04 9:47
morde1ac25-Feb-04 9:47 
GeneralRe: VB Script Password InputBox Pin
Dave Kreskowiak25-Feb-04 13:00
mveDave Kreskowiak25-Feb-04 13:00 
GeneralDriving a motor Pin
Looping_Eagle25-Feb-04 6:56
Looping_Eagle25-Feb-04 6:56 
GeneralRe: Driving a motor Pin
Dave Kreskowiak25-Feb-04 8:51
mveDave Kreskowiak25-Feb-04 8:51 
GeneralCRC32 Pin
johnjsm25-Feb-04 5:24
johnjsm25-Feb-04 5:24 
GeneralRe: CRC32 Pin
Dave Kreskowiak25-Feb-04 7:13
mveDave Kreskowiak25-Feb-04 7:13 
GeneralRe: CRC32 Pin
johnjsm25-Feb-04 22:17
johnjsm25-Feb-04 22:17 
GeneralRe: CRC32 Pin
Dave Kreskowiak26-Feb-04 1:24
mveDave Kreskowiak26-Feb-04 1:24 
GeneralRe: CRC32 Pin
johnjsm26-Feb-04 5:24
johnjsm26-Feb-04 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.