|
Malcolm Smart wrote: 1....2....3....4..... slowly Pete.....
I know - I should spend more time on my deep breathing exercises. This is what happens when you've just spent 2 hours having 1 filling done. Don't post angry - and don't post when you're in pain.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi
Any body help me to how to create a windows custom control(not usercontrol) having one combobox, label and button
Like below
[Lable]Connect [combobox]ServersList
below one button Click to connect
its urgent help me plz
kesavan
|
|
|
|
|
NK7 wrote: [Lable]Connect [combobox]ServersList
below one button Click to connect
You can achieve this by creating one UserControl that receives several parameters. Once you have created a UserControl, and build the solution you will have your control in the toolbox. You can drag and drop it anywhere in you form.
Another way is to create a new Windows Control Library Project, create all your user controls there and add the controls to the toolbox specifying the DLL file.
You can also check this link
hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
How can set the opacity of the Panel?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
There is no such direct property for Panel control to handle its opacity.
Although you may set its back color to Transparent, it will allow you to make Panel control transparent.
Such as –
Me.Panel1.BackColor = Color.Transparent
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hello,
Example for Transparency:
If you have inherited a panel from System.Windows.Forms.Panel,
you could try out adding this code.
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{}
Maybe it fits your needs!
It doesn't support DoubleBuffer.
All the best,
Martin
|
|
|
|
|
public bool resultado() {<br />
...<br />
...<br />
...<br />
return true;<br />
}
let's say that i'm created a Thread and i run the resultado method.
How i can capture the result? msdn didn't help me (and, of course, stop the Thread)
|
|
|
|
|
|
A thread terminates when it has no more code to execute (it gets to the end of the method you set as it's start method).
You REALLY need to understand how threads interact or you will just spend your entire time debugging things you do not know anything about. Read some tutorials, for example this one:
MSDN[^]
Generally speaking you communicate with one of the following methods:
1) Communicate with Events (ManualResetEvent, AutoResetEvent). This is typically used to signal things like "data inserted in queue", "terminate" etc. The advantage is that a thread can wait for an event to be raised without consuming CPU resources.
2) Shared data protected by locks. For example a queue one thread is inserting in while another thread reads, or the tread setting a value on a "result object" passed to it. Simple datatypes (int, bool etc) can be marked by the keyword "volatile" instead of using a lock for each access.
3) Invoking from your subtread to the main thread (look at the Dispatcher object, or the old WinForm.Invoke stuff). This allows updating for example a WinForm userinterface where only the GUI thread is allowed to change control values, but is also a pretty sollid way to ensure data is only manipulated on one thread which means you do not need to do locks (as long as you make sure the worker thread is always working on a copy of the data).
Instead of setting a terminate event you can allso raise a ThreadInterupt exception, but please notice a thread will NOT interrupt while executing your code - it will ONLY interrupt from a safe state, like waiting for an event... and in that case you can as well have it wait for a terminate event as well.
|
|
|
|
|
Thanks You
i'm working with basic Threads, like
Thread obj = new Thread(method);
but now i need to expand my brain =)
reading msdn =)
|
|
|
|
|
C# has XmlDocument and other xml operate object.
has it Html operate object? such as XmlDocument.
use in WinForm.
|
|
|
|
|
check SHDocVw.dll (Microsoft Internet Controls)
You can use Document property WebBrowserClass to get the HTMLDocument.
Hope this helps you.
|
|
|
|
|
where is SHDocVw.dll in?
I want to use it in ClassLibrary.
|
|
|
|
|
Basically SHDocVw is a com dll.
Add following references...
.NET -> Microsoft.MSHtml
COM -> Microsoft Internet Controls
Then You can use MSHTml.HTMLDocument object to access various properties of HTML like activeelement, baseurl, childnodes etc...
|
|
|
|
|
I have a html Fragment:
"{font face=宋体 color=#FF00FF>JasonJason
|
|
|
|
|
Can you just try out using mshtml.HTMLDocument class?
I remember using it for somewhat similar purpose.
Or else if possible mail me your file I will look if I can do any thing.
Thanks...
|
|
|
|
|
HTML is a page description language, not a programming language, so it doesn't have any objects at all.
Javascript has some objects to handle XML.
google "javascript xml"[^]
---
single minded; short sighted; long gone;
|
|
|
|
|
I want to get some html's Element's text value, and some Attribute value.
Html structure as follows:
Textjason
Textjaosn
....
img and text irregularly display.
I want font-Attribute,text and src's value.
how to do is better?
|
|
|
|
|
I can only see half of the code that you posted. Use the "Ignore HTML" option when you are posting htlm code.
---
single minded; short sighted; long gone;
|
|
|
|
|
<font size=2 face=宋体 color=#FF00FF>
jason
<img src='file:///E:\\Projects\\FreeIM\\FreeIM\\bin\\Debug\\face\\2\\0.gif'>
jaosn
<img src='file:///E:\\Projects\\FreeIM\\FreeIM\\bin\\Debug\\face\\2\\1.gif'>
....
</font>
|
|
|
|
|
That is not valid XML code.
It looks like HTML code. Where do you get it from and how are you trying to use it?
---
single minded; short sighted; long gone;
|
|
|
|
|
I have some UserControl with 4 button.
This userControl is set on some Form.
I call the method ShowWindow to pop up the Form.
In my form i have 6 button that one of them is the default button - but in each time i call the ShowWindow i see that the default button is different from the button that i define.
If i go to other userControl and then back to the first userControl - i getting the right default button.
Why i can't set the default button to be as i want ?
Its happened only on specific UserControl - other UserControl that i wrote work fine.
I really need help.
Thanks.
|
|
|
|
|
Have you tried to use Focus method on form visible changed event?
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
I try to use Focus method on the Visible change event, and also on the Constructor, and also in alot of other places.
|
|
|
|
|
I have temprory table. i have using grid view.
all rows in show in grid view.
when temprory table convert to datatable.
I want that particular girdview rows.cells ? how will be pick and store a variable.
Please help me
|
|
|
|