to answer yr questions:
- yes i did, in fact i tried both combos
- DrawMode is set to OwnerDrawFixed
- flickering is related to initial drawing, resizing is disabled
- double buffering using SetStyles doesn't help, tried that too.. only i switch it on every control type i'm using (since i have my own wrappers).. maybe if i tried that..
i do have an alternative solution which i've implemented to resolve...
User Profile
Collapse
-
i tried your solution, but unfortunately it doesn't improve quality in the way compositing style does, and there are unwelcome side effects; it does howerver resolve the OnDrawItem issue, all goes well there..
thanx anyway!...Leave a comment:
-
-
CreateParams issue
hi all!
I have an aggrieviating problem concerning using CreateParams on my forms. I'm using compositing style (cp.ExStyle|=0x 02000000) to eliminate flicker and it works wonderfully in most cases. However, i've noticed that on controls such as ListBox and TabControl it cancels the effect of drawing in OnDrawItem handler. I've read that compositing style can do that with 3rd party controls. Is there a way to get both the OnDrawItem... -
Active Reports for .NET 3.0 speed issue
Hi all!
I'm using AR3 to create reports with subreports. I understand that AR isn't the speediest solution out there and i've managed to optimize it a bit, so the naked report without subreports loads fine, but subreports kill the performance!
why's that and is there any help?
M. -
Ping reply
Hi all!
I have a problem while trying to ping my comp using alias. I get Reply from ::1: ... why is this happening? when i ping using my ip address, it's fine.
I have a Cisco VPN adapter installed, could it be that's it's causing the trouble?
I also had an intrusion which I managed to get rid off...
Please help!
M. -
that's not what i meant...
what i need is a way to get the real arguments of the method that called another method in runtime.
ex. if i have something like this:
[CODE]
public static void CallerFunc(int a, int b, string c)
{
SpoofParams();
}
[CODE]
i want the SpoofParams() func. to reflect the params passed to CallerFunc, not the metadata that you get reflecting...Leave a comment:
-
Invoked member
Hi all!
I'm trying to create a method in c# that would spoof the parameters of the method that called it... is there a way to do it? how can i get the invoked member? -
HorizontalAlignment issue
Hi!
I have a problem with textbox's HorizontalAlign ment prop. What I do is change the alignment on leave, and it fires another leave event! why? also when I try Shift-TAB on that control, it doesn't work, control stays focused! (I traced it and immidiately after leave, it fires gotfocus event on that SAME control!!!)
why? -
Eventually I found the solution:
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreatePara ms;
cp.ExStyle |= 0x02000000;
return cp;
}
}
I wonder why it's so well concealed in the 2.0 framework when it obviously works great...Leave a comment:
-
thanx for the reply! i've tried the first suggestion, i'm affraid that's not it. Manual breaks work fine, i can do the resize in code and manually break text if needed (actually that's my current solution), but i'd like it to behave like regular buttons, that is when you resize it, the text should trim (not wrap) and image should stay fixed. ToolStripButton does just the opposite:)...Leave a comment:
-
ToolStripItem text problem
Hi!
I have a ToolStrip with ToolStripButton s as items. Each button has an image and text placed after image. When I set AutoSize to false and resize, text is fixed and the image gets trimmed. How can I set it to word-wrap or to trim text instead of image?
M. -
BackgroundWorker culture
Hi all!
Anyone ever tried initializing form resources inside BackgroundWorke r's DoWork() method? Problem is that it's thread's culture is set to neutral by default. How can I change that?
M. -
Form loading speed c#
Hi all!
I have a problem regarding form loading speed. I have forms with many controls and some time ago I've implemented a fader that uses a symbollic millisecond of fade time to buffer the layout of the form. It works great, no flicker whatsoever, but even with settings on minimum, it creates some noticable delay between all form loading operations and final show. When i turn it off, form loads practically on click, but with ugly... -
Control.Leave quirk
Hi,
I have a curious problem: when the Leave event of some control fires, sender.Focused= false, right? but when I change tabpage, event fires, but my
sender.Focused= true. How and why??
M -
No, i meant the logon screen that pops up when you're connecting to a network comp/domain and your login and pass are not remembered. maybe i can supply them in the UNC (never tried that before)?Leave a comment:
-
ClickOnce problem
Hi all!
Is there any way to make ClickOnce deploy programmaticall y (or somehow) perform a server login? Thing is, my publish location is on a network comp which requires logon, and it stops the deploy while trying to get the new version. Instead it closes and launches into current ver.
Now, can I make the logon screen pop up or is there a way to use login info in deploy? Please help!
M -
wow. I thought I tried that one, but obviously haven't:) thanx, that was an eye opener right there:)...Leave a comment:
-
:) Hi!
Selecting tabpages is not the issue, selecting controls is. If my focus is on the tabpage header, {TAB} gives me the first control, which is fine. But when i focus on the first control, things get messy because i'm handling the tabcontrol's KeyDown which i cannot use since i'm handling KeyDown in my controls already. So what i need is some kind of a check to see if the tabpage header is actually focused, not the whole tabpage. Or some...Leave a comment:
-
WinApp: Navigate TabPage using custom keys
Hi!
I'm using arrow keys to navigate thru controls and I want my tab control to
implement that feature too, so when tabpage gets entered (focus is on the
header) DOWN key should focus on first tabpage control. Now, how can it
be achieved? I used to navigate using my utility classes, but recently
discovered that SendKeys.Send(" {TAB}") works fine too on most controls. Can
I use it on tab...
No activity results to display
Show More
Leave a comment: