|
I don't really understand the question. If you want to store destinationFile and sourceFile setting in your app.config file you can do this by creating an app.config file similar to the following:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="SourceFile" value="..."/>
<add key="DestinationFile" value="..."/>
</appSettings>
</configuration>
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
|
hi,
one way is to check the form state in the form resize event and hide it if the state is minimized.
regards
|
|
|
|
|
but it seem Minimize also.
Has a simple Method that the form hide only
|
|
|
|
|
You need to catch the click on that button, which means you're probably going to catch the state change. So, restore it again, as well as hiding it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
set
this.ShowInTaskbar = false;
hope it will help
|
|
|
|
|
|
Hello,
You could override the WndProc method like this.
But be aware that you will not see the Form in taskbar and the user has no chance to make the form visible again unless you provide some functionality.
const int WM_SYSCOMMAND = 0x112;
const int SC_MINIMIZE = 0xF020;
protected override void WndProc( ref Message m )
{
if( m.Msg == WM_SYSCOMMAND )
{
if( m.WParam.ToInt32() == SC_MINIMIZE )
{
this.Hide();
return;
}
}
base.WndProc( ref m );
}
Hope it helps!
P.S.: Luc, I know that it is bad, too influent the behaviour of standard form, but I can't resist ansering the questions!
All the best,
Martin
|
|
|
|
|
Sure, you could also minimize the form when the Close Box is hit, and close it
when the Minimize Box is hit. Why not ? You do want a special app, dont you ?
|
|
|
|
|
Luc Pattyn wrote: Sure, you could also minimize the form when the Close Box is hit, and close it
when the Minimize Box is hit. Why not ?
Luc Pattyn wrote: You do want a special app, dont you ?
Off course, everybody can make it the "standard" way!
All the best,
Martin
|
|
|
|
|
|
i was to use the crystal report dynamically bt have no idea to pass parameter dynamically i connect the table and databse also dynamically bt help anybody plz help me in parameter passing.
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
Hi!
You can use
CrystalReport1.DataDefinition.RecordSelection = "Order = ..." to pass parameters you want
Hope my help!
It seem to be a solution or an answer.
|
|
|
|
|
plz provide some more code bcoz
<br />
StockCrystalReport1.DataDefinition. is not showing RecordSelection <br />
StockCrystalReport1.DataDefinition.RecordSelectionFormula = <br />
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
I think this code can help you
object obj = "";
// Create new instance from Report file
CrystalReport1 crystalReportFile = new CrystalReport1();
crystalReportFile.SetDataSource(datasource);
crystalReportViewer.ReportSource = crystalReportFile;
// Set parameters here .
crystalReportFile.SetParameterValue("Name", obj);
This is importnat :
Always set parameter after binding to datasource and set ReportSource properties
DMASTER
|
|
|
|
|
Hello experts,
An application I'm currently developing pops-up reminder windows.
Being a popup window, it should not "steal" the focus, as it can be unpleasent to the user if he's in the middle of something.
I've tried overriding the ShowWithoutActivation property and returning true , but the form still gets focused.
My guess is that a LinkLabel control I have on the form is receiving focus, thus having the form receive focus even when the ShowWithoutActivation property has returned true .
How can I deactivate the form?
Thanks in advance,
Shy.
|
|
|
|
|
Have you tried just using the Hide method?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I don't want to hide the form...
I want it to appear on top, but not to steal focus.
|
|
|
|
|
Maybe you're using ShowDialog instead of simply show...
|
|
|
|
|
Correct. I did use ShowDialog() .
However, even using Show() it still steals the focus.
|
|
|
|
|
Ok. Why you don't try to pass the parent form to the constructor of the new modal form and then call the Activate method when the new form is shown?
An alternative is when you call show, a line below return the focus to any control of the form.
If the previous alternative don't like you try to save the ActiveControl before open in a var and after open the new form, in the Show next line call var.Focus().
Try any of this three alternative.
|
|
|
|
|
Problem solved!
It appears that because I set TopMost to true , the ShowWithoutActivation property became useless.
When I used the TopLevel property instead, it worked.
Regards,
Shy.
|
|
|
|
|
Good for you. I was going to mention the setting of TopMost , but you figured it out before I got up this morning
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
The following code can read Xml file and put elements into treeview as nodes. I wish to do two things; 1)move parameters out from the tree and only leave table's name on the tree 2)when mouse click on table's name, the parameter associtated with the table will show up in text box.
The following is a sample of xml file. ServerSession and ClientSessions are table names in dataset. others are parameters. It should have <> symbol but because it won't show the content if with the symbol.
?xml version="1.0" standalone="yes"?
UserSession xmlns="http://tempuri.org/UserSession.xsd"
ServerSession
StartTime 2007-07-20T13:57:39.7346316-02:30/StartTime
ServerSessionID 0 /ServerSessionID
EndTime 2007-07-20T13:57:39.7346316-02:30 /EndTime
ClientSessions
StartTime 2007-07-20T13:59:52.8972108-02:30 /StartTime
ClientIP 127.0.0.1:2138 /ClientIP
ClientSessionID0/ClientSessionID
ServerSessionID 0 /ServerSessionID
/ClientSessions
/ServerSession
/UserSession
<br />
private void AddNode(XmlNode inXmlNode, TreeNode inTreeNode)<br />
{ XmlNode xNode;<br />
TreeNode tNode;<br />
XmlNodeList nodeList;<br />
int i;<br />
string name = "";<br />
if (inXmlNode.HasChildNodes)<br />
{<br />
nodeList = inXmlNode.ChildNodes;<br />
for (i = 0; i <= nodeList.Count - 1; i++)<br />
{<br />
xNode = inXmlNode.ChildNodes[i];<br />
inTreeNode.Nodes.Add(new TreeNode(xNode.Name));<br />
tNode = inTreeNode.Nodes[i];<br />
AddNode(xNode, tNode);<br />
}<br />
}<br />
else<br />
{<br />
inTreeNode.Text = (inXmlNode.OuterXml).Trim();<br />
}<br />
}<br />
|
|
|
|