|
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
|
|
|
|
|
Hi, Mahesh.
If you want to create a classic MDI application then you shouldn't use SplitterPanel in your main form. You just need to follow next steps:
1. Set MainForm.IsMdiContainer = true.
2. Add a TreeView to the MainForm and set treeView.Dock = Left.
3. Add a Splitter to the MainForm and set splitter.Dock = Left.
4. When you need to create MDI child use this:
ChildForm child = new ChildForm();
child.MdiParent = this;
child.Show();
|
|
|
|
|
Hi Andrew,
Thanks
I was trying to create a Tree navigator that could be hidden or moved out of the way if required... I'm still new to C# and doing a project for my degree. I was trying to get a Navigator which is Dockable and Floatable. I was trying to use a SplitContainer so that the Navigator could be hidden when not required. I found a third party library (from a code project article) called Magic Library, which provides a great docking manager... It seems to provide the functionality that I require. I'm trying to use that for the Tree Navigator.
thanks again for ur help
Mahesh
|
|
|
|
|
hi i want to know the different ways of interfacing with MS Office.
Any and all kind of interfacing - whether it is through CSV files, object intereaction, anything else
please do suggest me or give me some inputs....
|
|
|
|
|
|
Check out the Visual Studio Tools for Office (VSTO). I've automated an excel spreadsheet to retrieve information from a database and perform automatic calculations/autoformat/etc. Eric Carter and Eric Lippert wrote a great book on it in the Microsoft .NET development series.
|
|
|
|
|
You can also use ODBC connections against Excel files or third party software like Aspose as well.
|
|
|
|