|
i didn't asked for code,
i asket for a tool..
like printpreview, but i'm not sure that this is the best..
modified 31-Dec-20 21:02pm.
|
|
|
|
|
sagiko wrote: i asket for a tool..
Well, thats not how your post read. Anyway, as far as I know, you will need to code it yourself as you are within your application.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Perhaps overkill, but you could use the browser component. It won't support things like PDF natively, but if the user has Acrobat Reader (or some other program that is registered as able to open PDF files) the browser will host the viewing application. Of course this means uses may see additional UI (toolbars from the viewer app for example) depending on what they have installed on their system, but they will at least get a "preview" (actually a perfectly normal view, but perhaps scaled down).
Since you're saying "files like ..." it appears you want to show many different formats and you don't necessarily know what they are or what they will be in two years. In that respect the browser is probably a good choice, exactly because it relies upon external programs rather than having built-in support for every format. So a user who has OpenOffice will be able to preview ODT files, and an MS Office user DOC files.
|
|
|
|
|
Hi,
Does anybody can explain or share a link which will explain how to add a Bing Maps into a standalone C# program?
Thanks.
|
|
|
|
|
|
Are you suggesting Bing does not know how to interface its Maps?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I'm working on a Service in C# that will be run on Windows and on Linux. On Linux you store app config in /etc, but on Windows XP it's "C:\Document and Settings\{USERNAME}\Local Settings\Application Data". How would I go about getting those file paths without having to worry about platform detection?
|
|
|
|
|
The app.config file is usually in the same folder as the .EXE. Assembly.GetExecutingAssembly.Location() will return the full path to the .EXE that is running. You can use the Path class to get just the path without the .EXE filename and use that to build the complete path to the app.config.
|
|
|
|
|
I use Iris Skin for change my program's form's skin but every time that I execute my program show me a messageBox and says you should register
how can I delete this messageBox ?
|
|
|
|
|
Do what it says and register the skining library. You'll have to pay for it, of course.
|
|
|
|
|
|
Hi
I use flowlayoutpanel in my form and i put a button in my flowlayoutpanel and i want to change button location in code but the location of my button doesn't change !
What should i do?
This is my code :
button1.location=new point(300,400);
|
|
|
|
|
From the doc: "The FlowLayoutPanel control arranges its contents in a horizontal or vertical flow direction...", so you have limited say about it. Depending on what it is you want, you might get it by adding a Panel of some Size, then add the Button to that Panel. That will allow you to choose where on the Panel the Button is, however the FLP will decide for you where the Panel goes.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
You cannot precisely position your controls in a FlowLayoutPanel. That is why it is called "flow" layout. If you want to position your controls precisely, then place your controls directly on the container.
|
|
|
|
|
hi in a project i saw a code that let a user to choose the camera
i dont want to let them do this how can i here is the code:
foundID = System.Reflection.Missing.Value;
wiaCamera = (ItemClass) wiaManager.Create( ref foundID );
thanks
|
|
|
|
|
Have a look at what wiaManager.Create does. Probably by passing no value it will ask the user to specifiy something, but if you pass avalue it won't
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
How Can I change skin's form in C# win Application ?
please give me project
modified on Sunday, November 22, 2009 11:44 AM
|
|
|
|
|
SajjadZare wrote: How Can I change skin's form in C# win Application ?
What exactly do you want to change, background, foreground, etc?
SajjadZare wrote: please give me project
If you need a complete solution then search the articles section.
|
|
|
|
|
Hi,
kindly let me know that, how may I split following text into strArray1?
string[] strArray1;
"0000061050","APPLE","500","17.69","20091122","14:15:17"
Thank you in Advance
(Riaz)
|
|
|
|
|
M Riaz Bashir wrote:
string[] strArray1;
"0000061050","APPLE","500","17.69","20091122","14:15:17"
This already looks like an array, are you sure you are asking the right question?
|
|
|
|
|
but when I try to split it, it gives me following answer with slashes
"\"0000061050\"\"APPLE\""
|
|
|
|
|
M Riaz Bashir wrote: but when I try to split it, it gives me following answer with slashes
"\"0000061050\"\"APPLE\""
I am afraid this is not a very good explanation. Can you post the actual code that you use, showing the results that you are getting.
|
|
|
|
|
Those slashes aren't really there.
|
|
|
|
|
Trust us, if you have:
string inString = "1234,5223,Apple,Bank";
string[] bits = s.Split(',');
foreach(string s in bits)
{
Console.WriteLine(s);
} You will see it works!
The extra slashes you can see in the debugger are confusing, but they are only there to "escape" the double quote characters - just as you would type them into a string. You will get used to it eventually, everyone does!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
It seems the series of double quotes itself is part of the string and the debugger escapes them with a \ (slash) to show them apart.
|
|
|
|