|
|
Honeyboy_20 wrote: Connection string Path ?
As i getting your question you want know about ConnectionString path in .Config file for Windows Application. if so then see what I get after connecting Database to my Application.[It automatically Generate]
<connectionStrings>
<add name="WindowsApplication1.Properties.Settings.Database1ConnectionString"
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
in short I get for ConnectionString Path
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True"
Let me know in case of any problem.
|
|
|
|
|
|
Honeyboy_20 wrote: I do that but not work.
are you getting any exceptions is so please mention it.
Hope I will able to solve it
|
|
|
|
|
|
You can get the location/path of the dll using the AppDomain.
Then you create a fully defined path from that and your database name.
|
|
|
|
|
hey guys..i have to add 19 icons to my form..but i dont know which tool i should use?..19 picturebox i should add to my form or one another tool can i use ?
vemedya.com
|
|
|
|
|
Draw them yourself in the Paint event:
private void MyForm_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawImage(myIcon, myIconLocation);
...
}
For details see http://msdn.microsoft.com/en-us/library/42807xh1.aspx[^]
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
thanks for the help..should i add them to resources File of my project..to use them when i make its exe ?
vemedya.com
|
|
|
|
|
erdinc27 wrote: should i add them to resources File of my project
If they are fixed when you compile, then yes, it reduces the amount of stuff you need to ensure is there when your app runs..
If not, then keep them as files and load them when your form loads, or when they change.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
ok friend..thanks for your help and time
vemedya.com
|
|
|
|
|
Welcome!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
I have a windows form which I am displaying an image. I am using GDI+ to draw layers of images to create a final image.
I am using the Matrix class (2D) to rotate/scale/transfom a bitmap over the top of another absolutely fine, but I need to add perspective and rotate the Y axis (as if it were in 3D space).
In the lastest version of Flash I can set the rotateY property of a movie clip which is exactly what I'm trying to achieve with an Image in C# / GDI+.
Does anyone know where I can find a Class that does this in C#? I'm not worried about speed of processing.
Or do I have to use DirectX? I'm trying to avoid DirectX as I'm just putting together a very simple prototype quickly.
Any help or pointing in the right direction would be much appreciated!
Many thanks,
Rich Tufty
|
|
|
|
|
To be honest, I would look into using XNA if I were you. This would be fairly easy to achieve in XNA (a lot easier than in GDI+).
|
|
|
|
|
Hello Experts,
How to convert an image to pdf.
Thanks
If you can think then I Can.
|
|
|
|
|
Here[^] is an article from the CP Archives.
Hope it helps.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Thanks for reply,
But in this article author is converting with the help of Component. I want source which convert the image to pdf.
Best Regard
If you can think then I Can.
|
|
|
|
|
Oh well. Good luck with that then. That's going to take you a lot of time coding up. The PDF format is a standardised format, and you can download it for free - so you can use this to write your code from. If I were you though, I wouldn't waste my time reinventing the wheel here.
|
|
|
|
|
You may find what you want wrapped in this: iTextSharp[^]. You'll have to dig around a bit but it as an open source port of a very good Java library. If memory serves what you want is in there somewhere but, as another poster has said, why reinvent the wheel? Bit pointless.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thanks sir.
If you can think then I Can.
|
|
|
|
|
You may found
SharpPdf and/or MigraDoc
helpful ... if you google for it.
|
|
|
|
|
I am having a problem being able to run commandlets that are in modules from C#.
when I Invoke the import-module command via ps.AddScript or ps.Addcommand I do not get an error thrown on the second Invoke.
can anyone help me figure out what I am doing wrong.
PowerShell ps;
ps = PowerShell.Create();
ps.AddScript(@"import-module GroupPolicy");
ps.Invoke();
ps.AddCommand("Get-GPO");
try { ps.Invoke(); }
catch (RuntimeException runtimeException)
{
System.Console.WriteLine("Runtime exception: {0}: {1}\n{2}",
runtimeException.ErrorRecord.InvocationInfo.InvocationName,
runtimeException.Message,
runtimeException.ErrorRecord.InvocationInfo.PositionMessage);
}
|
|
|
|
|
Planker wrote: PowerShell ps;
And where exactly did you get the class PowerShell?
And do you expect an exception or are you just noting that one does not occur?
|
|
|
|
|
I edited the Project file to add the Reference <Reference Include = "System.Management.Automation> to add the reference for powershell
I am using a Windows 7 machine with the Group policy tools installed
the first invoke command I had in a try/catch and I am not getting a runspace exception, but I just found that I am getting an exception, my try/catch testing before must have been too targeted. I just added a catch for any exception and found that I am Command not found exception.
I am going to assume that I have added the wrong powershell resource and once i find the correct one I will have my problem fixed.
|
|
|
|
|
according to this MSDN article http://msdn.microsoft.com/en-us/library/ff458115(v=vs.85).aspx the assembiles are in c:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\V1.0 but when I add these as a reference I get the same unknown command when trying to add the Grouppolicy module
any ideas why this is not working?
|
|
|
|