Search:
Type: Posts; User: wornways
Search:
Search took 0.02 seconds.
-
Chr(KeyCode)
Found it. Seems like I must have known this at one time. Now for the next trick.
-
Chr(KeyCode)
Found it. Seems like I must have known this at one time. Now for the next trick.
-
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...
-
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...
-
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.
-
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...
-
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....
-
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?
...
-
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...
-
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...
-
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...
-
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...
-
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,...
-
I found it, by sheer dumb luck and raw determination:
If e is EventArgs.Empty Then Exit Sub
My bug has gone away now.
-
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...
-
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...
-
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...
-
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...
-
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...
-
Hey I figured it out. I'll post something later.
-
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
...
-
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...
-
Yikes! I had no idea! Now this is a very useful piece of info to keep in my brain somewhere. Thanks again!
-
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?
-
Great! Thanks for the info. This broadens my understanding a bit and gives me more to work with.
-
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...
-
By the way, can someone explain this line to me?
Dim dgvType As Type = dgv.[GetType]()
-
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...
-
In case anyone finds this, I posted the solution here:
http://www.vbforums.com/showthread.php?p=3787340#post3787340
-
In case anyone finds this, I've posted the real solution here:
http://www.vbforums.com/showthread.php?p=3787340#post3787340
-
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:
...
-
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.
-
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...
-
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...
-
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:
...
-
-
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
...
-
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...
-
-
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...
|
Click Here to Expand Forum to Full Width
|