Search:

Type: Posts; User: jo0ls

Page 1 of 8 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    13
    Views
    7,656

    Re: [VB 11] Iterators

    Community Technology Preview.
  2. Replies
    11
    Views
    10,492

    Re: Closing/opening cdrom drive

    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...
  3. Thread: RandomNumbers

    by jo0ls
    Replies
    5
    Views
    639

    Re: RandomNumbers

    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...
  4. Thread: Memory API

    by jo0ls
    Replies
    1
    Views
    551

    Re: Memory API

    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...
  5. Replies
    18
    Views
    1,767

    Re: [2005] How to get window caption bar height

    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...
  6. Replies
    3
    Views
    783

    Re: [2005]DLL functions

    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...
  7. Replies
    4
    Views
    4,524

    Re: [2005] Volume Control

    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...
  8. Replies
    10
    Views
    808

    Re: No need fo SP2 with VB2005 express

    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...
  9. Replies
    2
    Views
    1,152

    Re: [2005] my.computer.registry.setvalue()

    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.
  10. Replies
    4
    Views
    4,524

    Re: [2005] Volume Control

    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...
  11. Replies
    2
    Views
    433

    Re: How do I get Word to stop Saving on close?

    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...
  12. Thread: Dell Service Tag

    by jo0ls
    Replies
    38
    Views
    34,469

    Re: Dell Service Tag

    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...
  13. Replies
    22
    Views
    1,876

    Re: [2005] move mouse cursor

    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...
  14. Replies
    22
    Views
    1,876

    Re: [2005] move mouse cursor

    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
    ...
  15. Thread: Enumerate NIC

    by jo0ls
    Replies
    3
    Views
    1,010

    Re: Enumerate NIC

    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...
  16. Replies
    4
    Views
    1,578

    Re: Linux carriage return

    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:...
  17. Replies
    6
    Views
    17,512

    Re: Convert Bytes into bits

    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...
  18. Replies
    6
    Views
    17,512

    Re: Convert Bytes into bits

    or...

    Dim b As Byte = 100
    Dim binaryString As String = Convert.ToString(b, 2).PadLeft(8, "0"c)
  19. Replies
    6
    Views
    891

    Re: "as any" problem

    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...
  20. Replies
    6
    Views
    891

    Re: "as any" problem

    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...
  21. Re: Gradient Fill with API, not CreateGraphics routine.

    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...
  22. Re: PInvokeStackImbalance error when trying to load default email client by code

    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...
    ...
  23. Replies
    2
    Views
    722

    Re: [2005] CD Burning

    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...
  24. Re: [2005] Arithmatic Resulted in Overflow.. But not in debug mode..

    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...
  25. Re: [2005] Arithmatic Resulted in Overflow.. But not in debug mode..

    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 ...
  26. Replies
    3
    Views
    494

    Re: Gdi+

    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
  27. Replies
    6
    Views
    797

    Re: [2005] Invisible buttons/vector graphics

    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...
  28. Replies
    1
    Views
    864

    Re: Visual studio 2005 Sample 101 Database

    AdventureWorks?
    http://msdn2.microsoft.com/en-us/library/ms143739.aspx
    page to download samples
  29. Re: [2005] Problem with Progressbar Using Marquee Style in VS2005

    something like...

    Public Class Form1

    Private WithEvents btnOne As Button
    Private WithEvents worker As System.ComponentModel.BackgroundWorker
    Private progressIndicator As...
  30. Replies
    14
    Views
    3,953

    Re: [2005] Smooth ProgressBar?

    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...
  31. Re: [2005] Why is my OpenFileDialog open so slow on the desktop?

    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...
  32. Replies
    30
    Views
    975

    Re: Help on English school questions!!!!!

    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:...
  33. Thread: Matrix Addition

    by jo0ls
    Replies
    14
    Views
    6,590

    Re: Matrix Addition

    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,...
  34. Replies
    8
    Views
    1,700

    Re: [02/03] Setting working area?

    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...
  35. Replies
    1
    Views
    639

    Re: Trouble reading ID3 tags

    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...
  36. Replies
    8
    Views
    1,700

    Re: [02/03] Setting working area?

    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...
  37. Replies
    3
    Views
    831

    Re: [2005] Drawing an ellipse?

    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()
    ...
  38. Replies
    13
    Views
    3,470

    Re: Overriding IsInputKey Method

    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...
  39. Replies
    4
    Views
    768

    Re: Audio Conversion APIs

    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 -...
  40. Replies
    5
    Views
    591

    Re: [RESOLVED] [2005] random numbers

    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.
Results 1 to 40 of 301
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width