Search:

Type: Posts; User: pax

Page 1 of 13 1 2 3 4

Search: Search took 0.08 seconds.

  1. Re: How to pass an array as both argument and return in a DLL-linked function

    I'm not familar with that specific function call, but generally, Interop functions return a value to indacate success, hence the Integer return type.
    If other values are returned as well, it's...
  2. Re: Multiple projects in IDE - Possible to see each other?

    An alternative (if the class is only relavant for this particular solution) is to have the class file under one of the project.
    For project 2 and 3, select Add Existing Item, browse to the file, BUT...
  3. Replies
    5
    Views
    5,548

    Re: First time with style triggers

    Hi again.

    Come to think of it... I think I focused on the wrong issue. I focused on your IsMouseOver, when in reality it was the ToolTip that was interesting...
    Turns out, that the IsMouseOver...
  4. Replies
    5
    Views
    5,548

    Re: First time with style triggers

    You could add a class like this:


    public class InvertBoolConverter:IValueConverter
    {
    #region IValueConverter Members

    public object Convert(object value, Type targetType, object...
  5. Replies
    5
    Views
    5,548

    Re: First time with style triggers

    I haven't tried it, but maybe you could use a datatrigger instead.
    Then you could use a converter in your binding that inverts the bool.
  6. Replies
    3
    Views
    5,145

    Re: [2010] InputGestureText missing.

    Thanks. :thumb:

    Strange that one needs to do it through code, though!

    But indeed, it does work.
  7. Replies
    3
    Views
    5,145

    [RESOLVED] [2010] InputGestureText missing.

    Hi guys.

    Can anyone tell me what I'm doing wrong here?
    When running this, MyMenuItem doesn't have an InputGestureText but the Paste-menu does.

    I thought it was supposed to, automatically, find...
  8. Replies
    11
    Views
    11,829

    Re: [2008]¸Avoid repaint when updating many controls

    You could try the LockWindowUpdate API...


    <DllImport("user32.dll")> _
    Public Shared Function LockWindowUpdate(ByVal hWndLock As IntPtr) As Boolean
    End Function


    Just call it with your...
  9. Replies
    7
    Views
    972

    VS 2010 Re: Controling the cursor on a flash page

    Well, if you're hosting the webbrowser control yourself, you should have a pretty good idea where it is, relative to your form.
    Then it's just a question of offsetting the coordinates with the...
  10. Replies
    7
    Views
    972

    VS 2010 Re: Controling the cursor on a flash page

    That declararion is from VB6.
    If you plan on using that from .NET you have to change all the Longs with Integers

    I just tried your code and it made an error in the call stack.
    After changing...
  11. Replies
    3
    Views
    1,292

    VS 2010 Re: [RESOLVED] Flipping a Boolean value

    Your welcome :wave:
  12. Replies
    3
    Views
    1,292

    VS 2010 Re: Flipping a Boolean value

    You can use...

    MyBool = Not MyBool
  13. Replies
    5
    Views
    3,807

    Re: [RESOLVED] Why does Mouse Down not function?

    You're welcome :)
  14. Replies
    5
    Views
    3,807

    Re: Why does Mouse Down not function?

    Hi.

    Try using the PreviewMouseLeftButtonDown instead.

    I have found that MouseDown, MouseLeftButtonDown etc. doesn't always work.
    I think it's because a previous handler has set the...
  15. Replies
    9
    Views
    1,051

    Re: XML Serialization partialy working

    Hi.

    I've had the same problem.
    I tried to serialize a generic List(Of String), which also came up empty.
    I ended up making a standard array of strings.


    string[] values;
    public string[]...
  16. Replies
    16
    Views
    9,372

    Re: [RESOLVED] Blurry Menu Images

    Based on this : http://www.wpflearningexperience.com/?p=41=1 it appears that WPF actually does take the dpi setting into account. The problem is, that even though an app should look the same wether...
  17. Replies
    16
    Views
    9,372

    Re: [RESOLVED] Blurry Menu Images

    Hi.

    If you save your pictures with 96DPI they should look ok. The reason WPF upscales and blurs the images is because they are probaly saved using 72DPI.
    WPF always assume 96DPI. That also means...
  18. Replies
    0
    Views
    668

    [2005] Moving 2 forms "lag-free"

    Hi guys.

    I intend to experiment a little with layered windows. Problem is that they can't show controls. Google'ing suggests that the solution is a form on top with the transparency key set.
    ...
  19. Re: How can I open a file saved in Temporary Internet Files?

    This seems to work:

    Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)
    Dim fInfo, fInfos() As IO.FileInfo
    Dim dInfo As...
  20. Replies
    2
    Views
    749

    Re: [2005] Show form with no focus

    Or you could just override the "ShowWithoutActivation" property.

    Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
    Get
    Return True
    End Get...
  21. Re: [2005] Best image format for images in programs

    I see that Troy allready answered that one, but just to clarify :
    DX = DirectX. Most 3D games use this.
    OpenGL is just an alternative to DirectX. Some games use only OpenGL and some lets you choose...
  22. Re: [2005] Best image format for images in programs

    I don't think a DLL will help you very much.
    Sure, the compiled version may be smaller, but again, once you load the image into memory you'll have the same problem.

    DLL's are really just a...
  23. Re: [2005] Best image format for images in programs

    I could be wrong, but my guess is that games sends the most used textures and images to the graphics card so it's stored in the GPU's own memory.
    So unless you use DX in your app, your images will...
  24. Re: SendMessage from normal app to a background app

    Hi jm.

    Thanks for your suggestion. I actually got it to work.
    The only problem I have now is finding the id of the proper thread to recieve the message.

    At the moment, my app has 14 threads,...
  25. Re: SendMessage from normal app to a background app

    Hmm...I have tried both the GetMessage and PeekMesage but not on a thread of it's own.

    It might just be what I'm looking for. I'll try it out when I get back to work on monday.
    Thanks a lot for...
  26. Re: SendMessage from normal app to a background app

    Hi jm.

    Thanks for the answer. But I've read that allready. That's the reason why I tried PostThreadMessage instead, but I couldn't get that to work either.

    The message doesn't have to go to the...
  27. Re: SendMessage from normal app to a background app

    Well, I've managed to overcome this by using udp sockets and sending the command this way. But it doesn't seem right that I have to use network comms when both apps are on the same machine.

    I've...
  28. [RESOLVED] SendMessage from normal app to a background app

    Hi guys.

    Does any of you guru's know how to send a message from a normal windows form app to an app that does not have a form?

    I have one app with no forms. Only a notify icon in the taskbar....
  29. Replies
    7
    Views
    3,284

    Re: [2005] Icon -> ByteArray -> Icon

    :o I can't believe I totally missed the constuctor :o

    :wave:
  30. Replies
    7
    Views
    3,284

    Re: [2005] Icon -> ByteArray -> Icon

    I think this will do the trick.
    Problem is, that I don't know what would happen if the icon contains an alpha channel.


    Dim bmp As Bitmap = CType(Bitmap.FromStream(msIcon), Bitmap)
    ...
  31. Re: [RESOLVED] [2005] Found a Way To Close All Loaded Forms!

    Thats because you're using My.Application.OpenForms(I) to both close it AND dispose it.
    Once you close it, it no longer exists in the collection, so My.Application.OpenForms(I) wont work if it's the...
  32. Re: [2005] Found a Way To Close All Loaded Forms!

    Once you close F and dispose of it, it's no longer in the OpenForms collection.
    Thus, the collection is changed during your loop, and that's probably what's causing your problem. When you remove an...
  33. Replies
    12
    Views
    1,269

    Re: VB Express 2005 Very Slow!

    Nope! I have it running on a IBM ThinkPad 1.7Ghz 1.5Gb Ram.
    Everything runs slowly on this piece of crap, except for VBE.
    That's pretty much the only thing working right on this oversized...
  34. Replies
    5
    Views
    1,021

    Re: Load Binary File to Text Box

    Try putting the bytes in a string variable instead. Then set the textbox1.text property after the for...next loop.

    The way you are doing it now, causes the textbox1 to redraw all the time,...
  35. Replies
    6
    Views
    799

    Re: How to create a small line in GUI?

    Make a label with borderstyle set to either 3D or single, and make the height of the label 2 pixels and the width to match the width of the form.

    EDIT: damn you Rob.... :p
  36. Replies
    8
    Views
    1,043

    Re: Editing each pixel...

    The program is not freezing. It just takes a very long time.
    I have also noticed in 2005 that using bmp.width and bmp.height in a for..next loop adds an unbelievable amount of time to the process....
  37. Replies
    4
    Views
    672

    Re: Alpha Channel Images

    If I understand correctly, then all the red should be transparent?
    If so, then try this:

    CType(TheImage, Bitmap).MakeTransparent(Color.Red)
  38. Replies
    4
    Views
    1,331

    Re: VB.NET / Windows Media Player 10

    My bad, sorry.
    The player controls property conflicts with the regular Controls property.
    It's called "Ctlcontrols.currentPosition"
  39. Replies
    4
    Views
    1,331

    Re: VB.NET / Windows Media Player 10

    Have you tried "MyPlayer.controls.currentPosition"?
    (where "MyPlayer" is the name of your player object variable...)
  40. Replies
    4
    Views
    640

    Re: Convert object to bytes?

    You can serialize it just like any other class that is marked with the Serializable attribute, so just mark it with the Serializable attribute.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width