Search:

Type: Posts; User: Goshx

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    Theoretically it is possible to create a control whnich changes its dimensions according to actual dimensions of a form. I am not skillfull enough to do that but with using of GDI+ tools and owner's...
  2. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    It is the same 200x200 but much more smaller. I have a form fitted to 1024x768 which looks terribly poor on 3840×2160 displays. It has to be maximized and some controls are too small for normal work.
  3. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    Larger form requires larger elements. I want to get larger controld if my form which is let's say, 1000x500 bebomes 2500x1500. That menans, rising of font size, too. I've understood that there's no...
  4. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    Spynne, thank you for the answer. It is educational as always. I've seen in internet something like your code here but I've expected some approach related with GDI+ and owner's drawn controls but it...
  5. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    Let's try this way:

    tableLayoutPanel1 OFF
    TLP1 rows, columns =50%
    L1-L4 Autosize = False
    L1-L4 Anchor: top, bottom, left, right
  6. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    I've put AutoSize to false and anchored labels to all sides but it still doesn't work.
  7. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    sorry, Paul. I've already did that. After your post I've tried again but it still doesn't work. Label is still with original dimensions.149997
  8. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    No more idea about this? Who can show how to proportionally strech an existing label according to new dimensions of a winndow?
  9. Replies
    21
    Views
    10,327

    Re: How to resize controls during form's resize?

    I know for TableLayoutPanels and FlowLayoutPanels. Also tried many things with anchor property and Docking property but they still give unproportional buttons and other elements compared to new...
  10. Replies
    21
    Views
    10,327

    How to resize controls during form's resize?

    Is there a good way to resize controls like buttons, textboxes or labels to grow together with form's size? If you create a button or label for some smaller resolutions it would be too small on a...
  11. Re: How to set clickable regions on top of a picturebox control?

    ouchh... I didn't pay attention on that. Sorry.

    We can close this topic
    thanks to all
  12. Re: How to set clickable regions on top of a picturebox control?

    .paul as always offer complete workable code. It is amazing how he can always write code on demand :)
    This code works like a charm, thank you, .paul. I hope that I don't ask too much but I'd like to...
  13. Re: How to set clickable regions on top of a picturebox control?

    Thank you Shaggy again. I'll try to play with this a little bit.

    By the way. Is there a simple way to implement some kind of visual feedback on clicked rectangle?
  14. Re: How to set clickable regions on top of a picturebox control?

    It is :) sorry.
  15. Re: How to set clickable regions on top of a picturebox control?

    that's it :) LINQ, generics, lists... it is from the same story which I didn't like when they were introduced. Yes, they are powerful but a little bit confusing for somebody who learned .NET at its...
  16. Re: How to set clickable regions on top of a picturebox control?

    Thank you for this, Shaggy. I have a few more questions


    Would you be so nice to demonstrate that approach?



    That means, object names oneRect and twoRect disappears if we put them into list?
  17. Re: How to set clickable regions on top of a picturebox control?

    uuuuggghhh this is much more complicated than I expected. It seems that I will have to learn generics although I didn't want to for many years.

    Can someone write code how to add two rectangles...
  18. Re: How to set clickable regions on top of a picturebox control?

    Thank you for advices, guys.

    I understand that I need to use mouseclick for that. Something like this

    Dim pos As MouseEventArgs = DirectCast(e, MouseEventArgs)
    essageBox.Show(pos.X.ToString +...
  19. [RESOLVED] How to set clickable regions on top of a picturebox control?

    I want to write a small program which will be able to recognize clicks at 10 different regions inside of a picturebox control.
    After many unsuccessful tries to find some code in Internet I decided...
  20. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    by my own opinion, you're a generous person always ready to help with your "in depth" explanations.


    I'm afraid that is already too late for UWP if we take in account poor success of WP platform....
  21. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    I'm afraid that I'll have to forget code translation into WPF )) if we have to work with pixel shaders (never did that) it isn't a piece of cake.
  22. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    I am laughing to myself how stupid mistake I did. From some strange reason I firmly believed that I'm doing well.
  23. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    Thank you for this answer, passel. I couldn't find anything similar with Google. The answer is: you can't process images on the same way as you did with GDI+. Generally, you can, but you have to do...
  24. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    but we have mechanism to embed WPC into WinForms and vice versa, right? If we already have that possibility they could enable to do that more easy. Although I understand that we have two different...
  25. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    I'm using your code, passel )

    yes, you're right about "disabled for drag and drop". Although you explicitly wrote:

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs)...
  26. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    well.. 1'st thing... passel's code doesn't work correctly in my case. I cant' see any sub which will manage MouseDown event on form1. I added

    Private Sub PictureBox1_MouseDown(sender As Object, e...
  27. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    Can't see many projects written with WPF although it is already 10 years old :)



    Mine too. That's the reason why I put that question.
  28. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    I've seen that it isn't a big problem to move from WinForms. In general, development with WPF reminds me much on programming for Android platform. But... to translate all my code to new platform just...
  29. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    I can't do that right now but I'll check it, of course :)
  30. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    I've just answered in my previous post why there's no code in this topic (for now). I firstly wanted to know is it technically possible or not.




    I can't test it now but according to your...
  31. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    When I've got an idea to do that I started to search is it possible. I've expected (as you do) that it is possible to implement. But... I couldn't find any concrete answer related with that topic....
  32. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    When you load some project written for WPF, everything is much slower than when you work with WinForms. Visual studio itself was written in WPF and works slower from that time. I've read that...
  33. Replies
    19
    Views
    18,921

    Re: A few questions about WPF

    141 views, 0 answers. I've expected at least a dozen of answers

    Obviously WPF isn't popular between programmers.
  34. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    no. Only some of them by user's choice.




    yes, two form in the same app. They should be non modal, I presume. Although it could be practical if one of them stays on top of second one.
    The...
  35. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    It is rather simple to explain/understand. We have two forms, let's say, formA and formB. formA contains five picturebox controls with images inside. Our goal is to put wnated images in pictureboxes...
  36. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    :) I want to move some images contained into piturebox controls.
  37. Replies
    25
    Views
    2,799

    Re: D'n'D between two forms

    I've already seen that page but I couldn't find answer on my question. They are takling generally about drag and drop but there's no concrete answer about moving data between two forms.
  38. Replies
    25
    Views
    2,799

    [RESOLVED] D'n'D between two forms

    Is there a way to drag an object from formA and drop them to formB? I've tried with Google but couldn't find anything appropriate.
  39. Re: How to allow only one instance of a form?

    with List(Of String)?

    Easy to say but not so easy to afford if you didn't do that before ))
  40. Re: How to allow only one instance of a form?

    I can't see anything useful there, to be honest. There's no a way to refer form selected by its Text property
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width