Hi! this is not realy what i want... I mae port of structures and interfaces long time ago, but I think I make something wrong... that is why I ask for example of code. BTW Heath Stewart wrote: After that, simply call Clipboard.SetDataObject(object) or Clipboard.SetDataObject(object,bool) in your client code. such code will not work with Clipboard implementation provided by NET Framework. That is why I need example with OleSetClipboard and OleGetClipboard API methods calls. Good Luck Alex Kucherenko
Oleksandr Kucherenko
Posts
-
Clipboard and IStorage -
Clipboard and IStorageHi! Anybody know how to put IStorage or IStream interface into NET clipboard? (with example please) Good Luck Alex Kucherenko
-
unicode in c#Hi! Console automaticaly convert string to OEM encoding and then type it in console window... that is why not all unicode charecters can be converted and shown in console window. try to do the same on WindowForm... Good Luck Alex Kucherenko
-
GDI Tip of the DayTry to search more in MSDN. look into
Brushes.Black
Good Luck Alex Kucherenko -
GDI Tip of the DayWrong! but can be used. in net we have such classes: SystemPens, SystemBrushes and etc. Your class does not check is requiered Pen or Brush can be replaced by System version, which are exist as singleton instance for hole application and does not use additional GDI Objects. Good Luck Alex Kucherenko
-
Virtual companyGood idea, but no Implementation. Step to make own company (on my mind): - register firm - solve problem of money payment (open in bank bill or something else...) - create own site (on site make advertise to your services and products) - make descision which sector of customer you want to catch... - make advertise of company site on popular sites/magazines/etc. (according to customers which you want to get) - get on hand two-three developers which live with you in one town (needed for critical situations, like deadline!) - and wait... To make company work you must put into advertise at least near by 5000$(USA) Good Luck Alex Kucherenko
-
Have anyone idea how to spend weekends?Have anyone idea how to spend weekends? I always want to ask other developers how they spend there weekends... In my case this often looks like: - I meet with my friends from other developers firms and we drink beer and talk about programming.... :cool: Good Luck Alex Kucherenko
-
declaring variables...Only two question: Is it realy needed to support Sql and OleDb clients at the same time? You need both dataaccess methods in runtime? I make my current project using only OleDb... And I can say that i have no performance looses. OleDb give you more kinds of storages that can be used by you. So... if you still interesting in support of two data access methods then better write own short wrappers... later they can be easily grow to someting more complex. Good Luck Alex Kucherenko
-
declaring variables...use interfaces! Good Luck Alex Kucherenko
-
Undo/Redo/MultiClipoboard managersdoes anyone yet write undo/redo manager for .NET windows forms applications? does anyone write multi-clipboard manager for .NET? Good Luck Alex Kucherenko
-
Datasets - Adding columnsTry such way: - create copy of DataColumns - change in copy name to unique one (add prefix to names) - add copy DataColumns to collection - ??? map data of old columns to new columns ??? (how to do that???) - remove old columns from collection - change names of columns to default one (remove prefix from names) I don't know how to re-map columns data, but i think this is easier to do then copy all data from dataset... Good Luck Alex Kucherenko
-
Datasets - Adding columnsDataSet dsSet; DataTable table; // ... fill of dataset ... DataColumn[] columns = new DataColumn[ table.Columns.Count ]; table.Columns.CopyTo( columns, 0 ); // ... table.Columns.Clear(); ArrayList lst = new ArrayList( columns ); // change order and quantity of columns lst.Insert( ... ); lst.RemoveAt( ... ); lst.Add( ... ); // add columns to table again table.Columns.AddRange( ( DataColumn[] )lst.ToArray( typeof( DataColumn ) ) ); lst.Clear();
Only one note... I don't know what will happens with DataTable Data... Good Luck Alex Kucherenko -
Datasets - performing selectsOR
DataView view = new DataView( dsSource.Tables[0], "col1 = " + **... Value ...**, "", DataViewRowState.CurrentRows );
Good Luck Alex Kucherenko -
Datasets - performing selectsDataRow row = dsSource.Tables[0].Rows.Find( new object[] {'a'} );
Good Luck Alex Kucherenko -
A .Net way to do PostMessage()?Look into BeginInvoke... this method works like PostMessage... In my application I use PostMessage API... :| Good Luck Alex Kucherenko
-
Is it a new version of DLL hell?Upgrade server is still the only one solution for this problem... I want to find more then one solution (if it exists :( ). Thanks for help. Good Luck Alex Kucherenko
-
Is it a new version of DLL hell?Hi! I have such problem: - i make 3-tiered application, in which data access layer work on standalone computer (Server). - I have some clients which use this server. On server I have Framework 1.0 only! But clients can have differ configurations: - only framework 1.0 - only framework 1.1 - both frameworks in case when client has only 1.1 version server sometimes throw strange exceptions. On Remoting of OleDbType I have exception that server can not create instance of object on his side.
'FastReporting.exe': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll', No symbols loaded. Strong Thread Exception: Exception: File or assembly name System.Data, or one of its dependencies, was not found.
Does anybody know how to configure client or server to remove such problem? Good Luck Alex Kucherenko -
Custom controls problemsHi! I have such problem: I wrote DLL which contains many controls, it always attached to solution like a single project. All works fine till I try to change version of my DLL in AssemblyInfo.cs file... After change all form which use custom control in designer look strange. All custom controls disappeared and on Task window has many errors like this one: Could not find type 'MenuItemEx'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. All references in project are set well... Application start without any problems... but I loose opportunity to edit any form!!!! I can design it and after close and try to open again loose all control on form... Does anyone can suggest how to fix this problem? The main problem is that I can not change version number back... release of application was accomplished!!! Good Luck Alex Kucherenko
-
Ideagood, but not enough Good Luck Alex Kucherenko
-
C# Dynamic Assemblytry to use attributes
[Designer( **"UtilityLibrary.Designers.WizardFormDesigner, UtilityLibrary.Designers, Version=1.0.4.0, Culture=neutral, PublicKeyToken=fe06e967d3cf723d"** )]
In bold is a sumbolic name of assembly. By such name Framework can find and load needed assembly. In your case look for Convert attributes:[ Category( "Appearance" ), DefaultValue( -1 ), Description( "GET/SET toolbar item image from Image List" ), Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor)), TypeConverter( "System.Windows.Forms.ImageIndexConverter" ) ]
Such knowladge can help :) Good Luck Alex Kucherenko