I need my form in Delphi to be resizeable, and all components and controls should stretch proportionally, along with font sizes etc. Right now in order to resize components I write a code inside "OnResize" event, and manually calculate all components' sizes and fonts. I would like to have more simple solution, which I can apply to differ...
I'm using webBrowser.Navigate(url) control to display page.
I noticed this action steals focus from current control (grid) and than I have problem to focus grid back (tired myGrid.Focus, .Select etc...)
This is really annoying behaviour of browser...
Does anyone knows how to prevent focus stealing by Browser or (if not) hot to force to ...
I have searched through internet & found that there are no any direct method that disable nodes of CTreeCtrl control.
check one post at http://www.ucancode.net/faq/MFC_CTreeCtrl-CListCtrl.htm & also on codeguru.com but not clear about how to disable node of CTreeCtrl.
...
I use MouseMove event to move objects(say labels).
simple principle(schematic):
OnMouseMove(e MouseEventArgs)
if e.Button == Left
deltaX = e.X - lastX
foreach label in labels
label.Location.X += deltaX
lastX = e.X
Once the labels number increase, I start to see the labels traces along the movin...
i add asp.net file upload control as following
<asp:FileUpload ID="filesFileUpload" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="file types not supported"
ValidationExpression="\.(zip|rar|jpg|gif|png|eps|ai|psd|pdf)$" ControlToValidate="filesFileUpload"></asp:RegularExp...
Are there any tutorials or guides out there that anyone knows of that will show me how to read forms from an external program and get back information about the controls on the form? Currently, I can get the handle to the form, and I can get the class name, but I need to get more information such as a persistent name and contained data....
I am creating a login usercontrol. I have added the following buttons: Recover Password, Change Password & Edit Profile.
I am using DevExpress's ASPxPopupControl to host the functions associated with those three buttons.
There are two problems
When the popup is opened I need to be able to close/hide it using a command button
When a u...
I'm trying to replicate the nowadays so fashionable "reflex" effect on a controltemplate for buttons I'm creating.
The basic idea is to create a rectangle with a gradient fill from white to transparent and then clip some of that semi-transparent rectangle with a rectanglegeometry.
The problem is that I don't know how to define a relati...
I have a tab control on a form, and a couple different tabs have save buttons on them. Once the user saves data (via SQL statements in VBA), I set the .enabled = false so that they cannot use this button again until moving to a brand new record (which is a button click on the overall form).
so when my form open i was going to reference ...
I know all the data source controls like LinqDataSource, ObjectDataSource etc.
They are cool but they are intended to be used in conjunction with a database.
I actually need a simple data source control that can work with a plain old List (That supports delete, update, select, insert ofcourse).
I was thinking of using the objectdataso...
Here is a test framework to show what I am doing:
create a new project
add a tabbed control
on tab 1 put a button
on tab 2 put a check box
paste this code for its code
(use default names for controls)
public partial class Form1 : Form
{
private List<bool> boolList = new List<bool>();
BindingSource bs = new BindingSource();...
Iam using windows forms. How can I query all child controls of a Form recursively which have a certain type?
In SQL you would use a selfjoin to perform this.
var result =
from this
join this ????
where ctrl is TextBox || ctrl is Checkbox
select ctrl;
Can I also do this in LINQ?
EDIT:
LINQ supports joins. Why can't I use...
I find PopUpButton, PopUpMenuButton and ComboBox controls have the same function and behavior in Flex. What's the difference between them? Are they redundant?
Thanks
...
I extended the (WindowsForms) built-in TabControl so that users can close tabs right on the tab itself ("x" image on the right like in Webbrowsers). The inherited control renders the text and images. Also, it uses visual styles on hover etc.
All works very well, but I have one problem I can't solve. When the tabs are rendered, I cannot ...
Okay basically here's where I'm at.
I have a list of PropertyDescriptor objects. These describe the custom "Options" fields on my Plugins, aka:
public class MyPlugin : PluginAbstract, IPlugin
{
[PluginOption("This controls the color of blah blah blah")]
[DefaultValue(Color.Red)]
public Color TheColor { get; set; }
[PluginOption("...
For some really weird reason when i set the .Enabled property to false on a simple text box on a small GUI, it fires a radio buttons OnClick event and its causing lots of problems.
I have breakpointed the txtBox.Enabled = false; and after stepping over OR into it i jump straight to the OnClick event of the radio button control
Here is ...
Why does my application have the Windows 2000 style? I have the normal Windows XP - Style but the buttons and all the other controlls look like in Windows 2000.
...
I need a control that only accept HEX value in the following format:
xxxx-xxxx and x is in 0-9, a-f, A-F
So I add a MaskedTextBox and try to edit its Mask property, but did not succeed.
...
Hi,
C# question:
I have a textBox in a default form Form1 and I want to access (write on) it from a constructor in another class that is in another different file. How can I do it?
Tx in advance,
Gerard
...
I'm looking for a free control/component/library something like a rich text box for editing codes of python (or other languages.)
I like to have some features:
Highlight codes
Auto Indent
Line numbering
Defining new styles or rules of highlighting (for OpenType keywords)
Is there such a control? or I have to write my own?
...