|
|
Look at this pages and its will very useful for you:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=523
Enjoy,
Mosquets
|
|
|
|
|
Hi,
when I create some user scope or application scope settings in assembley which is used as windows library, xml document with settings is generated but I`m not sure what to do after that. Because application uses only default settings which where generated to properity class. When I change any setting in that xml file,they are ignored and app still uses its default values. Can anybody either help me, or point me to some article explaining how to set up windows library settings.
Thank you
|
|
|
|
|
The settings are in the app.config file? You have setup the databinding for these controls correct? Do you want the changes to show up as they are changed or when the app restarts?
|
|
|
|
|
App.config is generated for .exe file but what about if I create class library and reference it. Shoud I manualy copy settings for class library to app.config or is there any other way. I dont realy understand the point of settings designer for class library if those settings are not generated.
|
|
|
|
|
You can add an app.config to your library project. This will produce, as an example, mylib.dll.config. If your library has Windows controls though any settings would be stored in the app.config when you bind the control to the application settings.
I guess I'm not sure what is your having difficulties with.
|
|
|
|
|
I try to explain my problem. I add, say, string testString whith default value "abcd" in settings designer of class library test.dll. The string is accesible over Properities.Settings class.
It has its default value "abcd" which is generated as an atribute and compiled into library. Now the libary generates test.dll.config file and it includes the testString element. When I copy this test.dll.config to application directory with my class library and change value of testString element to "dcba" and restart application it still uses its default value "abcd". And although that Properties.Settings.testString property is writtable, when I change its value in program and call Save (or there is something like that)on Properties class it will not save it to the test.dll.config. Should this be working and there is some other mistake I'm doing or is this procedure wrong. Thank you
|
|
|
|
|
Ok I understand now.
I made a test library with a user control containing a label, textbox and button. Everything seems fine to me.
private void button1_Click(object sender, EventArgs e)<br />
{<br />
global::LibControls.Properties.Settings.Default.LabelText = textBox1.Text;<br />
global::LibControls.Properties.Settings.Default.Save();<br />
global::LibControls.Properties.Settings.Default.Reload();<br />
}
|
|
|
|
|
Ok, I will try to find out what I'm doing wrong. Thanks for help
|
|
|
|
|
I just want to know can i call a webservice directly from the c# application
through soap,without using the proxy class created when we add the web refernce to the
webservice.
The issue is that the proxy sometime take more time to invoke the webservice method and we have the time constraint in certain cases.
Thanks
Amit
|
|
|
|
|
You can always create a webrequest to the webservice yourself. But you have to manually create the text to send and parse the response by hand. I don't think that's going to be any faster.
Another way to 'speed things up' is to communicate with the webservice using asynchrone methods.
This doesn't make it faster, but the app stays more responsive.
WM.
What about weapons of mass-construction?
|
|
|
|
|
I doubt the proxy call is much overhead compared with the webrequest itself. If you have a very strict time frame considering doing a webservice callback.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Do any of the XmlReader classes provide the ability to read comments from the file, or will I need to write a custom parser to do this?
I'm refering to this style of comment:
<-- Comment -->
|
|
|
|
|
Yes, every XmlReader can read XML comments. Take a look at the XmlReader.Read()[^] method. The node type will indicate that it's a comment and you only have to get the Value .
Logifusion[^]
|
|
|
|
|
Thats not a valid Xml comment, valid Xml comments have an exclamation mark after the opening brace
<!-- Comment -->
---
How to get answers to your questions[^]
-- modified at 11:10 Thursday 20th July, 2006
|
|
|
|
|
|
Hi, does anyone know how to create a password filter using C#? I've seen the SDK docs and looked at the sample, but I really need to create it in a managed environment (despite Microsofts recommendations).
Thanks in advance!
Kieron
|
|
|
|
|
What do you mean by password filter?
|
|
|
|
|
Hi,
Check: http://windowssdk.msdn.microsoft.com/en-us/library/ms721882.aspx
|
|
|
|
|
I understand, but can't offer anything to you, sorry.
|
|
|
|
|
Hiho!
I would like to know how (if at all possible) I can prevent an alert() box to show up.
I am using the AxWebBrowser to display an HTML. Works great, but if there is a javascript in the HTML showing an alert(), the application is waiting for the user to click on that alert. I don't want to disable the javascript, just the alert box.
Thx,
GhoulLord
|
|
|
|
|
|
Thank you for the information, but I have problems to find what I am looking for.
I had a look at 05_CIF_Browsing.DOC. But unfortunately I found nothing that would solve my problem. Could you please give me a more precise hint where to look?
Thx,
GhoulLord
|
|
|
|
|
Not really, sorry - I thought it was outlined in that document.
Essentailly, this is part of the Local Machine Lockdown stuffs from XP SP2. If you search the MSDN for that phrase "Local Machine Lockdown", you should find some relevant
information ...
|
|
|
|
|
Hi,
I'm trying to create a MDI window which has a SplitContainer, on the left SplitterPanel a treeview and when a node is double clicked a Form should open in the right SplitterPanel. I'm trying to make the Form a child of the MDI Window and also display it within the right SplitterPanel. The problem is that, when I double click the TreeView node, the Form which is added to the right Splitter Panel is not added as a child of the MDI and it also does not have focus. I can move the Form window and access its controls, but it does not retain focus. This is the code I used to add the Form ( done within the Constructor)
// g_mdiform is a instance of the MDI window
// g_mdiform.WorkingPanel returns the right SplitterPanel
this.MdiParent = g_mdiform;
g_mdiform.WorkingPanel.Controls.Add(this);
I tried the following code within the Mdi Window class as a test.
Form frm = new Form();
frm.SetBounds(100, 20, 100, 100);
frm.MdiParent = this;
splMDIPane.Panel2.Controls.Add(frm);
frm.Show();
The above problem still exists.... If anyone knows how I can resolve this, please let me know...
Thanks
Mahesh
|
|
|
|