I’m about to call a function in a native windows dll from my managed C# dll project. I want the function to return some kind of string (char*) so I get it as a System.String in my mandaged dll.
How can I do that? I’ve tried to add CLR support on my native dll but for different reasons it can’t...
I’m struggling with a thread that should update a TreeView. I’ve started to use the Control.Invoke method when for e.g. adding nodes and so on.
I now wonder how I “Invoke” a property.
(I got the “Cross-thread exeption…” when I try to set the TreeView.ImageIndex property)
I’ve created a Spash-form that shows and hides while my main form initializes. When I closes the splash-form my main window is paced behind other applications in Windows.
How can I force my application form to be the “on top application”?
I’ve tried all these functions:
this.Activate()...
I have a program that reads Microsoft Project 2003 XML-files
Now I'm in need to read in mpd-files as well.
Any tip on how I can do that? A simple tool/service for converiting mpd to xml would be great!
I’m coding in C# and I am working with a COM object that I earlier in C++ made this call:
COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR);
hresult = pTemp->Add(knownObject, &varBeforeEnd );
How do I make the call in C#?
The IDE in VisualStudio say that the Add(…) function should...
I’m about to create an options dialog that will be opened from my windows application main Forms menu.
I have many different “modules” in the application which each of them need to have an own options dialog. For sure this is a common situation.
I need some kind of “pattern” to create an...
Where can I find the typed dataset for MS Project XML files?
Iv’e tried to create my own but when trying to read an MS Project XML-file like this:
MSProjectDataSet dataset = new MSProjectDataSet();
dataset.ReadXML(“savedXMLfileFromProject.xml”);
I get different exceptions.
All tips in this...
I finally have an understanding of how to create simple reports from my dataset using the ReportViewer. I now wonder how I can make custom (SQL-queries) on my dataset that will fill for e.g. a table.
For example I have a picture that I like to insert into my report. That picture do I store as a...
I’ve made some reports using the ReportViewer and Reports (*.rdlc-files) in visual studio 2005. I really enjoy the ReportViewer!! My reports is now generated direct from my SQL 2005 database but I now want to generate a report from a typed DataSet that is instantiated locally in the program (my...
I hane an application where one of my dialogs is created when the program starts. I like to call Form.Show() and Form.Hide() to show and hide the form.
When the user presses the system-X button the form is per default disposed. How do I prevent that I just want a Form.Hide() when the user...
I like to preview some Image objects in 64*64 format in some kind of control.
Is there any .NET control for that. I only find the ListView control but with that I only can preview pictures in 16*16 format and that is to small for me…
I’m working with an ActiveX and it’s API has some samples on how to handle COM interfaces and so on.
How do I make the call QueryInterface in C#?
My C++ codline work like this:
hr = pMaterialField -> QueryInterface ( IID_ISFColorObject, (void**)ppDiffuseColor );
I’m using a third party ActiveX control in my .NET Application. I manage to handle the callback in unmanaged C++ like this:
class MyCallback : public ICallback
{
…
void OnComplete() {…}
}
…
MyCallback *callback = new MyCallback();
someobject->SomeFunction(“just a string”, callback);
The...
I’m going to build an application that should be based on plugins that extend the core application with extra customer specific functions.
I like my plugins to have a common look, fell, and behaviour. I like tips on how to design my application to make it extendible. I like some tips on design...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.