|
Did you look at the articles under the C# tab here at CP? There are several that discuss this (i.e.; search for FTP).
- Nick Parker My Blog | My Articles
|
|
|
|
|
The stock C# Windows toolbar is great. It does all I need to do. However, it there a way to make it vertical rather than horizontal?
thansk
|
|
|
|
|
Set the <cdoe>Dock property to DockStyle.Left or DockStyle.Right .
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
Hi I am trying to deploy a program that includes a report built with Crystal Reports for .Net. The Report works fine on my computer but gives a error "Cannot find keycodeV2.dill, or invalid keycode" when I try to display the report on another computer. I have been on a lot of message boards and have found that a lot of people have been having this problem.
I know that I need to have the Crystal Reports merge modules included with my project. I am new to .Net and I am not sure that the I included the merge modules in my project correctly. This is what I did.
1. Right clicked the deployment project in the solution explorer.
2. Moved to "Add" on the menu.
3. Clicked "Merge Module" on the menu.
4. Found the merge modules in the Add Modules dialog box.
Is this all I need to do to include these merge modules in my project? Am I leaving something out? Is the problem elsewhere?
|
|
|
|
|
See Deploying Windows Applications with Crystal Reports[^] in the VS.NET documentation. Besides the 3 MSMs required for the Windows Forms client, you also need to change a custom property for the Crystal_regwiz2003.msm that includes the registration code emailed to you when you (should have) completed the registration wizard when you began using Crystal Reports for VS.NET.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks Mr. Stewart I think that worked but now I'm getting an error that says "invalid report file path". Do you know what could be wrong?
|
|
|
|
|
Nevermind!! Thanks for the help.
|
|
|
|
|
At runtime? This means that the report definition (.rpt file) is not being found. Paths to things like this are good to stick in the application's .config file, and make sure your report definitions are being installed as well. Never in your source assume a particular path unless it is relative to the application directory (which may be different from the current working directory).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
Is there a way to have an MDI child form without the maximize and minimize box?
TweeZz.
|
|
|
|
|
Just set both MaximizeBox and MinimizeBox to false for the MDI child form, same as you would do for a parent form if you wanted to.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi Stewart,
Before my post I already tried to put these both propertys to false.
The window state of my MDIChild is Maximized; I don't want the user to be able to make it smaller, that's why I don't want the min and max to be there.
The difference with a normal form is that the max and min boxes stay visible, but disabled. So that should solve the problem you might think... But... When initialy this MDIChild is Maximized, there are 3 buttons in the right upper corner: minimize, restore down and close. The minimize button is disabled, the other to stay enabled. When I then press the restore down button, the form resizes and after that the user can move the form. I tried to put the minimumsize of the child to the size it has when it's maximized, but the user can still move it and see other child forms. I don't want this to happen
After I press the restore down button, the min and max button disappear and the user can move the form and make other childs visible.
I hope you understand what I'm trying to explain
GreetZz,
TweeZz.
|
|
|
|
|
Rather than going to all the trouble of overriding this behavior by handling non-client painting in .NET, just use a container control like the UserControl and swap the diffrent instances in the placeholder in your main form, like a Panel or something. To swap the container controls, just remove the previous instance from the Panel 's Controls collection property and add the new one. Keep an internal collection of the instances of the container controls so you can refer to them easily.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Any ideas on how a server object could detect database triggers and subsequently broadcast events (with updated data) to listening clients ?
Thanks
GK
|
|
|
|
|
See the SQL Server Notification Services[^]. It's designed for these sorts of scenarios.
The only other way would be to create an extended stored proc (xp proc) that the trigger called that would use whatever code is necessary to broadcast or queue your notification message that clients could subscribe to receive (such as using MSMQ or some other asynchronous mechanism - synchronous would not be recommend!).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks I will look into these
|
|
|
|
|
I have successfully created a Invoice programme, but the resultant printed Invoice does NOT align the currency, $, values so that the Cents (0.00) are aligned correctly. Is there a way that, using Graphics.DrawString(), a simple command can be created to position the 'x' dimension at the righ hand end of the currency value?
Assistance is appreciated.
Fred S. Parker
Email: fred@fsparker.com.au
|
|
|
|
|
So long as you only ever have 2 decimal places for currency, you can just set the StringFormat.Alignment property to StringAlignment.Far and then call Graphics.DrawString with that StringFormat .
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks for the prompt reply.
It works, but not perfect.
Is there a method, similar to MS Word Fromat/Paragraph/Tabs/Decimal.
Fred S. Parker
Email: fred@fsparker.com.au
|
|
|
|
|
All that comes down to drawing an on-screen bitmap in the end. Just make sure all your calculations are correct and take any variable-width fonts into account, which numeric glyphs themselves usually are (for this very reason).
There is tab support in the Graphics class and related classes; read the .NET Framework SDK documentation for the Graphics class to learn more.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I am using Task Scheduler (which is written in c#) class library by David Hall. I am facing problem when task get executed automatically at given time. The error is coming “Unable to establish existence of the account specified”. When I reassign account password (double click on task under ‘Control Panel/Scheduled Task’) and run manually then it is running fine. The reassign password is same as given at run time. Why I am not able to set password at run time. Any idea…
-Ash
|
|
|
|
|
AsheeshS wrote:
I am using Task Scheduler (which is written in c#) class library by David Hall
You should post your question to his web site, not here.
Mazy
"I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
|
|
|
|
|
Hello Mazy,
Can you please tell me his web site.
|
|
|
|
|
I don't know it. If it is one of codeproject pages you can search for the author , otherwise use google to find it out.
Mazy
"I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein
|
|
|
|
|
You downloaded his library. Check your history if it wasn't that long ago.
Microsoft MVP, Visual C#
My Articles
|
|
|
|