dcsimg

Search:

Type: Posts; User: LuckyLuke82

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] Custom color picker - Luminance slider for picked colour

    Sure, as I told, send PM to me.
  2. Replies
    8
    Views
    389

    Re: [RESOLVED] Translation to VB.NET

    Thanks for further explanation si_the_geek, now I completely understand. Your code-change suggestion is also noted and allready included, thanks for that :)
  3. Replies
    8
    Views
    389

    Re: [RESOLVED] Translation to VB.NET

    Well, I never investigated this to see what is really happening in background. I found these lines of code somewhere and have used It ever since.

    And to be honest, code isn't quite ...
  4. Replies
    8
    Views
    389

    Re: Translation to VB.NET

    Thanks guys, both of you, specially David for code example. My code now works in VB.NET too.



    To answer this : I've never thought in a way like this. I use this code quite long time and so far...
  5. Replies
    2
    Views
    153

    VS 2015 Re: Excel crash problem

    I've used Interop a while ago, and so as you Ive also bumped into a lot of issues with It. I strongly suggest you to try OpenXML or ClosedXml etc. libraries instead, you'll find out that Interop is...
  6. Replies
    8
    Views
    389

    [RESOLVED] Translation to VB.NET

    Hi guys,

    I'm trying to get my C# code translated into VB.NET but I'm facing troubles, so I turned to you guys.
    Code is for re-positioning messagebox to desired location (not just center of...
  7. Re: Usercontrol default Gotfocus and Lostfocus behaviour

    That should do It. Just compile and use control from Toolbox:


    public class MyButton : Button
    {

    protected override void OnMouseEnter(EventArgs e)
    {
    ...
  8. Re: C# - Datagridview - Paint background with gradient with non-relative position

    Yes I've seen my mistake done here, I allready fixed It. About your solution - thanks, It works except when you resize Grid in a matter when ColumnHeaders resize (column header gets bigger if you...
  9. Re: C# - Datagridview - Paint background with gradient with non-relative position

    I even tried with that, startcolor is allways 0:



    Rectangle rc1 = new Rectangle(0, 0, Width, 30);

    var startcolor = (float)(30 / 100 * 0.047);
    ...
  10. Re: C# - Datagridview - Paint background with gradient with non-relative position

    I still don't get how could I calculate when resize happens in one line. Height can be anything. I tried fixing rectangle to height 30:


    _mixedcolors.Positions = new float[4] { 0f, 30/600f,...
  11. Re: C# - Datagridview - Paint background with gradient with non-relative position

    I can't make It. Color is fixed now no matter how I resize datagridview, but smooth interpolation which makes shadow is gone, like I would fill a rectangle with one color only:


    protected...
  12. Re: C# - Datagridview - Paint background with gradient with non-relative position

    Yes, I think that would help me, but how to do a calculation of positions ?
  13. Re: C# - Datagridview - Paint background with gradient with non-relative position

    Hi jm,
    I was hoping someone would notice that. But It doesn't fix problems. First of all, PaintBackground overrides painting background, so in order to paint a fixed rectangle you have to paint...
  14. [RESOLVED] C# - Datagridview - Paint background with gradient with non-relative position

    Hi,

    I've created a Datagridview with custom painting background. What I want is to paint somekind of shadow for column headers that would be fixed even If I resize Datagridview. I've tried that...
  15. VS 2017 Re: VB.NET Metroframework Docking Form on Panel in Tab Page

    First of all, why are you even using Panel ? From what I see you don't even need It...Just set you form to Borderstyle.None and add that in your TabPage. You're lucky, here is something from my...
  16. VS 2013 Re: Search in DatagridView + "search next" feature

    If you're searching string matches on each row in no matter what column than use DefaultRowFilter, much better & easy. Just add Textbox for writing desired strings and create query for filter. You'll...
  17. Re: C# Task WaitAll - allow another cycle only when all previous tasks finished ?

    You mean BackGroundworker ? ....That is something I'm trying to avoid. Don't know much difference between both techniques, but I've read something about BackGroundWorker being kind of obsolete. And I...
  18. Re: Custom controls - general perfomance question

    Yes, that is why I asked. Specially Paint methods slows down UI, I'll just change my custom controls methods a bit....Otherwise I'm allways trying to follow principle "never write same code twice". ...
  19. Re: Custom controls - general perfomance question

    What about everything else - I also have keypress,keydown etc. overrides ?
  20. [RESOLVED] Custom controls - general perfomance question

    Hi,

    I have multiple custom controls in my project.... I'm wondering, in terms of performance, is It better to override all Paint etc. methods in control Itself rather than assign events for...
  21. Re: C# Task WaitAll - allow another cycle only when all previous tasks finished ?

    Hi PlausiblyDamp,

    this is what I tried in first place, but doesn't have effect. Task.WaitAll doesn't actually wait for all threads to finish, so code goes forward with threads still running. And...
  22. C# Task WaitAll - allow another cycle only when all previous tasks finished ?

    Hi,

    I have a button where I run 4 tasks asynchronously, result is some string based on looping through many directories on my FileSystem. If I start clicking on a button continuously everything...
  23. Re: ToolStripDropDown - hosted control doesn't fire MouseMove event

    I still haven't found nothing to begin with, has anybody any idea ?
  24. Re: C# - Refresh Datagridview with same Datatable

    Thanks jm, that solved all problems.
  25. Re: C# - Refresh Datagridview with same Datatable

    Hi jm,

    I allready assigned Datasource of DataGridView to BindingSource, no issues here. But when It comes to assign Datasource=null, this happens:

    1. I have created columns in designer, with...
  26. Re: C# - Refresh Datagridview with same Datatable

    Hi techgnome,

    thanks for reply. It tooke me some time but I've figured It out, so now everything works. Just one more thing : when I'm "removing" rows from DataGridView - should I just set filter...
  27. [RESOLVED] C# - Refresh Datagridview with same Datatable

    Hi,

    I have a label to hide/show DataGridView records. When I click Label to hide records I remove rows (not datasource to null), and then I want to bring same Datatable as datasource when I click...
  28. ToolStripDropDown - hosted control doesn't fire MouseMove event

    Hi,

    I've implemented custom dropdown for my comboboxes, with embedded Datagridview, using ToolstripControlHost & ToolStripDropdown method. When dropdown is opened my DataGridView's MouseMove...
  29. Re: Custom combobox with hosted Datagridview - cannot set datasource

    Solved.
  30. [RESOLVED] Custom combobox with hosted Datagridview - cannot set datasource

    Hi,

    I've created a combobox that hosts Datagridview as dropdown, but I cannot set datasource of Datagridview:


    class CustomCombo: ComboBox
    {
    new public event EventHandler...
  31. Replies
    6
    Views
    893

    Re: [RESOLVED] Custom textbox flickering

    It works for me now:




    private const UInt32 WM_NCPAINT = 0x0085;
    private const UInt32 WM_MOUSEMOVE = 0x200;

    [DllImport("user32.dll")]
    static extern IntPtr...
  32. Replies
    6
    Views
    893

    Re: [RESOLVED] Custom textbox flickering

    Ups, you're right, text doesn't apply, back to beginning :(
  33. Replies
    6
    Views
    893

    Re: Custom textbox flickering

    Hi HeribertoLugo,

    many thanks for all your effort regarding my problem. Your code didn't give me required results (Textbox draws Fixed border allways), but with your help I got It working :)
    ...
  34. Replies
    6
    Views
    893

    [RESOLVED] Custom textbox flickering

    Hi,
    I have a Textbox with a custom borders when focused or not, or disabled:


    public class MojTextbox: TextBox
    {

    private const UInt32 WM_NCPAINT = 0x0085;

    ...
  35. Re: File manager - refresh Treeview after FileSystem changes

    This is how I started innitially, maybe someone can help me from here on. Basically, I trap all FileSystem changes via FileSystemWatcher and by that I could refresh Treeview:


    private void...
  36. File manager - refresh Treeview after FileSystem changes

    Hi,

    I have a file manager with Listview and Treeview to show directory structure. When I do some FileSystem changes via Listview, I want to update Treeview too. Currently what I do is just...
  37. Re: Treeview - remove "+ -" on non expandable nodes ?

    Hi,
    thanks for all replies...


    That was not my question.

    Yes, custom, but only overriding couple of things. Triangles display because I have set WindowTheme.


    I solved problem. Looks...
  38. [RESOLVED] Treeview - remove "+ -" on non expandable nodes ?

    Hi,

    before I lose my mind, can somebody tell me If there is an easy way to eliminate plus/minus signs from Treeview on nodes that don't have childs, like in Windows Explorer ? ...As far as I read...
  39. Re: Mulitcolumn combobox - item not selected

    Looks like nothing can be done, just the way It is. Combobox selects first Item with same data based on DisplayMember and doesn't allow to select another, netiher autosuggest drop-down (where It...
  40. [RESOLVED] Mulitcolumn combobox - item not selected

    Hi,

    I'm using multi-column comboboxes to show data. Code goes something like this (just a sample, combobox has to be OwnerDrawFixed):


    private void fill_Combobox()
    {
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width