-
I am in the process of making a custom button, and in the resize event, I only want to perform a redraw when in design time. If the button is running in the compiled program, I want it to ignore the command. Is there any way to distinguish between design time and run time in a control?
Thanks,
Jordan
-
hmm, sounds stupid but can't you just comment out the sub before compiling it and decomment it when using in runtime eviroment?
-
Yes, but I was just wondering if there was any way to distinguish between design time and runtime in a control so that I don't have to manually comment and decomment every time.
-
Code:
If UserControl.Ambient.UserMode then
'Runtime code
else
'Designtime code
end if
-
They don't call em guru's for nothing. Thanks Kedaman. :)