|
Advanced Installer is a good option, I've used it for years.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
i use ConfigurationManager and i don't find how to add <!-- comments --> and breaklines in my config file between the config.AppSettings.Settings.Add
Is it possible?
|
|
|
|
|
Cptkli wrote: i use ConfigurationManager and i don't find how to add and breaklines in my config file between the config.AppSettings.Settings.Add
Is it possible?
Not using Settings.Add, no it's not. Comments aren't a setting are they? You could get away with doing it using the various methods exposed by the XmlDocument class though.
I'd give you a link to the MSDN docs on XmlDocument, but our firewall sucks and is having a hard time with HTML compression.
|
|
|
|
|
After adding set-up for the project I need to create the folders after the installation path.I am doing this statically now by giving the path and adding
Directory.CreateDirectory("path");
But I want to make this dynamic and I want those folders to be created in any path that user selects.Is this possible?
Thanx in advance.
|
|
|
|
|
Do you want to create directory where program is installed ? Use Application.ExecutablePath to get the executable path, and use Directory.CreateDirectory() to create.
|
|
|
|
|
You can use a FolderBrowserDialog to let the user select a base folder and then use Directory.CreateDirectory() to create the folder he wants. Is that what you are looking for?
Cheers,
Vikram.
"real dictators don't loose[sic] elections." - Diego Moita.
|
|
|
|
|
Thank you Vikram,
Where should I use FolderBrowserDialog?Since the installion path is by default provided by .Net as
C:\programfiles\ProjectName
I need to edit this part so that though the user alters above path next folder after ProjectName is created.
Thank you.
|
|
|
|
|
how to create new folder in runtime using .net with c#
when i register a user details that time create a folader in my particular directory.if u know the code replay to me.
Hi,Im Razana
|
|
|
|
|
Directory.CreateDirectory() ?
|
|
|
|
|
if (!Directory.Exists("D:\\YourFolderName"))
{
DirectoryInfo dirIn = Directory.CreateDirectory("D:\\YourFolderName");
}
|
|
|
|
|
Hi,
I am trying to find if a local printer is connected before printing in my C# application. There are APIs of winspool.drv which give info on printer's status but not if it is connected or no.. Any ideas?
Thanks
|
|
|
|
|
you can use
string printerName = "";
ManagementObjectSearcher searcher2 = new ManagementObjectSearcher("Select Name from Win32_Printer ");
foreach (ManagementObject cdrom in searcher2.Get())
{
printerName = cdrom["Name"].ToString();
}
it gives u the printer name ie installed on your system
|
|
|
|
|
Thanks
I tried the above piece of code.ManagementObjectSearcher gives error, I am using .Net 2.0. I guess this is not included in this version.
Also, this gives the name of the printer installed in the system and not connected to the system. This may work despite of the printer not being connected
|
|
|
|
|
include reference system.management and use using system.management....
|
|
|
|
|
thanks,
I tried it. It only gives name of the printer installed in the system and not the status of the printer ie if it is connected or no
|
|
|
|
|
Hi Everyone
we need to know if there is any way to document project in
XP methodology,i mean some templates or patterns
The problem is that we are nearly finishing the project and no
document
|
|
|
|
|
Most of the companies do provide tools for documentation. Our company has a CMM portal which allows to document all these. We use XML documentation for methods, which can be exported to an XML file and styled using XSLT to produce the documentation for methods used in the project.
|
|
|
|
|
We generate our CHM documentation[^] using Sandcastle[^] which is free from MS, and makes rather sexy API docs. I think it spits out HTML as well, and theres a choice of templates.
It also can be a little buggy sometimes...
|
|
|
|
|
i m having a tab-page which shows the user-detail...and a print button...when i click on this button...it throws an error that "The RPC server is unavailable"...what is this please help me....i searched on google but not able to solve this problem...please someone help
|
|
|
|
|
can you explain in little more detail? as noone can help in a summary of problem
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
on print button i wrote this code...
string printerName = "";
ManagementObjectSearcher searcher2 = new ManagementObjectSearcher("Select Name from Win32_Printer ");
foreach (ManagementObject cdrom in searcher2.Get())
{
printerName = cdrom["Name"].ToString();
}
if (printerName != "")
{
CaptureScreen();
}
private void CaptureScreen()
{
Graphics mygraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, mygraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
IntPtr dc1 = mygraphics.GetHdc();
IntPtr dc2 = memoryGraphics.GetHdc();//13369100
BitBlt(dc2, 0, 0, this.panelDetail.ClientRectangle.Width, panelDetail.ClientRectangle.Height, dc1, 26,26, 13369393);
mygraphics.ReleaseHdc(dc1);
memoryGraphics.ReleaseHdc(dc2);
}
so when i click on this button it shows that The RPC is unavailable...please help
|
|
|
|
|
Neetu Maheshwari wrote: ManagementObjectSearcher searcher2 = new ManagementObjectSearcher("Select Name from Win32_Printer ");
The error may be at this line of code, when WMI is invoked...
1) check whether Remote Procedure Call (RPC) services are running
2) try to disable firewall (if possible! ) and run the program again
|
|
|
|
|
I googled around a lot for this, but it's hard to find the right search terms, therefore trying it this way, hope you can help.
I'm trying to build a small application as a class library in C# that I want to deploy in a web page.
<br />
<object id="myControl1" name="myControl1"<br />
classid="ActiveXDotNet.dll#ActiveXDotNet.myControl"<br />
width="500" height="400"><br />
</object><br />
If you google around a bit, you'll see that I found the ActiveXDotNet project as a ready example, and indeed, it shows nicely in my browser.
However, now I add a reference to a DLL that I've been given. ("Add Reference...", "Browse", pick the Some.API.dll that I've been given.)
As soon as I start using the reference, things go wrong.
using Some.API;
From this moment forward, my class library in the web page just renders an empty area with top-left the default icon that IE uses for images that are still loading.
When I reuse the same class library on a Windows Forms application, it renders just fine.
Am I missing any common pitfalls, here? I'm I underestimating the constraints of the browser's sandbox? Should my DLL suddenly be at a more magic location? What else can be wrong? Help!
Thanks already. Sander.
|
|
|
|
|
Hi guys,
Please HELLLLLLPPPPPPP! I have been working on this for 3 days now and I was able to bring it down to stack overflow error in my dataset.Select statement. I have a windows service that gathers data in a dataset and then based on different configurations runs the dataset.select statement. This works and worked fine with .NET 1.1 but after migrating to .NET 2.0, I am getting the stack overflow error when too many dataset entries are generated.
Please help!
Sameer
|
|
|
|
|
What is the code, and what is the stack trace ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|