|
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
|
|
|
|
|
I Think, i am using updated library (updated by Dennis Austin) dated 5 Nov 2002. If it is not updated then please let me know from where i can download updated one.
|
|
|
|
|
Again, you download it and we're not familiar with it. Find and check his site for more information. This forum is for general C# questions and questions about the .NET Framework Class Library. Any questions about specific products need to be asked on the product web site.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi all.
I am trying to build the 'Print Preview' sample that can be found in the VISIO SDK samples (under the category 'c# - publishing' in code librarian).
I follow these steps (these steps are exactly the ones indicated in the Microsoft Office Visio SDK Documentation):
quote:
------------------------------------------------------------------------------
In Microsoft Visual Studio .NET 2003, on the File menu, point to New and then click Project.
In the New Project dialog box, under Project Types, click Visual C# Projects, and then in the Templates list, select Windows Application.
Name the project, specify the location where you want to save it, and click OK.
On the Project menu, click Add Windows Form, and name the form PrintPreview.cs.
Double-click the form to open the code window.
Open Code Librarian, double-click Microsoft Visual C#.NET, double-click Publishing, and then click Print Preview.
Copy the sample code, and in Visual Studio, paste the sample code into the PrintPreview.cs code window, replacing the previous code.
On the Project menu, click Add Reference.
In the component list, select stdole and then click Select.
Click the COM tab, select Microsoft Office 11.0 Object Library and Microsoft Visio 11.0 Type Library, click Select, and then click OK.
------------------------------------------------------------------------------
When I try to build it I get an error:
"The type or namespace name 'Interop' does not exist in the class or namespace 'Microsoft.Office'"
This error happens whenever I try to use: "Microsoft.Office.Interop.Visio"
Am I missing a reference? I added the three references indicated in the steps above.
Of course, I installed Visio SDK and also VSIP.
I need for this to be built! What reference am I missing? What am I doing wrong?
Any help will be greatly appreciated.
|
|
|
|
|
You should install the Primary Interop Assemblies for Microsoft Office 2003. If you don't have those installed (and I don't know off-hand if the Visio SDK installs them), then Vs.NET creates interop assemblies for you that probably wouldn't contain the Interop portion in the namespace like that which is included in the sample code.
If you have Office 2003 Professional, these are supposed somewhere on the CD.
What Primary Interop Assemblies (PIAs) are is assemblies created by the vendor (typically) that are associated with the registered, associated COM objects. When you import a COM reference, those PIAs are used instead of creating new ones.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Yes, thanks.
I did so.
Things are better now.
However, I still have a problem with:
AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl
Where is the reference to this one?
|
|
|
|
|
What I am trying now is to compile OfficePlanSample (a Visio SDK sample)
|
|
|
|
|
hi,
i want to to hook a certain msg for a window like moving or sizing, this window is standalone app and i have its handle is there any APIS help me do this ?
|
|
|
|