Search:
Type: Posts; User: jo0ls
Search:
Search took 0.15 seconds.
-
Community Technology Preview.
-
In the first post in the thread,
is wrong, it's using vb6 types, and the sample doesn't allow you to specify the drive:
Imports System.Runtime.InteropServices
Imports System.Text
Public...
-
As mentioned rnd is old...
Note: when you create a New Random it uses the system clock to generate the random numbers. This means that if you create two Random objects in the same tick then they...
-
You probably need to use AdjustTokenPrivileges as shown here (c++)
http://support.microsoft.com/?scid=kb;en-us;131065
and by |2eM!x (vb6) here:
http://www.vbforums.com/showthread.php?t=321553...
-
System.Windows.Forms.SystemInformation.CaptionHeight is the height of a standard title bar.
But, it sounds like you are trying to get screen co-ordinates for something on the form, so could you...
-
Well, first he wrote the functions (which use API calls), then he put them into scrLock.dll so other users can use his functions from different languages.
So he didn't need to "look inside" the dll...
-
Right, it is now much improved. It is full of hearty 2005 goodness with generic methods, multicast delegates and more uintegers than are necessary. It seems to work ok with my cards (x-fi, on-board...
-
http://blogs.msdn.com/brada/archive/2006/01/16/513018.aspx
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2123&SiteID=1
So, looks like windows installer 3.x is a key component. And it...
-
What a wide post.
Just prefix all the values with &H
blah blah blah ... , New Byte () {&H03, &H04, &H01 ............
The &H indicates that the digits following it are part of a hex value.
-
Here's something I was doing today, stripped down a bit. I read this on the mixer api and started messing about.
First it finds all the Mixers (1 per soundcard) on the computer. Then it asks each...
-
doc.Close(Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges)
You'll see doc.Close(False) sometimes. It works because the WdSaveOptions enum is
wdDoNotSaveChanges = 0
wdSaveChanges...
-
Assuming:
you have added a reference to System.Management
you have the line
Imports System.Management
at the top of the code file, then this function will get the local machines tag:
Private...
-
Not for windows? What is it for?
The pcmag link just shows where I found the information. The msdn link is further information about the function. The code same is an implementation of the...
-
You could just set your power settings to always on.
Here's an api way, a bit of web searching found this:
http://www.pcmag.com/article2/0,1895,1158495,00.asp
msdn SetThreadExecutionState
...
-
You have vb express in your profile, so assuming vb.net 2005...
p/invoke GetAdaptersInfo ... difficult
use the System.Net.NetworkInformation namespace ... easy (here microsoft have wrapped...
-
The rectangle appears when there isn't a representation of that character in the font used, so it appears for lots of chars.
http://en.wikipedia.org/wiki/Newline
There are two char codes used:...
-
You are reading the values from a file into an array of variables.
The byte refers to the number of bits that are used to store the value. When you want to write this value out, you are not...
-
or...
Dim b As Byte = 100
Dim binaryString As String = Convert.ToString(b, 2).PadLeft(8, "0"c)
-
Hmm, here's an attempt. It's very difficult without being able to test it.
<DllImport("gm7s32.dll")> _
Private Shared Function GMW_GetLicenseInfo(ByRef licenseInfo As GMW_LicInfo) As...
-
If it is a structure, then pass an instance ByRef. You may need to initialise members that are arrays, strings or further structures. It is very likely it won't work without some custom marshalling...
-
You're definately not working with the existing paint events. At the moment you'll probably find the gradient is erased when you drag your form off screen or drag another form over the top of your...
-
1) The long data type has changed between vb6 and .net, it was 4 bytes, it is now 8 bytes. There is the IntPtr type to use for pointers, the Integer type or UInteger is 4 bytes...
...
-
XP can burn CDs natively via IMAPI (but not DVDs)
It's easiest to use windows XP burning wizard:
http://www.vbforums.com/showthread.php?t=409096
Other ways involve using the IMAPI COM service...
-
You're identifying the process via its window caption. You can get the ID from the process name instead (the name is used in taskmanager):
' Open Notepad process
Dim myProcesses As...
-
It is pretty horrendously complicated. I've played with ReadProcessMemory before, but not WriteProcessMemory. I just had another go, partly using:
http://www.codeproject.com/threads/MDumpAll.asp ...
-
The origin is (0,0)...
bob knows all:
http://www.bobpowell.net/faqmain.htm
http://www.bobpowell.net/manipulate_graphics.htm
http://www.bobpowell.net/mappingmodes.htm
-
Have a class: myButton
Inherit from control, have properties for the image, bounding Rectangle, Location. When you resize, reset the image and BoundingRectangle.
Back on the form have a List...
-
AdventureWorks?
http://msdn2.microsoft.com/en-us/library/ms143739.aspx
page to download samples
-
something like...
Public Class Form1
Private WithEvents btnOne As Button
Private WithEvents worker As System.ComponentModel.BackgroundWorker
Private progressIndicator As...
-
I agree, like the codeproject and other examples out there, just roll-your-own. Progress bars are pretty easy to draw, and you can learn about creating custom controls, adding properties, double...
-
What do you want the filter to do? Using lots of *s is causing it to mess up.
At them moment it searches for any file ending R.txt, which can also be done with:
OpenFD.Filter = "Text Files...
-
You can't use just one tense of win, the if makes it more complicated. So the question is a bit daft:
This doesn't work:
We won the match if we tried harder.
See:...
-
Hmm. ComputerJy was doing a 3x3x3 matrix
ZaNi - you can do it with one array per matrix:
' 0 1 2
' 3 4 5
' 6 7 8
Dim matrix1(,) As Integer = {{0, 1, 2}, {3,...
-
Hmm, complicated...
I got it working but couldn't add any controls. I then found that they need to be added before you register the appbar. You also need to make sure it isn't registering as an...
-
There's a terminal char 0 that is making msgbox throw a wobbly, try:
MsgBox(BytesToString(_Reader.ReadBytes(30)).TrimEnd(Chr(0)))
Normally, when stepping through in debug mode, if you...
-
I think you could use an appbar.
Though it looks complicated. There's a brief c# example here.
The appbar is a standard toolbar managed by windows, so windows will handle the docking, and ensure...
-
Another way is to set the Clip property of the graphics that you are drawing with so that it exludes the ellipse. Then fill the area you want with color.
Sub New()
...
-
It needs a custom control...
(only have vb2005 at the moment)...
Public Class Form1
Private WithEvents tb As New myTextbox
Sub New()
' This call is required by the...
-
I have used madxlib successfully to convert from MP3 to WAV and MP3 to PCM which was burned to cd with imapi (all in vb.net). It looks like aumplib does even more. Madxlib was quite tricky to use -...
-
It's because calling New Random uses the system clock as the seed for the random. In your code you were calling it really quickly in succession - in the same clock tick, so your randoms were the same.
|
Click Here to Expand Forum to Full Width
|