|
|
A dialog is a top-level window, meaning it can't be parented to a container control like a TabPage . If you want to reuse a UI that you currently have in a dialog, then implement it in a UserControl that you can use both on your dialog (Form ) and your TabControl .
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
|
Many Thanks for reply.Now I did it using UserControl.
|
|
|
|
|
Hi !
iam doing a remoting application is c#. the server is a singlecall object run using remoting.configure
xml config file. there is only one client but a group of servers hosting these singlecall objects
. i make invocations by using remoteobject.getactivator method at a very high frequency to get bit map data. when the server machine is running windows 2000 professional the performance is decent but for windows xp pro the performance is very bad. the system is very slow at getting method results. any idea what could be happening. i checked
three windows xp pro machines and as many windows 2000 pro machines. the performance is consistently bad and good respectively.
any help would be great.
thanks.
|
|
|
|
|
SO is the server an XP machine? If so, then it will be slow, as XP's has a lower concurrent connection limit, and you might be creating new connections on every remoting call (error in your code), and hence the lack of speed, have a look in the eventlog (have you even?). without more details, no one could help you.
xacc-ide 0.0.12 now with C#, MSIL, C, XML, ASP.NET and HLSL coloring - Screenshots
|
|
|
|
|
hi leepie thanks for the response man. the server is xp that right. actually since iam using single call remote server objects the objects will get created and destroyed for every call i make. but the channel remains open and there is only one channel running on port 9000. i checked netstat -a for connections and i find only one open all the time on port 9000. as far as the event log is concerned i have yet to see that and post more info on this thread. need guidance.
thanks
|
|
|
|
|
|
Hi leppie !
can u please tell me how performance counters work and where i can get one to try and implement.
thanks.
|
|
|
|
|
|
hey leppie !
i found the cause of the problem man. it turned out something trivial.
actually the desktop background of windows xp is very heavy. just changing that to no background as well as changing the graphics performance enhances the speed of desktop image capture .
thanks for your suggestions anyway.
|
|
|
|
|
On a form I have two NumericUpDown controls to show "nUdFrom" and "nUdTo" values. I want to add validation code for the same, like value in "nUdFrom" should alway me less than that of in "nUdTo" ,and exactly opposite validation for "nUdTo".
I want to validate at Leave event and when Dialog close button or OK button or Cancel button is clicked. How to use validating event effectively for the same? or is there any other effective way?
More over I have 4 individual NumericUpDown controls to show Left/Right/Top/Bottom margins, how to validate them with in the permissible values only.
please guide
|
|
|
|
|
|
hi,
How can I know if any thing had been downloaded into the computer wheather it was from the internet or any other sources and how do I track the location where these downloaded files are. Your help is geatly appreciated.
|
|
|
|
|
You don't.
There are so many sources for data to come in from, you're not going to be able to monitor them all. On top of that, the source for data isn't kept anywhere in the system. Well, at least reliably. The History section of IE will tell you which website a file came from. But, if you write code to decipher IE's History, that same code will NOT work with any other browser. Each will have their own implementation of a history.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
You're telling me that it will log every file coming in from every possible source? Got a link to any docs that mention this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hi,
I need some tutorials/examples of using IExpando. Could anybody point out any URLs or whatever is helpful?
Thanks
|
|
|
|
|
|
Can anyone tell me how to acquire a run-time license specifically for the MSComm.ocx that shipped with Visual Basic 6 to be used in a C# project? I have searched both here and in the MSDN KB, I found a reference to adding a run-time license to a C++.Net project, but even that wasn’t functional.
I have a C# project in which I am using this control, and it works great in the development environment, however, when I tried deploying my application, I got the obnoxious “You-don’t-have-a-run-time-license” BS.
To anyone that can help, thanks ever so much in advance!
As for Bill, those of us using C# that MUST use serial ports would like to say, “Thanks for nothing, !@#$%^.....”
|
|
|
|
|
RelmBK wrote:
As for Bill, those of us using C# that MUST use serial ports would like to say, “Thanks for nothing, !@#$%^.....”
I'd like to see you writing a framework for a modern OS and supporting every feature with your first release. Regarding your problem, I don't think using a COM component to access the serial ports is a good idea as they only encapsulate the Win32 API and there actually are serial communication classes written in C# (Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications[^] for example). Besides, the .NET Framework 2.0 contains a class called SerialPort[^].
Best regards
Dennis
|
|
|
|
|
ok,
I have a variable, of which I need to escape its contents. the problem is, I don't want to escape out the variable, but I do want to escape out its contents as I said earlier. also, the reason I have to escape the variable, is because it will have potentially these symbols: ",;@' . this is a problem, because it will mess up the symbols used in my code to ignore the variable's string value (containing those symbols.) how do I do this? I don't want to use the escape way, because that doesn't work. any ideas? I'm totally stuck.
also, how do I insert the ' symbol into a textbox?
thanks for the help,
Stephen
|
|
|
|
|
I can't really understand your question? Can you give a short sample program that demonstrates it?
And doesn't textbox.Text += "'" work?
Regards
Senthil
My Blog
|
|
|
|
|
oops, yeah, "'" works. I meant how to insert the " symbol.
int current = 1;<br />
int lines = richTextBox1.Lines.GetLength(0);<br />
if (lines < 3)<br />
{<br />
MessageBox.Show("You need to have atleast three lines, otherwise this application is useless", "Useless he he ;)", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);<br />
}<br />
else<br />
{<br />
richTextBox2.Text = '"' + richTextBox1.Lines[0] + '"' + " " + '+' + " " + '"' + @"\r\n" + '"' + " " + '+' + " ";<br />
while (lines > 2)<br />
{<br />
richTextBox2.Text += '"' + richTextBox1.Lines[current] + '"' + " " + '+' + " " + '"' + @"\r\n" + '"' + " " + '+' + " ";<br />
current ++;<br />
lines --;<br />
}<br />
if (lines > 1)<br />
{<br />
richTextBox2.Text += '"' + richTextBox1.Lines[current] + '"';<br />
}<br />
}
what happens is, the user inputs text into the richTextBox1, and when the user clicks a button to run the above code, the code is sent to the richTextBox2. the problem is, all the code must be on one line, formatted properly on that line, and display the formatting (text) necessary for the outputted code to be useable in another application where there could potentiall be hundreds of lines of text, without manuall writing all the "\r\n"'s to format it. the problem is, what if the person puts in "\r\n" into the input richTextBox1? or what if they put in a " symbol or a ; symbol. the contents of richTextBox1 are formatted in the code above, but the problem is, where you see "richTextBox1.Lines[current]", the symbols that user inputted as described above, screw up the formatting when ouputting the text to richTextBox2.
like for instance, say I put the " symbol in richTextBox2. it will then think it has reached the end of the string to be formatted, when that is not the correct " symbol to stop at.
please help, this would be a very helpful application to people I think, atleast for me when I want to format many paragraphs so I can just paste the code for an application that needs text formatted to a textbox in such a way.
the current code I have works like a dream, except it messes up as described above when these symbols are inserted:
;
'
"
+
and possibly a couple others.
if there is no easy way you can think of, my idea was to use a regular expression, and select and replace all those symbols with "'", etc.
the problem with this is, """ doesn't work to place the " symbol to a string or insert it into a text box as text. same with the ; and other symbols. how do I do this?
hilf mir!!!,
Danke schoen,
Stephen
|
|
|
|
|