|
You are correct!! Than you so much, this fixed me right up!
|
|
|
|
|
opefiledialog can open file. what if i want to point to a dirctory?
(I mean using someting like dialog box to select a working direcory)
Thanks
|
|
|
|
|
You can use FolderBrowserDialog class
but this class is available in .net 1.1 or later
|
|
|
|
|
How can I dynamically change the order of tab pages in a tab control at run-time?
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
You can remove them
tabControls.TabPages.Clear();
and then re-add them in whatever order you want
tabControls.TabPages.Add(tabPageOne);
|
|
|
|
|
Hello,
How can I display the whole row from a dataset, using foreach statement.
foreach (DataRow row in this.dataset.Tables[0].Rows) {
Debug.WriteLine (---------------- What goes in here?-------------)
}
Thank you
|
|
|
|
|
You can loop through the items of a DataRow by accessing its Item or ItemArray property.
|
|
|
|
|
Hi,
Need to create a Datagrid in Datagrid dynamically. Both the Datagrids should be created dynamically, using a template column like Link buttons.The Link button click event has to generate the second datagrid. Is there any option sin crystal reports like this.
Kamesh Bora
Consultant
|
|
|
|
|
|
Hi
Is it possible to stop two running thread on cancelJob event
Any example
THanks
sanjeev
|
|
|
|
|
|
Hi,
I am trying to print a webpage to a postscript file. Ultimately the result is supposed to be a script/program that displays a web page and creates a pdf-document out of it. I decided to use the print function of the web browser because the page contains ACTIVE-X containers that display graphical charts and I don't know any other way to get the ACTIVE-X objects displayed on the page without running them inside a browser window before printing them.
I am displaying the web page inside an axWebBrowser window and then using the
"...ExecWB( SHDocVw.OLECMDID.OLECMDID_PRINT,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER ..."
command to print to a normal "Generic PostScript Printer" to generate the PS file. All of that works fine, thanks to some of the helpfull posts on the CODE PROJECT page.
However, all of this is supposed to be an automatic script/programm that runs in the background and whenever I call the "print the web page" command, the printer driver displays a dialog window and asks for the file name of the PS-file that is supposed to be generated. I don't mean the "printer settings" dialog window, I was able to suppress that.
The question is: Is there a way to include the file name of the output file in the printer command OR is there any other way to automate the output of an XML-based web page containing ACTIVE-X objects as a PDF/PostScript?
Here are some ideas that I had. I have tried to find something on google about it, but wasn't successful. Any ideas?
(I am working with Visual C# .Net)
- find a function/command in C# that includes the name of the output file.
- change the printui.dll to somehow contain a default output name for the PS-file.
- find a printer driver that allows to define a default name for the output file.
- find a way to parse the XML and the active-X alements seperately, but HOW! If I don't display the active-X, it won't show the graphs, right?
cheers, Tobias
|
|
|
|
|
I've added to my form a status bar and 2 panels.
The status bar is on the bottom, while the first panel is on the left the second panel is on the right.
I want the first panel is of 50 pixel always.
The second panel became bigger if the user resize the window.
It should attached to the first panel but the right follow the right of the window...
I would the status bar do that to... but i've not success neighter with the second panel nor the status bar...
why?
|
|
|
|
|
For the panel on the left, set the anchor property to attach to the top, left, and (I assume) bottom of the form.
For the panel on the right, set the anchor property to attach to all four sides (top, bottom, right, left)
For the status bar, make sure it is docked on the bottom of the form.
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
Hi:
I am making a small Windows Service which reads an .EXE.Config (Configuration File).
This file needs to be in /bin/debug folder for Visual Studio .NET. Is'nt it?
Also, I observe that a Build Command/Rebuild Command deletes this file. And after every Build/Rebuild, I am needed to recreate this file.
Am I doing something wrong? Or does the location is incorrect?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
You need to add it as a resource through VisualStudio, not yourself.
|
|
|
|
|
|
In your project you need to create an app.config file - there is a specific item for that when you add an item to the project. This will be set up correctly to be copied and renamed to your bin folder when the solution or project builds. You can check this by selecting properties on the app.config and checking that it says "Content". If this says "resource" it will be embedded in the assembly, which is not what you want.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
This is what I meant, not that way exactly, but he could have embeded it and been fine. If he was just reading it.
|
|
|
|
|
Yeah, but why go through the hassle?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ExpertComing wrote:
If he was just reading it.
It's a config file. That means it is used for configuration - configuration often changes, and it needs to be editable by hand, e.g. in notepad.
David
|
|
|
|
|
|
hi
I am making Set up using Visual Studio 2003 fro desktop application(Winform). I want that Some folders should not be deleted while uninstalling the set up
I have made set up when i uinstall the set up it removes all the directory
I want that one folder should not be deleted after uninstallation
Which option or properties i have to select in set up and deploymenet
regards
sanjeev
|
|
|
|
|
Best to explain the system I have and the requirements first.
MS Visual Studio 2003.net and something called "Softwire" which is best explained at www.softwire.com by viewing the examples. Not a spam, you need to know this to understand the question, besides it's freeware. I am not at all experienced with C# or VB but learning a bit as I go along and Softwire is the only way I got up and running at all.
I have the hardware working courtesy of Softwire and what I need to do is make an announcement every time a digital input fires. 48 inputs, 48 possible different sounds.
What I have running (again using Softwire) is a little program that does the input stuff, picks a filename from a text file and then sends that filename to Mplayer2.exe as a parameter. I have also found some code to play .wav files using a form but here's the first part of the question.
There's no sense re-inventing the wheel and Mplayer2 behaves like this. If Mplayer2 is already open and provided the filename exists the filename is passed to the same instance of Mplayer2. If the filename doesn't exist a new instance opens, but that should never happen so I don't really care about that. However there's no parameter I can find that passes both filename and volume setting, and I want some messages louder than others and ideally I want this setting in the play list and not made at record time.
SO switch to the code on the form which I borrowed and modified from some kind person here. With that (Directsound) I certainly can supply a .wav file and a volume as two parameters, but every one opens a new instance so that won't fly at all in the target environment. I have also found some code to deal with the single instance issue which I think (Note I THINK) I can probably incorporate in this so I wind up with an executable that can take [filename] [volume] parameters, but for the sake of getting things up and running quicker can anyone tell me if I have missed something with Mplayer2 because the present system does work well except for the volume.
(Note I do NOT want to use media library or anything fancy - text file to filenames is perfect for this application).
Thanks in anticipation for any suggestions, I have looked around a lot but I figure that just maybe someone here will have gone down this path before
The "Perfect" answer is to write a system that can deal with the announcement volume and also the system volume controls - and also run without a user being logged in - but if you saw my level of expertise with c# you'd assume that won;t be anytime this week .
Once again thanks for any ideas, always appreciated.
Charlie
|
|
|
|
|
The way you are trying to do it may not be possible without doing any code. You many have to write some simple app, or have someone do it for you. And this is not a rent-a-coder website.
|
|
|
|