Search:

Type: Posts; User: wornways

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: How to convert Access 2007 KeyCode from KeyDown to a usable character?

    Chr(KeyCode)

    Found it. Seems like I must have known this at one time. Now for the next trick.
  2. Re: How to convert Access 2007 KeyCode from KeyDown to a usable character?

    Chr(KeyCode)

    Found it. Seems like I must have known this at one time. Now for the next trick.
  3. Re: How to convert Access 2007 KeyCode from KeyDown to a usable character?

    Just for reference, here's the sub routine for hypothetical field XYZ:


    Private Sub XYZ_KeyDown(KeyCode As Integer, Shift As Integer)
    Dim MyStr As String

    MyStr = 'some trick that gets...
  4. How to convert Access 2007 KeyCode from KeyDown to a usable character?

    I'm pretty new to using VBA with Access. I would like to know how to get the character of the key pressed from KeyCode. I have something in mind that I would like to accomplish, which may drive me...
  5. Is there an API call for calling a form's method using its hWnd?

    Is there a way to raise a form's event by using the form's hWnd in an API call? Ideally I'd like to trigger a custom event in this manner. Any help would be appreciated.
  6. Re: Can a sub routine accept more than one argument type?

    I can make the type "Object":


    Sub MySub(ByRef Arg1 As Object, ...)

    This doesn't break anything, and it lets me pass SSPanel objects to the routine, as well as Label objects. But, my god, this...
  7. Re: Can a sub routine accept more than one argument type?

    That won't work, given the context of the subroutine. I am already accepting 2 other arguments, a string and a defined Enum type. And only one or the other will be used, not both at the same time....
  8. Re: Can a sub routine accept more than one argument type?

    Actually, it's SSPanel. But the point is that I want to make the sub routine accept either of these arguments and not insist only one one of the two argument types. Is there any way to do this?
    ...
  9. Can a sub routine accept more than one argument type?

    Hello,

    I need to make a sub routine accept either or two argument types for the first argument. One is the type "Panel", and the other is the type "Label". This routine does not do anything that...
  10. Thread: GDI to Jpeg?

    by wornways
    Replies
    3
    Views
    666

    Re: GDI to Jpeg?

    LaVolpe,

    I appreciate the pointers. I have a feeling that we'll want to draw the GDI calls into a buffer (other than the screen buffer) that can then be rasterized and converted to JPEG. I came...
  11. Thread: GDI to Jpeg?

    by wornways
    Replies
    3
    Views
    666

    GDI to Jpeg?

    Hi folks,

    I want to rasterize a series of GDI calls and save the rasterized image as a JPEG, but I don't know where to begin.

    Can anyone point me to some reading on the matter so I can get...
  12. VS 2010 Real-time DataGridView Column Width Adjustment

    Thought I'd share this. When I learned how to set the hidden DoubleBuffered property of the DGV to True, I ran into another problem--the line that shows you where the new column width will be as you...
  13. Replies
    2
    Views
    2,516

    VS 2010 Re: Testing for Empty EventArgs

    Well my problem is only partially fixed, as it would turn out. Somehow, when I set the value of a radio button to be checked from a different form after selecting a radio button in the form itself,...
  14. Replies
    2
    Views
    2,516

    VS 2010 Re: Testing for Empty EventArgs

    I found it, by sheer dumb luck and raw determination:


    If e is EventArgs.Empty Then Exit Sub

    My bug has gone away now.
  15. Replies
    2
    Views
    2,516

    VS 2010 Testing for Empty EventArgs

    I'm encountering a scenario where I need to see if e is "Empty" before I execute code (don't execute if it's Empty).

    In a routine similar to the following, I can see while debugging the code that...
  16. VS 2010 Re: Sending a final .Refresh() after scrolling a DataGridView

    I'm going to start here: http://www.java2s.com/Tutorial/VB/0220__Event/Catalog0220__Event.htm

    If you know of anything else, especially tutorials that explain each step in detail, I'd be interested...
  17. VS 2010 Re: Sending a final .Refresh() after scrolling a DataGridView

    I think this gets me started with understanding some of the concepts. Do you know of any online tutorials that deal specifically with this sort of thing? I'd love to read them and further my...
  18. VS 2010 Re: Sending a final .Refresh() after scrolling a DataGridView

    Hi FromAccount,

    This is really fantastic. I've been playing with it for awhile and I still don't quite understand how it works, but it really works!

    I have an insatiable craving, however, to...
  19. VS 2010 Sending a final .Refresh() after scrolling a DataGridView

    Hi Folks,

    I'm noticing that sometimes strings drawn in a given column or row will be slightly over-antialiased or altogether clipped after scrolling horizontally or vertically.

    I can see...
  20. VS 2010 Re: How can I reduce the default padding/text offset of a DataGridView cell?

    Hey I figured it out. I'll post something later.
  21. VS 2010 Re: How can I reduce the default padding/text offset of a DataGridView cell?

    I want to try this bit of code out:


    void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)//remove padding
    {
    // ignore the column header and row header cells
    ...
  22. VS 2010 How can I reduce the default padding/text offset of a DataGridView cell?

    By default, the DataGridView padding (.ColumnHeadersDefaultCellStyle.Padding and .DefaultCellStyle.Padding) is set to 0 (zero). However, when you run the application and look at what's in the...
  23. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    Yikes! I had no idea! Now this is a very useful piece of info to keep in my brain somewhere. Thanks again!
  24. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    Oh, another question. The DGV control is passed to the function by value and not by reference, and yet it still works. Why is that?
  25. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    Great! Thanks for the info. This broadens my understanding a bit and gives me more to work with.
  26. Re: [2008]¸Avoid repaint when updating many controls

    Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
    If Not Resizing Then MyBase.OnPaint(e)
    End Sub

    I'm not sure about this somehow, but only because I'm doing...
  27. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    By the way, can someone explain this line to me?


    Dim dgvType As Type = dgv.[GetType]()
  28. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    This is a little better, since there is already a DoubleBuffered something built in to the VB.NET environment:

    The only thing that likely needs to be imported is Reflection:


    Imports...
  29. VS 2008 Re: [RESOLVED] Refresh questions about DataGridView

    In case anyone finds this, I posted the solution here:

    http://www.vbforums.com/showthread.php?p=3787340#post3787340
  30. Replies
    8
    Views
    4,786

    VS 2008 Re: [RESOLVED] DataGridView VirtualMode

    In case anyone finds this, I've posted the real solution here:

    http://www.vbforums.com/showthread.php?p=3787340#post3787340
  31. Replies
    5
    Views
    1,338

    Re: Need help deleting row datagridview

    I know enough to start you off with the first side of your question.

    You can retrieve the selected rows using the DataGridView.SelectedRows property:
    ...
  32. Replies
    15
    Views
    21,048

    VS 2010 Re: How to make DataGridView render fast

    Thank you FormlessTree. This is a real gem of a find, and I absolutely know this will be used regularly by those who find it.

    Take care.
  33. Replies
    1
    Views
    581

    Re: Do you do fill a datagrid?

    Have a look at the DataTable class and see if that helps:

    http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx

    Once you've populated the DataTable instance with the results of...
  34. Replies
    15
    Views
    21,048

    VS 2010 How to make DataGridView render fast

    I know some of you have been aware of my great frustration with the DataGridView control's rendering problem, and of my frenetic efforts to figure out a way around it.

    Well I stumbled upon the...
  35. VS 2010 Re: Changing TextRender method to Graphics.DrawString in DataGridView

    Forget this. There is another solution. I'll post it, since it's clear no-one here knows it exists.

    Here is the post, for those of you who find this and not the other:
    ...
  36. VS 2010 Re: Changing TextRender method to Graphics.DrawString in DataGridView

    *ping*
  37. VS 2010 Re: Changing TextRender method to Graphics.DrawString in DataGridView

    What I want to try is described by the second "workaround" at connect.microsoft.com:

    https://connect.microsoft.com/VisualStudio/feedback/details/117093/datagridview-rendering-is-very-slow#tabs
    ...
  38. VS 2010 Re: Changing TextRender method to Graphics.DrawString in DataGridView

    The method I have to override is a private function in the DataGridViewTextBoxCell class (I think it's a class). I used Reflector to find the the one line of code that's supposed to be responsible...
  39. VS 2010 Re: Changing TextRender method to Graphics.DrawString in DataGridView

    *ping*
  40. VS 2010 [RESOLVED] Changing TextRender method to Graphics.DrawString in DataGridView

    Bit by bit I get closer to understanding why DataGridView (DGV) is so god awful slow in rendering. I found this tidbit at connect.microsoft.com/.../dgv-rendering-is-very-slow.



    So MicroSoft has...
Results 1 to 40 of 261
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width