• 0

Visual Styles in Visual Basic


Question

17 answers to this question

Recommended Posts

  • 0

MSDN? I can't even find it on there....

I was VERY supperised MS didn't reelace Vistual Styles that worked with all VB apps, even if many peeps use it as a prototyping language.

To write a quick utility is VB is usually much than other languages, so it would be nice if it blended in with everything else...

  • 0

From MSDN:

Add a file called YourApp.exe.manifest to the same folder as your exe that has the following XML format:

<pre>

<?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="CompanyName.ProductName.YourApp" 

	type="win32"/>

<description>Your application description 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>

</pre>

This will work with any language, including VB and .NET. You can even add this to existing apps.

You can also include this manifest in your exe by adding the following line to your resource file (*.rc):

1 24 "YourApp.exe.manifest"

In .NET, use rc.exe to compile the resource and then use the /win32res compiler switch to include the *.res file in the final exe.

I don't know how to do this in VB.

  • 0

I Posted This in the forum a long time ago..let me go find the post!

OK GOT IT!! i can't post the link via the board, it gets messed up here's the URL copy and paste it in to your address bar of your browser.

"http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbvcstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp"

  • 0

I'm affraid all this information only applies to VB.Net and not VB6 which is what i wanted help on!

Oh well. it appears that VB6 can't use Visual Stlyes, so what i ask now is.

Is VisualBasic.net as easy to use as VB6, i'm intrested in building Database applications stored on a local computer?

Thanks for all the links, they may come in handy when/if i move up onto VB.net

Thanks for the time people;

Daniel Balshaw

danbalsh@ntlworld.com

  • 0

VB6 can use visual styles if you initialize the common controls in your app, I think it has to be in a Sub Main, and if you include a manifest file. The problem is that some controls seem to have problems redrawing, one example being that the Frame control flickers real bad when you hover over it.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Using NASA’s IXPE telescope and a fleet of observatories, scientists discovered that the system’s intense X-rays don’t come from its glowing accretion disk as previously believed, but from a chaotic, high-speed wind of particles hurled out by the pulsar itself. The findings challenge old models and reveal a single, powerful mechanism behind the pulsar’s radiation. It’s a dramatic twist in our understanding of how dead stars can still light up the universe. A global team of astronomers has made a significant discovery about how the energetic remains of exploded stars interact with the space around them. Using NASA’s IXPE (Imaging X-ray Polarimetry Explorer) along with several other observatories, researchers gathered new insights into this dynamic cosmic behavior. The scientists, working across the United States, Italy, and Spain, focused their investigation on a puzzling stellar system known as PSR J1023+0038, or simply J1023. This system features a rapidly spinning neutron star that draws material from a smaller companion star. As a result, an accretion disk of matter has formed around the neutron star. The neutron star also functions as a pulsar, emitting intense beams of radiation from its magnetic poles as it spins, creating a pattern that resembles a lighthouse sweeping through space. What makes J1023 especially important is that it switches between two distinct phases. https://scitechdaily.com/nasa-just-discovered-where-these-mysterious-space-x-rays-really-come-from/    
    • Artifacts from the Iron Age have revealed an intense historical magnetic anomaly in the Middle East. Could using a similar approach elsewhere help us unravel the mysteries of Earth's magnetic field? Ben-Yosef, an archaeologist at Tel Aviv University, had been working in southern Jordan with Ron Shaar, who was analyzing archaeological materials around the Levant. Shaar, a geologist at The Hebrew University of Jerusalem, was building a record of the area's magnetic field. The hunk of copper slag — a waste byproduct of forging metals — they found recorded an intense spike in Earth's magnetic field around 3,000 years ago. Shaar worked hard to give them more evidence. After they had analyzed and described samples from around the region for more than a decade, the anomaly was accepted by the research community and named the Levantine Iron Age Anomaly (LIAA). From about 1100 to 550 B.C., the magnetic field emanating from the Middle East fluctuated in intense surges. https://www.livescience.com/archaeology/earths-magnetic-field-is-weakening-magnetic-crystals-from-lost-civilizations-could-hold-the-key-to-understanding-why
    • Designed by former F1 engineers. Pure danger. A company made up of former F1 racing engineers has unveiled an outrageous e-scooter that can reach a top speed of north of 100 miles per hour — and covers a whopping 150 miles on a single charge. The bizarre contraption, dubbed The Turbo, was developed by UK-based e-scooter company Bo, whose existing lineup targets the more premium end of the last-mile — or last 150 miles, in this case — mobility market. The Turbo's specs are borderline hard to believe. The metal-clad and girthy two-wheeler features a 24,000-watt dual-motor engine and an enormous 1,800-watt-hour battery. Aerodynamic air intakes funnel wind to keep everything cool. https://futurism.com/the-byte/100-mph-escooter-hazard    
    • Apple was waiting for Samsung to refine the technology. Now, they will ask Samsung to make their screen. Amazing...
  • Recent Achievements

    • Rookie
      Snake Doc went up a rank
      Rookie
    • First Post
      nobody9 earned a badge
      First Post
    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      Michael Scrip
      203
    3. 3
      ATLien_0
      197
    4. 4
      Xenon
      136
    5. 5
      +FloatingFatMan
      116
  • Tell a friend

    Love Neowin? Tell a friend!