|
Hi,
I have a print preview control that works fine. I've added a tool strip button to allow the user to change the printer settings, this button loads up the PrintDialog.
What i want to do is if the user changes the page layout to be landscape, once they click apply it should redraw the preview. The problem is, how do i fire the PrintPage event to redraw the preview?
Regards,
Gareth.
|
|
|
|
|
I found out on the MS forums that i needed to use: PrintPreviewControl.InvalidatePreview();
Regards,
Gareth.
|
|
|
|
|
Hi
I am doing an application in which I am using a XML file to populate a datagrid.
In that XML file I have one like.....
1.To generate leads efficiently and profitably.
2.To ensure that all details are collected in one call.
3.To provide email and chat support.
4.To manage Work Basket reports as required.
5.To meet targets for both quantity and quality.
When I am trying to populate this column onto datagrid, all these lines or sentences are getting combine and displaying like a paragraph.
I want to know how to format this column to get them in the a new line
Thank u
Chandu
|
|
|
|
|
You could try to add the newline escape (\r\n) chars where you need a new line. I do not know if this will work though.
|
|
|
|
|
Hello,
I have big problem.Please help me.
I playing video with QuartzTypeLib.Video frame are drawing in panel component
and I need drawing my picture(rectangle) on an video.But I dont know which event is calling redrawing frame.
I use protected override onPaint but this metod is call only first time and my picture is redrawing with video frame
How can I do?
I'M beginner in C#
|
|
|
|
|
It's a *lot* more complicated than that. Video is played for you by DirectX, or perhaps another library, and you need to hook into that, the paint event has nothing to do with it.
There's info on the web, it can be done. I am not familiar with QuartzTypeLib, why are you not using the Windows Media player ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Mh...
I use WMP is same how Quartztypelib or in DirectX is simples?
Can I do with Dx SDK?
I'M beginner in C#
|
|
|
|
|
Hello together,
has anybody an idea how I can check with C# if the Oracle client is installed at the computer?
Greets
Patrick
|
|
|
|
|
Check for registry entrys.
Regards,
Gareth.
|
|
|
|
|
Which ones?
Greets
Patrick
|
|
|
|
|
Has nobody an idea? How do I get the version of the installed ORACLE client from C#??? Please help, it's urgent. Thanks for your help.
Greets
Patrick
|
|
|
|
|
How to write code to install database into SQL Server ?
-- modified at 4:26 Tuesday 22nd May, 2007
|
|
|
|
|
What do you mean by install?
Do you want to create a database?
|
|
|
|
|
I think he means attaching a database
|
|
|
|
|
was it write a cookies?
if it was write a cookies,
How do write and read?
please give me directions, thanks.
|
|
|
|
|
Windows application or ASP.NET?
Windows application could be done several ways, you can write an encrypted file with all the login information, system registry(better not to), or store it in the application settings. I would suggest the first solution.
ASP.NET/ASP, then you would use cookies.
To do the reading/writing of a file, use FileStream , and StreamReader/StreamWriter .
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I am using an xml and in that childnodes have one attribute which is optional, so that attribute may be present or not.
in front-end from c#.net 2005 i am reading that attribute, when it is not present it giving exception.
so how to find that there is no attribute for that childnode in runtime.
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
Hello,
I think Reflection is what you are looking for.
The way from the object to the Attributes would be like this.
using System.Reflection;
Type t = yourObject.GetType();
foreach (PropertyInfo pi in t.GetProperties())
{
if(pi.PropertyType.Attributes & TypeAttributes.Serializable)
{
}
}
using System.Reflection;
Type t = yourObject.GetType();
object[] AllAttributes = t.GetCustomAttributes(true);
Hope it helps!
All the best,
Martin
|
|
|
|
|
just test for null. eg.
XmlDocument oXML = new XmlDocument();
oXML.LoadXml("<root><name id='1' value='ggg' value2='ttt'/><name id='2' value='erer'/></root>");
XmlNodeList nl = oXML.SelectNodes("//name");
foreach (XmlNode n in nl)
{
if (n.Attributes["value2"] != null)
{
}
}
|
|
|
|
|
when the below statement is executed then only getting exception(i.e. focusing to catch())
if (n.Attributes["value2"] != null)
|
|
|
|
|
Hi.
How do you do what I've already written in the title? Can it be done?
Thanks.
|
|
|
|
|
yourlabel.BackColor = System.Drawing.Color.Transparent;
|
|
|
|
|
Thanks, but for some reason it doesn't seems to work. I've placed my label on top of a ToolStrip, which has the basic gradient drawn on it. I've set the label's color to transparent, but it still shows the default grey(Control) color.
|
|
|
|
|
Problem with Transparency is that it shows the BackGroundColor of the Parent Control.
Which means if you change the BackColor of your Parent Control, you will see this color also at the Labals BackColor.
blackjack2150 wrote: I've placed my label on top of a ToolStrip, which has the basic gradient drawn on it
I don't know if I understand what you have done and what you whant to see.
Is the ToolStrip the Parent of your Label? (If this is possible!)
Is there a BackgroundImage involved or are you Drawing on your ToolStrip?
All the best,
Martin
|
|
|
|
|