Search:

Type: Posts; User: Niya

Page 1 of 13 1 2 3 4

Search: Search took 0.27 seconds.

  1. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    You guys were focused on twips when that had nothing to do with it. All I showed was that in the case of the sample you posted, you could induce the correct behavior whether or not twips were...
  2. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I realized it was a waste of time. Because all we ended up doing was going head to head .Net vs RC5. But here's the thing, you had to spend all that time to write that library, I didn't. This is what...
  3. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    The more I use WPF, the more I fall in love with it. You just feel so powerful, like there is no kind of UI you cannot create with it. It even feels better when you're creating simple UIs with plain...
  4. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    Ehh....well I expect there are all kinds of gremlins waiting in the dark with this. I don't know enough to cover all the edge cases that would cause it to fail. I certainly don't know enough to have...
  5. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Nevertheless, it is very applicable to my case. It's very easy to make an argument that I'm being subjective. I'm just pointing out that I can back up what I say but only to those willing to listen...
  6. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    I just tested this and it still didn't fail, even with a UserControl. If it's failing for you, I might be missing something. I've attached the project I used to test it.
  7. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I'm not getting into this with you guys again. Believe whatever you want.
  8. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I can, but I've learned that on this forum, it's a waste of time to try. Instead, I will say that VB.Net is better and leave it right there. If someone comes along who I feel would genuinely like to...
  9. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I've always been nice. But nice doesn't mean I'm not willing to speak the truth just because it offends some people. When I say that VB.Net is better than VB6, I'm not saying that to be mean...
  10. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    SetWindowPos works exclusively in pixels. The only reason I'm using ScaleX/Y is because I'm reading the dimensions of the client area from ScaleWidth/ScaleHeight properties of the Form and I need...
  11. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    Turns out I was correct. The problem has nothing to do with Twips. Use this:-

    Option Explicit

    Private Declare Function GetDpiForWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
    Private...
  12. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    As a result of my participation in the other thread where I was researching DPI, I decided to tackle this and see what's up while all this DPI stuff is still fresh in my mind. First I want to address...
  13. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    You're welcomed. :)

    See I'm not such a bad guy after all. :bigyello:
  14. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Your question seems to be hinting at concerns over how the XAML is married to VB code. Underneath it all, XAML is just a way of instantiating objects. For example this:-

    <Grid x:Name="grd1">
    ...
  15. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Yes, all of these properties are set at design time using XAML. To put it in VB6 terms, XAML is the text you find in frm files that tells you what controls a Form has, where they are etc. This is...
  16. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    If you've ever worked with HTML/CSS then you've worked with relative positioning before. It's the exact same concept. Minor adjustments are all done with margins and paddings.

    In WPF you live and...
  17. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    That's one of the main reasons but it's goes a lot deeper than that. While a WPF application by default will look exactly like any other Windows application, underneath the hood, they are completely...
  18. Replies
    20
    Views
    562

    Re: Fix the TwipsPerPixel rounding?

    I get the problem at 175%.
  19. Re: Is the VB6 community capable to grab the bull by its horns?

    Well this got out of hand fast:ehh:
  20. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Now I realize that I'm not as experience as you when it comes to DPI awareness so maybe I missed something. Maybe I did something wrong in testing. I've attached the two .Net applications I wrote to...
  21. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Ok, after reading what you wrote, I spent the better part of my night exploring DPI awareness in .Net and based on your explanation I can now answer your question. How does .Net deal with DPI...
  22. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    Also, if the blurriness itself is the problem you're talking about. You just have make a couple of very minor changes to a .Net project and that blurriness goes away. It would look crisp and properly...
  23. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    That doesn't answer my question.

    See, I remember you mentioning it in the other thread where I said I hated this TwipsPerPixel concept VB6 uses. That day I actually did spent at least 2 hours...
  24. Re: Is the VB6 community capable to grab the bull by its horns?

    And we have arrived back to the original problem that arose when MS stopped development of VB6 in favor of .Net. which is the lack of a clear and painless migration path. What all this tells me is...
  25. Re: Is the VB6 community capable to grab the bull by its horns?

    What you're describing here actually isn't VB6. This is an entirely different development platform. All VB6 provides is the IDE and the compiler. You won't be writing VB6 apps, you're actually...
  26. Replies
    14
    Views
    434

    VS 2010 Re: Another window doesnt popup though it should

    You can check for a running process like this:-

    '
    If Process.GetProcessesByName("Notepad").Length > 0 Then
    MessageBox.Show("Notepad is running!!")
    End If
  27. Replies
    423
    Views
    9,386

    Re: The US fragile democracy Exposed

    Maybe he is just trolling us. :)
  28. Re: Is the VB6 community capable to grab the bull by its horns?

    This horse has been beaten to death on this forum. This thread is not the first of it's kind. I wouldn't get my hopes up on this going anywhere. None of the others did. It's safe to say at this point...
  29. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    DPI and screen resolutions are very involved topics. There is no one size fits all in this arena. Narrow it down a bit and give me an example of a problem in that space you've had to solve using...
  30. Re: Is the VB6 community capable to grab the bull by its horns?

    There is already a 100% VB6 compatible substitute on the way, TwinBasic. It's actively being developed and already has an array of very impressive features considering there's only about 2 people...
  31. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I have zero problems with anyone who loves VB6 but objectively speaking, VB.Net is much better. That's the truth.

    I have been getting into these debates on this forum since I got here and in all...
  32. Re: Is the VB6 community capable to grab the bull by its horns?

    C and Assembly aren't actually as difficult as you think. Based on your posts, I'm confident you can learn both inside of a month. Now don't expect to be able to understand how to write an OS after...
  33. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I stopped taking you seriously when you made these statements. You're clearly not being objective and anything you say is tainted with personal bias. You have too much emotion invested in this. VB6...
  34. Replies
    423
    Views
    9,386

    Re: The US fragile democracy Exposed

    Remember when I mentioned Stormfront and 4Chan? This post is exactly the kind of nonsense you find in those spaces and this is extremely tame. If you guys want to see how deep this insanity really...
  35. Thread: Post Race!

    by Niya
    Replies
    64,964
    Views
    6,294,456

    Re: Post Race!

    My prayers are with you :)
  36. Re: COM Interop example. How to use .Net classes in VB6.

    When the .Net project is compiled in Visual Studio, it is automatically registered with COM. I'm guessing you were trying to deploy the binaries on another PC. In this case you would need to be...
  37. Replies
    65
    Views
    1,678

    Re: Should i learn VB6?

    I absolutely do not recommend VB6 even as a choice to just learn, just the opposite in fact. Firstly, VB6 isn't free so unless you're willing to pirate it, it's unlikely you will get a copy easily....
  38. Replies
    423
    Views
    9,386

    Re: The US fragile democracy Exposed

    I believe he is being sarcastic. No one as intelligent as Dil would actually believe such nonsense.
  39. Re: could anyone guide me on this byref arguement type mismatch error?

    It may just want the return value of MTK_ConnectDevice. That function returns a 64 bit integer according to the C code you posted. The only problem I see here is that VB6 doesn't have a 64 bit...
  40. Re: COM Interop example. How to use .Net classes in VB6.

    Yes it's definitely possible.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width