|
Hai all,
I want to go through the naming guideLines for the windows form controls.
I want the prefixes for alll the controls.
Please give me link which can provide all this stuff.
sukanyavarma
sukanyavarma
|
|
|
|
|
Hi,
the case:
Let say i have browser in my window form. This program will initially direct user to a website...
it will dial the ISP number and send the username and password automaticaly if the connection to ISP
doesn't exist...
Let say my modem is using COM1...how am i able to establish this connection...
I'm really blank..please help me...
-Khamal-
|
|
|
|
|
Hi there,
Is there anybody who know an easy why to display a string (2parts) in two different colors? It should look like one word, without any unnessacary space between.
Thanks for ideas!
Frank
|
|
|
|
|
Use MeasureString on the graphics object to find out where the first string ended, so you know where to draw the second one.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi everybuddy,
We are developing a project in which a set of various assemblies should be loaded into memory and run.
We have two strategies to do that:
1. Starting each assembly code in separate thread
2. Starting each assembly code in separate process
The problem is that I can't find a good reason for one of these ways, while my knowledge about important differences between 'Process' & 'Thread' is not complete.
In the topic I am looking to find these answers:
1. In the case of threads, can some error in code running in one thread cause problems for execution of other assembly codes in other threads, and even prevent them from running? if yes what type of errors may cause this situation?
2. what would happen if operating system, managed all applications in set of threads instead of set of processes?
Thank you so much for your note and any help
---
"Art happens when you least expect it."
|
|
|
|
|
Basically, there exists a relation one-to-many between processes and threads. That is, a process can host one or more threads but the inverse is not true.
All the threads inside a process share the same memory space, while each different process has its own heap.
Threads are in general a lighter solution that processes when you need concurrency, but not isolation of the memory space.
As for your questions:
1: If one thread throws an unhandled exception your entire application should stop. In the case or processes, in one 'crashes' the others keep running. If you implement a good exception handling mechanism, using threads should not be a problem anyway.
2: Using threads inside an operating system means having all the system memory in common to all the application running inside the system. This means that every piece of code can read and write memory of other applications. In other words, applications would not be isolated, the failure on one program can lead, through memory violations, to the failure of the entire system. Also, there would be no way of preventing malicious code to write on memory areas owned by other threads.
Hope this was useful
|
|
|
|
|
A very complete reply,
the only thing I can add is a "Thank you" and that is all
---
"Art happens when you least expect it."
|
|
|
|
|
Hi,
I am using property grid to allow user to set the property of the control
in a window form, but there are so many fields in the property grid
control, how can I save the all the settings of the property grid ?
Are there some serialization function for the property grid control ?
Thanks
|
|
|
|
|
You could use reflection to loop through every property on the control in question and persist the setting.
This could get pretty complex with collections etc EG the ListView controls column collection.
You may want to take a look at the article on this site entitled "Bending the .NET Property Grid To Your Will". This show you a way to limit the number of properties exposed in the property grid. This may be a more viable approach.
|
|
|
|
|
How do I, in ASP.Net pages, put the code on the same page, rather than in a .cs file?
|
|
|
|
|
Doing so throws away most of the benefits of asp.net, but just place the code in <% %> blocks.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yeah, I am just using this to redirect.
|
|
|
|
|
Any of the functions that you would normally be put into the code behind can also be put into a section in the .aspx page. We do this for a launching page here at work and have it where we can just edit some of the arrays and data in that script section and put it out on the server and it does not need to be compiled.
Steve Maier, MCSD MCAD
|
|
|
|
|
I have been doin C# for quite some time. When i am doing some console apps for my course assignments i use
System.Console.Read();
as a replacement for the getch() that we used to do in C for making the cursor stop. so that the output window doesn close before i can see the output.
It works at times and at times it doesnt!
Please help me out folks cuz i have ended up using timers for a silly thing like that!!
Rahul
|
|
|
|
|
Remember that console input is buffered, so if there are character in the buffer that were not yet consumed by your app, Console.Read will return immediately, returning the first character in the buffer. Unfortunately, I don't know of any way to clear the buffer using managed code, fflush(stdin); works for C++.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Starting the project without Debug in VS2003 will prevent the console from closing until you press return.
Also, have you tried Console.ReadLine()? This will only return when the user hits Return.
|
|
|
|
|
We are searching for a .net component for image transitions. You could find many solutions/board entries for alpha blending, but we could not find any article/module which consist a easy way to handle different transitions like XShow40.oca.
Many thanks for your help!
Volker
Volker Borm
www.frictionless.de
|
|
|
|
|
What do you mean ? Do my image processing articles help ? If not, what do you want ? I'm happy to help, and I'm also available for contract work...
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear Christian, we want to make a slideshow with images. The user can use different transition modes (blocks, stripes, fade, ...) The activXControl XShow40 from www.Softuarium.com offers 100 different transitions. We try to develop different transitions with matrixe operations in C#, but we have performance problems with large images. Please let me know if you can help us.
Volker
Volker Borm
www.frictionless.de
|
|
|
|
|
Hi again - I'm sure I can help you. In the first instance, matrix operations are pretty limited, although they can do some things very efficiently. I'd have to say that working smoothly on large images would be a challenge, I'd assume that you would create a control for this, so that you only draw the parts of the image that are changing, not creating a bunch of bitmaps for each step of the animation. If you did that, and used direct pixel access, as per my articles, then you should be able to do any transition you wanted, in my opinion.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear Christian! Thanks for your reply. We will try this!
Volker Borm
www.frictionless.de
|
|
|
|
|
Hi all,
I'm trying to write some sort of forum with "forumcode" like snitz. To quote some text, user can surround it with [quote]...[/quote]. To do this I have written this regex:
@"(?<quo_iniTag>\[quote\])(?<quo_text>.*)(?<quo_endTag>\[/quote\])"
and the handler is something like this:
if(m.Groups["quo_iniTag"].Value.Equals("") == false && m.Groups["quo_endTag"].Value.Equals("") == false)
return "####"+m.Groups["quo_text"].Value+"###";
But, sometimes (not always), it hangs forever on the method Replace.
Can you help me please ?
Thanks in advance !
----------------------
!happy coding!
|
|
|
|
|
Can you give an example of a string that causes the regex to hang?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Not it is a big deal, but I would clean the code up a bit by using non-capturing groups for the [quote] and [/quote] because you just want to see if they are there, but don't need them. So the regex string would be:
@"(?:\[quote\])(?<quo_text>.*)(?:\[/quote\])"
if ( m.success )
{
return "####"+m.Groups["quo_text"].Value+"###";
}
then I would change the if statement to a while loop in case the user has more than 1 quote block in a line
string [] s = new string[];
int i = 0;
while ( m.success )
{
s [i] = "####"+m.Groups["quo_text"].Value+"###";
m.NextMatch();
}
return s;
But please send an example of the string that causes it to hang
|
|
|
|
|
my reg ex string did not post correctly it should be
@"(?:\[quote\])(?<quo_text>.*)(?:\[/quote\])"
|
|
|
|