|
hehe good idea but not my intention.
I'm thankfull for any suggestion.
|
|
|
|
|
ok i think i found the solution and yes it is possible
picturebox.setclip should do the work for me. Now im gonna try it...
|
|
|
|
|
Hi,
I have created an Outlook 2007 plugin using VSTO and I am getting an error that I hope someone out there has seen and could help me fix.
The plugin (add-on) is a command bar that simply waits for a (email appointment, or task) property to change (MS CRM stuff - gets changed by Microsofts CRM Integration) and then shows a Windows form asking for a Category. Everything works great unless I follow a very specific set of steps.
What I mean by that is I can get the form to popup a hundred times for Emails, Tasks, and Appointments and never have a problem. Then if I do an appointment a certain way, it blows up and then it will do it for everything until I restart Outlook.
This is the error message I get...
Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Runtime.InteropServices.UCOMIConnectionPointContainer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B196B284-BAB4-101A-B69C-00AA00341D07}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
I can find almost no information about UCOMIConnectionPointContainer other then it looks like it is depricated in the .NET Framework 3.5. The odd thing is where this error is occurring, I am not actually trying to cast to a UCOMIConnectionPointerContainer object, I am trying to cast to an Outlook.Appointment object.
Here is the piece of code that causes the error....
if (m_Item is Outlook.AppointmentItem)
{
m_ItemType = OutlookItemType.AppointmentItem;
((Outlook.AppointmentItem)m_Item).CustomPropertyChange += new Microsoft.Office.Interop.Outlook.ItemEvents_10_CustomPropertyChangeEventHandler(Item_PropertyChange);
((Outlook.AppointmentItem)m_Item).Write += new Microsoft.Office.Interop.Outlook.ItemEvents_10_WriteEventHandler(OutlookItem_Write);
}
else if .......
This goes on to check for a Mail Item and a Task Item. Those never fail initially. It is always an Appointment item and once it fails, then I get the error for almost everything.
I hope somebody has seen this an can offer some advice.
Thanks in advance,
Wendell
|
|
|
|
|
Hi,
I am trying to populate data into one grid name Grid1 using the row selected in Grid2. Grid1 and Grid2 have a common ID called ColorID . For a row with ColorID selected in Grid2 I want the data corresposding to that ColorID and also I have few combo boxes in the same grid2 selecting on which data to be populated in Grid1
Can someone help me with this or providing some link from which I might look and try to work on !!
Thanks a lot !!
|
|
|
|
|
I have a Windows form and I want to display a row across the bottom with a group of images.
The image location will be stored in a database.
I want them to be side by side in a single row. I know I can use a datagridview to display them vertically, but I am not sure if this can be done horizontally, nor am I sure if this is the right approach.
What is the right control to use for this? I want to be able to click on each picture and change the current record in the windows form to reflect the selected picture, I want to be able to scroll through the images (Horizontally only).
Is this a job for a repeater or datalist? Does anyone have a URL example of something of this sort?
Thank you in advance.
|
|
|
|
|
Hi,
I haven't done this yet, however my first attempt would entail a ListBox with its MultiColumn property set true.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi,
I have simple form with 4 controls.
listbox, textbox, button and combobox (with 3 colors - red, blue, green).
When i press on the button i want the message that in the textbox will show in the listbox but with the color from the combobox.
Some can help me with that?
Thanks
|
|
|
|
|
here[^] is an example to show how to use the drawitem event of the listbox in order to change the color of the text
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Yes, i saw this article.
But how i combine this with the click event?
|
|
|
|
|
Hi,
this[^] is the simplest example I have on colored listbox items.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
All items the same color? Or different colors for different items?
If the latter and the ListBox won't do it, maybe try a TreeView instead.
|
|
|
|
|
The color off the text wil be the same as shown in the combobox.
for ex:
textbox - "Hello World".
combobox - Red.
When i press the button the listbox will show the line "Hello World" in red.
|
|
|
|
|
IMO that did not answer the question: if you choose red and click the button, then choose green and click the button again, would the ListBox now show two lines using different colors?
I understood it would, and that is what my earlier example does too.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
But i still dosen't understand how to combine the click event with the
DrawItem event.
Can you please explaine me this?
|
|
|
|
|
Hi,
you don't have to worry about the firing of the DrawItem event, it basically works like the Paint event of any Control, i.e. it gets fired by Windows when (part of) the Control needs being redrawn because something happened (a Window on top of it has been removed, the user caused a scroll, whatever) OR your program told the Control something has changed (by calling Refresh or Invalidate).
So make sure the content of your Control is what you want it to be, e.g. on a button click, add an item to the ListBox.Items collection. And if something changes without the control knowing it, tell it to redraw with Invalidate().
Did you look at my example at all?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
It working...
Thanks
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
how i can get a volume serial number by c# language ?
|
|
|
|
|
By using the <a href="http://www.eggheadcafe.com/articles/20021019.asp">GetVolumeInformation</a>[<a href="http://www.eggheadcafe.com/articles/20021019.asp" target="_blank" title="New Window">^</a>] API.
|
|
|
|
|
That is a soft number, the doc says "This function returns the volume serial number that the operating system assigns when a hard disk is formatted." Not the real stuff.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
You're right
I just saw the keywords "volume" and "serial" and didn't stop to read the question.
Kafein
|
|
|
|
|
Hi,
there are two serial numbers:
- a soft one, created by Windows when formatting a partition; that's what GetVolumeInformation would return.
- a hard one, set by the manufacturer, and read-only afterwards. There are a couple of ways to get it, one through WMI, one through direct device I/O with CreateFile and ReadFile; both of these require admin with elevation under Vista (and probably all future Windows versions).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
What would you do with it? Most things involving getting hardware serial numbers are pure evil..
|
|
|
|
|
I have written an application where a user can select some parameters using a windows form. The app grabs data from various tables and amalgamates them into a single table. I have also created a dataset with the same columns as the amalgamated table. I created a new crystal report and added the table in the dataset as its datasource. I dragged the columns onto the report.
At runtime, I fill the table, then set the report's datasource to the amalgamated table like below:
EmployeeReport rpt = new EmployeeReport();// This is the crystal report
rpt.Database.Tables(0).SetDataSource(data); // data is the amalgamated table filled at runtime
Then I set the CrystalReportViewer control's source as below
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.ReportSource = rpt;
However, none of the fields are shown in the report except for the layout which I created at design time using boxes and labels etc.
I have been searching and googling but no luck
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
I don't believe it! No one here has an answer! Come on I need some help!
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|