|
I've got a puzzling problem.
I've got a child window inside of a parent window (An MDI application) and I want to Hide the parent whilst keeping the child window open.
Is there any way to do this?
|
|
|
|
|
Not with an MDI application.
|
|
|
|
|
Well is there any way to grab all of the entities in the child window and copy and paste them into a new window?
That's another way to get around it.
|
|
|
|
|
Yea you should be able to do that, just send the instance of the child window to the new parents constructor.
Mark.
|
|
|
|
|
I have a variable I need to add to an output string for generating some C# code.
The intent is the line should be
ConfigurationManager.ConnectionString["Talker"].ToString();
and the code to generate that line is as such:
StringBuilder conName = new StringBuilder();
conName.Append("\t\t\t\t\t\t");
conName.Append("ConfigurationManager.ConnectionStrings[\"");
conName.Append(parameters.UseConnectionStringName);
conName.Append("\"].ToString();");
swBaseClass.WriteLine( conName.ToString() );
When I look at conName it is formatted correctly.
ConfigurationManager.ConnectionString["Talker"].ToString();
When I view the resulting code the line reads
ConfigurationManager.ConnectionString[""].ToString();
Any suggestions on why my variable name is not being written out???
|
|
|
|
|
Dunno... do you need to add .Value to parameters.UseConnectionStringName or something?
|
|
|
|
|
Please read the entire post. The text existed as a string correctly.
If you do not know, then why post a reply?
|
|
|
|
|
I did, and saw nothing wrong, and now I've read it again and still don't.
Are you saying that when you inspect the StringBuilder in debug you see the whole value, but when you write it out you don't? What are you using to vew the resultant file?
|
|
|
|
|
was using new code that used the wrong field.....DOH
|
|
|
|
|
If you don't need the StringBuilder for anything else, why not eliminate it?
swBaseClass.WriteLine
(
"\t\t\t\t\t\tConfigurationManager.ConnectionStrings[\"{0}\"].ToString();"
,
parameters.UseConnectionStringName
) ;
|
|
|
|
|
Hi all,
i m creating some appointments in outlook.
To find those appointments i added a userproperty to it :
oAppointment.UserProperties.Add(nr, Microsoft.Office.Interop.Outlook.OlUserPropertyType.olText, true, System.Reflection.Missing.Value);
nr is a string from user's input.
Now how can i find and update/delete those appointments?
|
|
|
|
|
I'm trying to smoothly fade an image onto the screen, but I can't seem to get smooth performance out of GDI+. Can anyone recommend an alternative?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
WPF works nicely for this sort of thing.
Or if .NET 3 isn't an option, how about XNA[^]?
That said, I think you should be able to get good perf out of GDI+ if you do things right. Have you run a perf profiler (such as ANTS[^]) on your code to see if anything seems out of the ordinary?
|
|
|
|
|
Get a direct draw handle for your Control. There is an article somewhere. GDI+ is very slow.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
I guess that would be a lot easier than trying to do this with GDI.
I'm doing a screen saver that alternates between images and text. I have the text fading on/off working fine, but fading images is crap in GDI. Heck, it would probably be best to use Directdraw (or whatever it's called nowadays) anyway.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Could you control its opacity. If you use a ColorMatrix and set the Matrix33 starting at 0 and incrementing until 1.0?
Mike
|
|
|
|
|
That's the way I'm doing it now...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Are you using the standard way using OnPaint and Invalidating? If so you might bypass that and do the draw directly and bypass the OnPaint.
private void Draw()
{
Graphics g = ?control?.CreateGraphics();
g.DrawImage(image, rct);
g.Dispose();
}
This way you don't depend on the system to draw it when it gets around to it! May sound a little strange but it does help!
Mike
|
|
|
|
|
Hi,
I have a requirement to delete some data from an excel file in a folder. Like opening and reading an excel file, is it possible to delete the data, the whole data or with some range, from an excel file? Anybody has any idea? Would be great if you could provide any source code also?
Thanks
Meeram395
|
|
|
|
|
You will want to work with the Microsoft Office Excel Object Model. As always, there is much information about it on the Microsoft web site, including source code.
led mike
|
|
|
|
|
I have to insert an & sign into a string, which will be part of an XML file. However, whenever I tried to do it, the & sign turn into & in the string.
Thanks
Terence
|
|
|
|
|
I just found that the & sign doesn't change into & until I convert it to XML, can anyone give me some insight why that is happening?
T
|
|
|
|
|
Hi,
Not quite sure what you mean, but it may be to do with using the & symbol to escape the string. You may have to use & to represent an &
Because certain symbols are reserved, when you want to use them in strings you have to escape them.
Hard to explain, take a look here:
http://www.w3schools.com/xml/xml_cdata.asp[^]
.. not that I've ever found the w3c explanations of anything easy to understand.
Regards,
Rob Philpott.
|
|
|
|
|
I assume you're only detecting this when reading the file back? Or are you opening the file with an editor?
At any rate, your question is unclear, it's possible that you're typing one thing and another is displaying in the message.
It might be better if you showed us the code that writes the file.
At any rate, I've found that using an XmlDocument to write he file is much better than trying to use Write or WriteLine to manually create the file.
|
|
|
|
|
I binded an employee class to the propertygrid control in C#. It's now displaying as follows:
MiddleName
FirstName
LastName
Age
ID
How can I show ID at the very top, then lastname, first name and middle name. I didn't find any property that could do. Is there something i am missing.
thanks
|
|
|
|