|
*grin* Yes, I liked that, too. I hope he gets it together and looks up regular expressions in MSDN, it's gotta be easier than string mashing in C++.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
how to remove non-numeric content?
r00d0034@yahoo.com
|
|
|
|
|
Hello, I am having problem adding a new excel worksheet using C#. I am able to acquire the first worksheet no problem, but when I try to add a new worksheet, the code bombs out with a COM exception. Here is what I have:
m_Excel.Worksheets.Add(null, null, 1, Excel.XlSheetType.xlWorksheet);
In vb, this function is easy because it has default parameters, so you can just call Worksheets.Add, however, in C# this is not the case. Any help would be greatly appreciated.
|
|
|
|
|
If you're getting a COM Exception, then I'm going to guess that you aren't using the OfficeXP Primary Interop Assemblies.
You should use these for any Office XP work.
Office XP Primary Interop Assemblies[^]
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
in C# default parameters are handled differently, if you problem is because of default parameters
try
<br />
Object o = System.Reflection.Missing.Value;<br />
m_Excel.Worksheets.Add(ref o,ref o,1,Excel.XLSheetType.xlWorksheet);<br />
May the Source be with you
Sonork ID 100.9997 sijinjoseph
|
|
|
|
|
Can we make the progress bar a solid line instead of one composed of squares? Also, how can I make text appear, like the progress percentage?
tx
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
The Standard Progress Bar sucks. Use this one instead:
Enhanced Progress Bar[^]
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
I am writing a wizard that will execute a process to generate some source code files. As a part of that wizard, I want to have the user navigate to a directory so that I can save the source files and a project file in that directory. The only file dialog I see in the Windows Forms toolbox collection is FileSaveDialog and FileOpenDialog. When I use these dialog boxes (even with VerifyFileExists set to false) the dialog requires clicking on a file.
Any suggestions on how to do a dialog that only requires a browse to a directory WITHOUT using the old COMM dialog box?
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
There isn't one...You just have to use the SHBrowseForFolder API Call. There is no way around it.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
David Stone wrote:
There is no way around it.
There is nothing premade, but nothing to stop you from creating your own (why you would is beyond me though; SHBrowseForFolder is far better than anything I could whip up)
James
- out of order -
|
|
|
|
|
I know that the Ghengis team is trying to implement a wrapper for SHBrowseForFolder...but I haven't been able to get it to work...
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
David Stone wrote:
I know that the Ghengis team is trying to implement a wrapper for SHBrowseForFolder
There is also this[^] implementation by Rama Krishna
James
- out of order -
|
|
|
|
|
Well I'd like to use this control, however it keeps crapping out. (sigh)
It is also way to unweildly to use, IMHO. (though not as unweildly as a WinAPI call)
An unhandled exception of type 'System.InvalidOperationException' occurred in folderbrowser.dll
Additional information: Operation is not valid due to the current state of the object.
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
|
|
Perhaps an identity column? Just a thought
"I dont have a life, I have a program."
|
|
|
|
|
How do I get version info of my Windows Forms App to display it in about box.
I know there is this [assembly: AssemblyVersion("1.0.0.*")]
in my Assemblyinfo.cs. Now what?
Sorry for such a simple stuff, but .... you know.
|
|
|
|
|
Hi!
You can use Application.ProductVersion in your assembly to get the product version - but I don't know about versions of assembly files.
Cheers
HTH
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
Have a look at the AssemblyName class
"I dont have a life, I have a program."
|
|
|
|
|
Build .Net app, and take it to not .NET box. Receive error DLL MFC70.d;ll could not be found. Is there a way to build in release mode so that it will have whatever files it needs no matter what box I take this program to? I want to avoid using an installation program.
|
|
|
|
|
Yes: under Project Properties/General tell it to only link to static libraries
Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
|
|
|
|
|
hey wait does this mean that when I distribute a c#/.net desktop app, it can be run on a pc that doesn't have all of .net installed? I thought the entire runtime was required to have any .net app run...
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Bog wrote:
hey wait does this mean that when I distribute a c#/.net desktop app, it can be run on a pc that doesn't have all of .net installed?
I think you can't sadly.......
Bog wrote:
I thought the entire runtime was required to have any .net app run...
Yep!
So i would suggest looking into bootstrap[^] projects
HTH
"Creating tomorrow's LEGACY systems today.....
.... One CRISIS at a time!" -- Unknown
"If you build it....
.....BUGS will come!" -JB
this.Dispose();
"A Bug is a piece of code that knows whatz itz purpose" - I Dunnnnooooooo
|
|
|
|
|
What is the best way to create a singleton object in C#? I want an instance of my cache object to be shared by all the threads in my process. The process also happens to be an NT service. How does the garbage collection affect the singleton?
|
|
|
|
|