|
Hi all
I have bound a textbox to a field in a table. The problem is however that databinding does not occur until either control gets destroyed or it text is changed by moving to the next element. Now when I want to save the dataset to xml, I have to move to another element, before the changes are reflected.
How can I manually force databinding on a textbox?
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
OK found answer, before the page even reloaded
control.DataBindings[0].BindingManagerBase.EndCurrentEdit();
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
I have one treeview and one toolbar in my form.The toolbar has TOP DOCKING and I want TreeView has Left Docking.When I set the its docking it takes all of the left side of the form,and the form set the TOP DOCKING of toolbar at the second,so it does not take all of the top of the form and it start after hte TreeView,how can I change this,so Toolbar takes all space at the TOP,and TreeView start below it with Left DOCKING?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Make sure the toolbar is added to the forms control collection before adding the treeview.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Hehehe..
Well,I had to add TreeView BEFORE toolbar,but anyway now its right.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Mazdak wrote:
I had to add TreeView BEFORE toolbar
Now that is so dumb (not you, but M$)
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
hehe , ms didnt do anything wrong..
r-click one of the controls and choose send to back or bring to front and see what happends
//Roger
|
|
|
|
|
ja ja It's my way or the highway
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
Its not the correct way.With this will it will come to front,but it will cover another control.It is not the solution for my problem.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
i am finding something like CWinThread in C# to Create multi UI Thread.Can anybody help me?Thanks!!! sdfasdfasdf
|
|
|
|
|
Would you please delete your extrs messages?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
i am finding something like CWinThread in C# to Create multi UI Thread.Can anybody help me?Thanks!!!
|
|
|
|
|
Could you not post it 4 different times?
any idiot
can write haiku you just stop
at seventeenth syl
-ThinkGeek Fortunes
|
|
|
|
|
i am finding something like MFC's CWinThread class in C#,i need creat muitl UI Thread.Does anybody kown and can tell me?think you every much!
think you every much!
|
|
|
|
|
i am finding something like MFC's CWinThread class in C#,i need creat muitl UI Thread.Does anybody kown and can tell me?think you every much!
|
|
|
|
|
Have you tried using the System.Threading namespace and the System.Threading.Thread class? I believe those will give you what you want.
any idiot
can write haiku you just stop
at seventeenth syl
-ThinkGeek Fortunes
|
|
|
|
|
We had HTMLView in MFC,so we could browse web or HTML page in a view in a application(I think it refers to IWebBrowser ).Now do we have something like that in C#?I want my application show HTML or ASP pages inside itself,not open with IE.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Mazdak wrote:
We had HTMLView in MFC
I hope you don't think the MFC CHTMLView provides a full fledge rendering engine by itself. CHTMLView is only a IE wrapper, just like the IE wrapper you get by dropping the Web browser control onto a Windows Form.
Mazdak wrote:
I want my application show HTML or ASP pages inside itself
I don't know if that's me, but that means pretty much nothing. Last month, ASP was still a server-side scripting engine providing facilities to build web pages that, once built, are sent to the client browser.
|
|
|
|
|
.S.Rod. wrote:
CHTMLView is only a IE wrapper, just like the IE wrapper you get by dropping the Web browser control onto a Windows Form.
Yes,that works. Thanks. But I have a problem with it.When I click a link inside the control it open a IE and want to browse it in new window.Do you if I can prevent it?
.S.Rod. wrote:
I don't know if that's me, but that means pretty much nothing. Last month, ASP was still a server-side scripting engine providing facilities to build web pages that, once built, are sent to the client browser.
Yes,you are right,I know it.I didn't want to browse ASP page in my application.It was just a mistake,I was typing quickliy and didn'r mention it.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Mazdak wrote:
Do you if I can prevent it?
Yes. Override OnNewWindow2 and OnBeforeNavigate2 and make sure to assign true to the cancel arg : e.Cancel=true, where e is the event handler arguments. This article[^] also shows how to properly handle new windows : in fact, you can create a new Form instance at such moment and create a new browser control instance there, so it behaves right.
|
|
|
|
|
Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I just downloaded the 65MB C# Direct X SDK (quite a lot for a 56k), installed it, rebooted, fired up VS.NET ann.....
None of the Direct X references were there. I have the DX Redist Runtime and .NET framework installed. Do I need to download the huge 'full' SDK just for some dlls?
I don't see how a few samples and some XML files can cause a 65MB download without providing the core files needed to develop.
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
Jonny Newman wrote:
I just downloaded the 65MB C# Direct X SDK (quite a lot for a 56k), installed it, rebooted, fired up VS.NET ann.....
I believe the DirectX 9 SDK is over 200MB in size. I don't know what this 65MB package refers to.
|
|
|
|
|
.S.Rod. wrote:
I don't know what this 65MB package refers to.
The 220MB file is the FULL SDK, that includes the C++ headers etc...
I got the 65MB 'C# Direct X SDK'.
I was under the impressons that the C# SDK would have everything minus the C++/VB/J# specific stuff. I'm 74% into the Dev Runtime. if this isn't it, i'll have to leave it overnight downloading the full SDK.
I thought the term 'SDK' mean't everything you needed to develop apps for this platform. They should have refered to it as "Direct X Documentation and samples" because thats all I got in this.
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
Probly the redistributable.
any idiot
can write haiku you just stop
at seventeenth syl
-ThinkGeek Fortunes
|
|
|
|