|
Hello All:
How can I add an icon for any element inside list view,
thanks
|
|
|
|
|
Step1 :
use one ImageList and load all required images !!!
Step 2:
Use ListViewItem Class object ListItemobj
Step3:
ListItemObj.ImageIndex= set image index from ImageList
Hope this will help you
|
|
|
|
|
i have created a report using crystal report and i want to open it in reportViwer in C# 2005 how can i do that ?
|
|
|
|
|
The ReportViewer is for SSRS reports, not Crystal Reports.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
so how can i display the crystal report
|
|
|
|
|
Did you try searching[^] for an answer to your question yourself?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
sure, so how to use reportviwer ?
|
|
|
|
|
shabonaa wrote: sure, so how to use reportviwer ?
I already told you, you can't use the Report Viewer control for Crystal Reports
The Report Viewer control is for displaying SSRS reports.
Which part of 'you can't use it' didn't you understand?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
how to set the report source. i was using it in VS 2003
|
|
|
|
|
you can you Crystal Reports viewer to view the reports .
give the Crystal Report Source !!!
|
|
|
|
|
As Paul has stated, Crystal Reports and ReportViewer are two different products.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
yes i tried it and it works, thats guys
|
|
|
|
|
Hi there,
I am trying to save an Image from a database to a file but it only save the following to the file
"System.Byte[]".
fileWriter.Write(dsExportDataTypes.Tables[0].Rows[i]["ATTACHMENT"]);
fileWriter is an object of StreamWriter Class.
Mujtaba
"If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."
|
|
|
|
|
You're using the wrong class. StreamWriter is used for writing character data to streams. To save an image to a file, you need to use a class that will handle a binary stream of data. FileStream[^] is the most appropriate class to use. Your code would look like:
myFileStream.Write((byte[])dsExportDataTypes.Tables[0].Rows[i]["ATTACHMENT"]);
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hai All,
How can we open only one instance of a form at a time from a MDIparent form in C#.net
Thanks & Regards
|
|
|
|
|
this condition on Form1 would ensure that there's only one copy in the existence
if(obj == null || obj.IsDisposed)
{
obj = new Form2();
obj.Show();
}
Sathy
|
|
|
|
|
You can do that by having a "manager" class that manage the child form.
1. Caller call a method in the manager, given the type of the form that you want to open.
2. Manager check MdiChildren of that type, if it finds it, return the form object back to caller.
3. If manager not able to find it, then create a new instance via reflection, then return back to caller.
4. Caller receive the form, do necessary action on the form (pass object, show, etc)
You can mix it up a bit by having some form can only be opened as 1 instance, while other form can be opened multiple time, by adding customattribute to the form class or adding an "AllowMultiple" via subclassing Form.
This is by no means the only way.
|
|
|
|
|
Any idea on mouseover outside the form?
eg:the form is not on focus and when i mouseover a text from another program an action will trigger.
|
|
|
|
|
i think you can not do that because you will be out of the scope of the event,
but try to google for background processes something like that to capture the mouse.
|
|
|
|
|
thanks but, may i know how is actually API SPY 2.7 work? when we use mouse to mouseover others windows form object, it will show the object handle, text, class and so on. it zit related to as what you hav mentioned background processes?
|
|
|
|
|
Handle NC_MOUSEMOVE .
/ravi
|
|
|
|
|
I want to drag one picture from my HTML browser(e.g. IE7) and drop it to my windowsApplication.
In final address of picture(e.g. "Http://www.tinypic.aaaaaaa.jpg") appear in windowsApplication.
I would be very thankful if anyone provide me Sample.
|
|
|
|
|
Boroumandan wrote: I would be very thankful if anyone provide me Sample.
This isn't how the site works. People don't do your work for free.
What research have you undertaken to solve your problem? What code have you already tried to write?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi guys ....im just intresting in serial port programming one simple one i want try now just connecting one gang way switch to PC via serial port.
method:
when switch was pressed, application should display "switch has been pressed"
any ideas ?
so much of happy ending...
|
|
|
|
|
if u r using VS 2005 you will find SerialPort Control in the toolbox.
just added it and specify it is com number and bouadrate then open it and read
|
|
|
|