|
i will give him 50% discount
so what is your offer ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
You shouldn't dump the prices here on the forum!
You destroy the marked, and then one day we have to help people for free here!
|
|
|
|
|
Martin# wrote: and then one day we have to help people for free here
man not today , i need some cash
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hi,
Can anyone of u suggest different types of containers present in c#.The containers should have a capability of withholding images,text.... and should be capable of exporting these images when required.
so pls list out all possible containers
-- modified at 2:26 Thursday 28th June, 2007
srujana
|
|
|
|
|
hi,
The richtextbox is not a container control. It renders rtf formatted text into pictures etc.
The controls that derive from ContainerControl are container controls!
Check MSDN or Reflector for containercontrol.
Gideon
|
|
|
|
|
i try to control serialport with C#.i use laptop and USB-RS232 changer.nowadays i see window's blue error screen than my laptop close.why i see this error?how can i block this?how can i correct it?
|
|
|
|
|
hi
i create an application that use crystal report for reports
when i test application in a computer that have .net has no problem, but when i run my application that has not .net (visual studio) show follow exception :
crystaldecisions.crystalreports.engine
how can correct this problem?
tanks
|
|
|
|
|
How to Create a DLL Library using C# ? The DLL be called by the C/COBOL (legacy language )?
|
|
|
|
|
I have posted this before, but now I have some more information. Many thanks to those who tried to help 1st time.
I have a windows form with a rapidly updating chart, and I want to use double buffering to prevent flicker. Without double buffering my app runs OK (apart from the flickering). With double buffering it starts up OK, but when I load the double buffered form the following occurs:-
The form loads then runs the paint method:-
private void Diagnostics_Paint(object sender, PaintEventArgs e)
{
Graphics ChartGraphics = e.Graphics;
ChartGraphics.DrawImage(DiagChart.Image, DiagChart.OutLine.Left, DiagChart.OutLine.Top);
ChartGraphics.Dispose();
if(Started)
StaticBtn.Enabled = false;
}
Then it runs:-
Application.Run(new SC226());
which causes an ArgumentException "Parameter is not valid". SC226 is my application, so shouldn't this line only run when the application is launched? If I comment out the first 3 lines of the paint method it doesn't run the "Application.Run" line and I don't get the exception(but my chart doesn't draw). Can anyone help please?
|
|
|
|
|
Do you catch any exceptions somewhere that shut down your application and then restart it? There's no way a class in the System.Drawing namespace would call Application.Run().
|
|
|
|
|
Eduard Keilholz wrote: Do you catch any exceptions somewhere that shut down your application and then restart it?
No there is nothing in my code that restarts the app.
|
|
|
|
|
Richard W Allen wrote: ChartGraphics.Dispose();
You shouldn't be disposing objects you didn't create by calling 'new' on them
|
|
|
|
|
leppie wrote: You shouldn't be disposing objects you didn't create by calling 'new' on them
right, especially if you add "... unless you obtained them from a method with Create in
its name, as in CreateGraphics".
|
|
|
|
|
leppie wrote: You shouldn't be disposing objects you didn't create by calling 'new' on them
Many many thanks - that did the trick!!
|
|
|
|
|
I'm new to C# and use VS Express 2005 and SQL Express 2005.
Question:
1. I have added Employee.mdf database via Project->Add new item->SQL database
2. Using the following, but see strange things:
SqlConnection sqlcon = new SqlConnection(connectionstring);
- If I use connectionstring as:
"Data Source=.\\SQLEXPRESS;Initial Catalog=Employee;Integrated Security=true; User Instance=True"
I get error like: User domain/user passoword failed! No remote access etc strane errors
- If I use connectionstring as:
"Data Source=.\\SQLEXPRESS;AttachDbFilename=\"C:\\Documents and Settings\\user\\My Documents\\Visual Studio 2005\\Projects\\MyDatabase\\MyDatabase\\Employee.mdf\";Integrated Security=True;User Instance=True"
Then it works fine!
But in every book I see, they give the above 1st case but it does not work for me? Any idea? Is it fine to explicitly using the database path in C# project?
|
|
|
|
|
|
How to setup user in SQL with WIndows login credentials?
|
|
|
|
|
Hi,
Mmm wasnt sure what to put in the subject lol anyways,
Im busy with a web app and one of my pages contain quite a few controls for input.
There are a few conditions of when certain controls need to be visible or not.
Can anyone please give me some advice or suggestions on how to write proper code in working with conditions in this situation instead of hardcoding everything in a messy way.
Please let me know if I didnt explain properly.
Thanks
|
|
|
|
|
This is not the web dev forum, but you can set the Visible property of your control to false and true as you please.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Will the conditions be known only at runtime?
I recently finished working on web app that needed to be used by different companies with specific controls that could be visible depending on who the company was. The route chose was to create an xml file using control "id" & "visible" as fields. Before rendering the page I call on the xml, loop through the controls collection & set their visible properties. Bit of an ugly hack but it works pretty well.
I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.
• • •
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
Hello everyone,
I have an Windows Application which loads images from a remote database into a Datatable. The images from the DataTable are then used for Button images. I was wondering if it is possible to Fade in and Fade out the images when are going to be displayed as the button image?
Thank you very much and have a great evening.
Khoramdin
|
|
|
|
|
I think the neat solution for this is creating a custom control which allows transparancy. You can then create a paint event which will draw the image on your control, and use transparancy to create the fade effects.
|
|
|
|
|
I think the neat solution for this is creating a custom control which allows transparancy. You can then create a paint event which will draw the image on your control, and use transparancy to create the fade effects.
Or ofcourse use the Picturebox control and create / use the opacity property
|
|
|
|
|
Hello,
A quick and dirty solution, would be placing a boarderless Form over the Image and play around with the Opacity property in combination with a timer.
All the best,
Martin
|
|
|
|
|
This is trivial in WPF (it can even be done from markup if you prefer), but then it obviously requires .NET 3.0. You can easily create a custom button control in WPF and host it in the WinForm application using ElementHost. If .NET 3.0 is not an option, lower the expectations of how fancy the UI will be - WinForm is terribly outdated.
|
|
|
|