|
Actually you looked far more deeper than I was asking
I was simply wondering if the plug-ins would be .NET or if they would be written as a C/C++/COM object.
Now, the reason I was asking is because .NET gives you a lot of information about a .NET assembly at runtime; enough information that you can see what types are available in an assembly.
I've written an article a while ago that does just this.
Using Reflection to extend .NET programs, if you have any questions about it ask here or in the articles forum
James
Sonork ID: 100.11138 - Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Thanx, I'll look into it right now
|
|
|
|
|
Ok.. here's what I'm trying to do
I have a windows form with a datagrid that display the content of a table in a database. (let's say countries for example) I can edit, delete and add records in this grid.
In another windows form, I have a combobox. This combobox displays all countries. I want to add an item in this combobox (Add a country) and when I select it, I have to show the first form to allow the user to add, edit, delete countries and then select one. All changes applied in the grid have to be applied in the combobox and the (Add a country) item must not appear in the grid.
How can I add an item manually in the combobox when this one is binded to a datasource? I don't know if it's possible, but if it is, if someone could send me some tips, I would appreciate!
Thanks
Marc
|
|
|
|
|
Can someone please explain to me how i can get a bitmap inside of my application to disappear with the push of a button?
Thanks!
|
|
|
|
|
How are you displaying the bitmap? If its on a Picturebox just use Picturebox.Visible = false
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
have someone any idea or a code sample or a url with code sample?
thx
Pawel
|
|
|
|
|
Set the TreeView.CheckBoxes property to True.
|
|
|
|
|
thx!
but where i can find in www some codesample about working with treeView?
pawel
|
|
|
|
|
I have a printDocument,printPreviewDialog and printDialog.I want when user click print preview see some text that is not visible in the form,and only see it in print preview.Where is the proper event for this task?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
you have to calculate each line char and position and reposition it on the print doc
|
|
|
|
|
Using C# I've created a service and want to get notification of events
written to all event logs on the local machine.
The follow code works fine for Application and System logs but
I don't get any events for the Security log?
Any help would be greatly aprecated.
Mike Willis
public void appname_EntryWritten( object sender, EntryWrittenEventArgs e)
{
... do some stuff
}
int iLogCount=System.Diagnostics.EventLog .GetEventLogs().Length;
this.eLogs=System.Diagnostics.EventLog .GetEventLogs();
for (int i=0; i
|
|
|
|
|
Ok, I give up. Was working great on my control, and now I can't get anything but this error message when I try to drag my control onto my test project.
> The user control 'Blah' could not be loaded. Ensure that the library containing the control has been built and a project reference has been made to the library containing the control. If you have changed the name of the user control, close and re-open the control's designer to update the toolbox item.
I'm sure it's something TOTALLY simple to fix this, but I'm going insane!! It used to work, and now, nothing!! I've been stuck for 2 days now.
// Add a testing project
1) Select File - New - Project
- Click 'Windows Application'
- Set Name to 'TestMain1'
- Click OK.
// Create a new control
2) In the 'Solution Explorer', right click "Solution 'TestMain1' (1 project).
- Select 'Add - New Project'
- Click 'Windows Control Library'
- Set Name to 'Test1'
- Click OK.
// Build...
3) Press F7 to build both projects.
// Now add the control to the main project.
4) In the 'Solution Explorer', double-click the file 'Form1.cs'
- View the 'Toolbox - Windows Forms'
- The bottom of the list should show 'UserControl1'
- Click on 'UserControl1' and drag to the form.
* Error Message Displays*
Can someone please tell me what I am doing wrong in the above situation?
I tried completely reinstalling .NET and I have also just updated with SP1.
Thanks in Advance!!
|
|
|
|
|
I think you need to add a reference to the control library from the windows forms application. In solution explorer, right click on "References.." in the windows app, select Add Reference. Change to the Projects tab, and tick the control library.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
/nod, the process that I have listed will automatically add the reference.
Going ahead and doing it again had no effect.
Thanks for the attempt.
|
|
|
|
|
GRRRRRRr..... This little example I used works FINE at home.
Great, that means that something is now corrupt. Going to completely uninstall and reinstall the developer's system.
|
|
|
|
|
Ok, finally fixed.
Uninstalling/Reinstalling does nothing. The uninstall does not affect the registry.
Remove key HKEY_CURRENT_USER/Software/Visual Studio
|
|
|
|
|
Let me guess, The path that you built the control in, contains a # symbol.
I ran into that a few days ago. What a pisser...
|
|
|
|
|
Is there any .NET framework class which exposes Windows Terminal Services API?
omkamal
|
|
|
|
|
I have a string ,if somethings happen in my applicaion it ends with "AND" statement,I check if it ends with "AND" withEndWith() ,if return true I want to remove "AND",I can't do it with Remove() ,because I don't know the starting position.
How can I manage this operation?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
string s=MyString.Substring(0,MyString.Length-3)
Jerzy
|
|
|
|
|
To draw a transparent bitmap on the form I use the old trick from VC++ which is to draw a bitmap that is stored in ImageList. When you set TransparentColor property of ImageList to the color of the bitmap's transparency color, the bitamp is drawn transparently on the form.
My problem is that this doesn't work when there is another bitmap on the form behind my bitmap. I want to see this another bitmap through the transparent bitmap.
In VC++ a was using SRCCOPY, SRCAND and SRCINVERT in BitBlt(). I don't see any equivalent of raster operation codes in C#.
Any ideas?
Jerzy
|
|
|
|
|
Bitmap bmp = Bitmap.FromFile( strFilename );<br />
bmp.MakeTransparent( clrTransparentColorInBitmap );<br />
<br />
Graphics g = GetGraphicsObjectToPaintOn();<br />
<br />
g.DrawImage( bmp, x, y );
Took a bit of searching to find it
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
Thanks James
Yes, it's a nice alternative to was I was doing (using ImageList class). But I forgot to explain that I was using PictureBox control not device context. I still wonder if I could use two PictureBox controls, one transparent over the other.
Thanks again
Jerzy
|
|
|
|
|
ive got an inherited form base class (BannerDialog) that has a banner on top and buttons on the bottom. the banner and buttons are anchored to the form using the ide'd design window.
my problem is that on the inherited form (MyDialog : BannerDialog) the banner and buttons dont move when MyDialog resizes.
|
|
|
|
|
Did you call base.OnResize() ?
Jerzy
|
|
|
|