|
I like your code. That's text book use of regex.
/\ |_ E X E GG
|
|
|
|
|
It really is? I haven't used regex in complex programs so far.
Thanks!
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hello All:
I am trying to find a way to send email notifications through my windows service. Can someone please help me with this? Thanks a lot.
|
|
|
|
|
What is the best way to secure the Configuration Settings (app.config and web.config). It seems that one way to do it is to encrypt the contents of the Configuration Settings, especially the database access string, using a two-way encryption algorithm. This encryption can either be performed from our own code (using the Cryptography library) or through the Configuration Settings App Block. However in both cases we have to deal with an encryption key. Anybody that can get access to this key will be able to decrypt the encrypted strings. The question is where to store that key. Storing the key in the code does not seem to be a good idea, especially since it is easy to read the code contents through the disassembler. Does anybody know how to protect that encryption key or any other way to protect the configuration settings.
|
|
|
|
|
Hi,
I have a main form in my application and this form has a button. When the button is clicked, a new form is loaded - form A. Form A has another button, when clicked it loads form B. When form B is loaded I need the name (header) of the main form to change to included the name of form B. Since main form's properies are private, is there way of changing main form's text when clicking event occures in form A. I guess I can define a public property in the main form class to set it's text, is there any other way?
thank you
Felix
|
|
|
|
|
felimonchik wrote:
is there any other way?
Sure, I'd just pass the MainForm instance around to each form constructor.
FormA formA = new FormA(this);
...
public FormA(MainForm mainInstance)
{
mainInstance.Text = "you've loaded form A now!";
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Who is Jewish, the Trivia Game!
Judah Himango
|
|
|
|
|
Is this an MDI application or a group of SDI apps? Have you looked into the Model-View-Controller pattern?
|
|
|
|
|
It's an MDI application.
Thanx
|
|
|
|
|
I think Text property of a windows form is public. So u can directly assign to it.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Hi there,
Does ne1 know what type of control is used in Skype chat for the Contacts?
How can i mimick it? ie. There is a name and when i click on it it expands revealing more details?
Thanks a million
|
|
|
|
|
Hai
Datacolumn col;
col=new DataColumn();
col.ColumnName = "Remarks";
ds.Table[0].columns.Add(col);
I have created the Datacolumn Dynamically by using above code i need to place the datacolumn As First in Dataset DataTable. Is it Possible . help me
|
|
|
|
|
I'm not sure this question belongs on this forum but I'll try it here.
I would like to query Active Directory for all of the Exchange Servers that it is aware of. I'm kind of a beginner. I believe there is only one Active Directory per domain. So, hopefully there is a way of querying AD for all the Exchange Servers in that domain.
How do I do it?
I've tried using system.DirectoryServices. It doesn't seem to give that to me?
Got any ideas?
|
|
|
|
|
hi to all,
i have a listview control with the property checkboxes set to true, in this listview i have two columns and the second column is editable.
on doubleclick event i autorise the editing on the second column only, but when the user doubleclick in the cell the state of the checkbox change (from checked to unchecked and vice versa)
all i want is to check and uncheck the check box of each item only if the user made a single click in the check box. in other word i want to desactive the checking and uncheking on doubleclick
best regards and thanks in advance
fady
|
|
|
|
|
I have received the following error a few times now :-
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at test.tmrTimersTimer_Elapsed(Object sender, ElapsedEventArgs e) in C:\test\test.cs:line 1717
I have read how to enable JIT Debugging (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxtskEnablingJust-in-TimeDebuggingForWindowsForms.asp[^]).
I have created MyApp.exe.config, machine.config with the following
?xml version="1.0" encoding="utf-8" ?<br />
configuration<br />
system.windows.forms jitDebugging="true"<br />
configuration
NOTE < and > have been removed to allow posting
I have placed them in the same folder as my .sln file and also in the same folder as .exe. But it does not seem to work. By the way I am using a setup project to install this applicaiton is there anything special I have to do in the setup project to allow JIT debugging on the installed machine?
Anyone have any idea what I am doing wrong? I would like to enable JIT debugging permanently.
Thanks,
Liam
|
|
|
|
|
Hello gurus,
I would like to know how to avoid the "blur" effect when stretching an image with the DrawImage method of the Graphics class?
When I double the size of my image I wish the pixel's size being doubled. Is that possible?
If so, how? can I have an example please?
Best regards.
There is no spoon.
|
|
|
|
|
Hello
Yes, it is possible. Look at Gpaphics.InterpolationMode property. You need to set it to InterpolationMode.NearestNeighbor before drawing your image.
With best regards,
Andrew
|
|
|
|
|
ok, this works
Thanks
Best regards.
There is no spoon.
|
|
|
|
|
How do I get the WinForm to recognize my generic class (part of the project)
when a button event is fired in the WinForm?
class GenericClass
{
private int x;
private int y;
GenericClass(int _x, int _y)
{
x = _x;
y = _y;
}
//On the WinForm I want to load x and y above with input from two text boxes
OnButtonAdd
{
//WHAT CODE GETS THE TEXT BOXES TO SET x AND y? HOW TO INSTANTIATE
// A GenericClass OBJECT AND THEN ASSIGN THE NUMBERS IN THE TEXT BOXES?
//KEEP GETTING COMPILER ERRORS.....
}
Many Thanks In Advance
|
|
|
|
|
You'll have to either convert the x and y variables in your GenericClass tyo public (bad idea) or write public methods to set those values (better idea), or write pulic Property wrappers for set/get those values (best idea).
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your answer. I have Set and Get properties for my GenericClass
x and y.
My main problem is that I keep getting compiler errors drying to declare
a GenericClass object inside the code for the AddButton event...
i.e.
OnButtonAdd
{
GenericClass genClass = new GenericClass(); C.E.
GenericClass genClass = new GenericClass(2.0, 2.0) C.E.
GenericClass genClass = new GenericClass(double _x, double _y); C.E.
What stupid thing am I doing wrong? Thanks again
}
|
|
|
|
|
SkunkedWorks wrote:
{
GenericClass genClass = new GenericClass(); C.E.
GenericClass genClass = new GenericClass(2.0, 2.0) C.E.
GenericClass genClass = new GenericClass(double _x, double _y); C.E.
What stupid thing am I doing wrong? Thanks again
Everything except passing to integers:
GenericClass genClass = new GenericClass(2, 2);
In the first list you posted, you didn't pass any parameters. This fails because you don'
t have a constructor that takes no parameters.
The second line, you're passing in two floating point values. You don't have a constructor in your class that takes Single, Double, or Decimal.
The third line fails because, well, you can't declare variable as you pass them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
I just started writing a simple IRC client to learn the basics of network prorgamming in C#.
I read several articles about this topic, but I still don't know which method to use:
- asynchronous sockets
- poll()
- select()
- threads
What would you suggest? My client must be capable of connecting to multiple IRC servers without blocking the program.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Ok thanks, I realised it using async sockets and a thread for the Receive() call. Works fine.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hello,
I have :
private void dataview_ServicingColumnChanged (object sender, DataColumnChangeEventArgs e)<br />
{ <br />
}<br />
Is there a way of getting the dataGridTextBoxColumn name through e argument? And I don't mean the e.Column.ColumnName, but the (Name) property that is unique. Any ideas.
Thank you
|
|
|
|