I need to include the asterisk as an allowable entry on a text box.
How can I test for this key under the KeyDown event regardless of the keyboard layout and language?
Ignoring the numeric keypad, with the Portuguese QWERTY layout this key can be tested through Keys.Shift | Keys.Oemplus. But that will not be the case for other layouts...
How do you output text in a windows form app? I have a List like this:
List<float> List;
It has a bunch of numbers in it...I would like to output them in one column. Can you output them to a richtextbox or a textbox?
...
WHy is this code only outputing one element form the list?
private void button3_Click(object sender, EventArgs e)
{
Tasks dosomething = new dosomething();
dosomething.calculate();
foreach(float num in dosomething.Display())
{
richTextBox1.Text = num.ToString();
}
}
Wher...
hi all
i just want to alert when user hit "enter" key.
i tried this one in keyup event,
If e.KeyCode = Keys.Enter Then
MsgBox("msg")
End If
it didnt work, is that wrong ?
thx
...
I am using CWinFormsControl to host a Windows Forms UserControl in an MFC dialog. I have set the property DoubleBufferd to true. According to the docs this results in AllPaintingInWmPaint and UserPaint to be set to true too (not sure if this matters). How can I force (or fake) the UserControl to draw its background transparent?
This is ...
I have a property grid control where I want to be able to display a SaveFileDialog as the user is in the process of exporting data to a new file. I can easily hook up an OpenFileDialog with a FileNameEditor but there doesn't seem to be an equivalent class for saving files.
Is there an existing class that I can specify in the System.Com...
I am building a PDF Viewer using the Atalasoft DotImage libraries. They have a PDF Viewing component, but it doesn't support the Acrobat style PDF continuous layout, I have to display the pages a page at a time.
I need to build sort of a virtualizing scrollable control which has probably 3 PDFViewers in it, the current frame, and the on...
Hi,
Is there a way to check with calls into my web-application API came from my distributed client???
That is if I have both a thick client (windows forms client say) and the server side web application that exposes a HTTPS interface (assume user puts username/passwork into the client configuration for authentication), is there a way t...
hi there,
I have a .NET application containing a WinForm. This WinForm contains an unmanaged ActiveX control and a few other controls. This application works fine in standalone mode. Now we want to publish some kind of interface so this Winform can be used from unmanaged C++/MFC applications using Interop functionality. The client appli...
I have a property of type IEnumerable<SomeClassIWrote> in a user control. When I use this control in a GUI, the .Designer.cs file contains the line:
theObject.TheProperty = new SomeClassIWrote[0];
Which for some reason causes a compiler warning:
Object of type 'SomeClassIWrote[]' cannot be converted to type
'System.Collections.Generi...
I have a source bitmap that is 1x1 and I am trying to take that image and draw it to a new bitmap. The source bitmap is all red, but for some reason the new bitmap ends up with a gradient (see image). Using the code below, shouldn't the new bitmap be completely red? Where is it getting the white/alpha from?
private void DrawImage()
{
...
I'm trying to make a TextBox with a button on the right side.
My code:
public partial class TextBoxButton : TextBox
{
[Category("Button")]
[Description("Button in textbox")]
public Button Button
{
get
{
return this.btn;
}
set
{
this.btn = value;
}
...
I'm using a ContextMenuStrip to show some options to the user when they mouse over cells in a table, by calling its Show(Control, int, int) method from within a the table's MouseMove event, passing the table in as the Control parameter.
If the app isn't active, everything works as intended; but if the app is active, then the MouseMove e...
I have a winform application that i desiged in VS2005 that works fine in windows 7 x86 however when i try to install it on x64 I get the error:
"You have to run the 64-bit version of DPinst.exe on this machine. Contact the vendor that provided you this package. "
In VS I have the build set to 'Any CPU' which should handle 64bit. I cant...
For a Winforms application, I'm looking for a control which is able to show text and supports individual line colors (fore and background colors per line).
For instance, I'd like to have line 1 with a green background color and line 4 with red.
...
We use windows forms and custom user controls and I would like to be able to rotate the panel hosting the userControl in a particular form. I have seen similar functionnalities with WPF but can't use it for the moment. Is it possible to achieve the rotation of a panel and its children using possibly built-in .net methods or GDI+ ? I hav...
I have a control which extends the DataGridView control. I am overriding the ProcessDialyKey event and throwing and event of my own, which the container form can respond to as the user types in a cell.
The problem I am finding is that when I fire my "CellEditKeyPress" event from within the DataGridView's ProcessDialogKey method, the Val...
I need your help to clarify whether form work exactly like object?
If I create an object,obj2, from another object,obj1. the obj2 will be disposed on obj1 dispose.
However it is not so with forms.
check out the case & pseudo code give below.
I have three forms; form1, form2 & form2.
form1 is the startup form.
form1 will create &s how...
Hi
Does anyone have a solution for the color bleeding when using a StateImageList with a Windows Forms TreeView?
Using the same ImageList with assigned to the TreeView's ImageList property, results in correct rendering as can be seen by the following image.
The state images are left, normal images are right. All images are sourced f...
Hi, I've been having trouble with memory leaks with the SWF-ToolStrip.
According to this http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=115600# is has been resolved. But here it seemes not.
Anyone know how to resolve this?
...