i wanna clone a mdi child form when user click the "clone" button. How can i do ?
Greeky
Posts
-
CLONE FORM -
Show random Form:) u get me wrong. none of the forms at cache. A solution consist of 12 seperate projects. all forms count is about 1000. there is one Main MDI Form Project, others are dll including forms. I wanna add a toolbar to mdi form. But i would like to make it customize by user. Each user can add his/her own short cut buttons to toolbar. Think i use Vs.net envoirenment with just "Standart" and "Layout" toolbar. I can add or remove buttons to each toolbar. In my project I wantto use just one toolbar. And user will choose his/her buttons. I add them to toolbar after login proses. When adding, i must add handler to all buttons. when user click a button, i have to create instance of form which belongs to that button then show.
-
Show random FormIn a project, I have 1000 forms. guess you have a string contains a name of a random form. How can u show this form?
strFormName ="frmForm274"; ???any method like this ??? ???Form fx= GetForm (strFormName); ??? ???fx.show();???
I aim this for ToolBar Items. I have an Table at database.Table contains Form names. User Selects which buttons will be shown.then when user login to program, i read users toolbaritems, add them to toolbar.But i have to write some code to activate click event to show form. -
ListView.ShowGroups=TRUESURE I USE .NET FW 2.00
-
ListView.ShowGroups=TRUEI set
ListView.ShowGroups=TRUE
but i couldnt see the groups on listview at Windows 98 client W H Y ? H Y ? -
ListView.ShowGroups=TRUE [modified]I set
ListView.ShowGroups=TRUE
but i couldnt see the groups on listview at Windows 98 client W H Y ? H Y ? -- modified at 5:22 Tuesday 23rd May, 2006 -
Open "Windows Image and Fax Viewer"How to open "Windows Image and Fax Viewer" from .net application i have to send an image as a parameter i guess -- modified at 5:18 Wednesday 10th May, 2006
-
Show ScrollBars on Imagehow can i show scrollbars on picturebox, i dont want to show an image as streched. I like to show on normal mode. but sometimes image is bigger than picturebox sizes. so i cant see other pice of image .
-
Changing Colorsthank you I found this sample so GetPixel and SetPixel is ok for me. My new question is my picture box is set to Strech view. My image's width =768 , height=503 but on secreen, rightbottom corner pixel coordinat is x:460 y:261 So when i want to show color where mouse on over, it shows another color because of wrong coordinats. might i convert to coordinats?
Bitmap bitmap = new Bitmap("C:\\TV2.bmp"); int width = bitmap.Width; int height = bitmap.Height; int i, j; for (i = 0; i< width; i++) { for (j=0; j -- modified at 6:03 Friday 5th May, 2006
-
Changing ColorsFor example,you have picture(is painted with solid colors not gradiant) at mspaint, I would like to change all X color to Y color. How could i achive that? Is there any method at Drawing class (i coulnd find any :'()
-
how to Save Matrixthat is why i ask for :) (XXL or XS or any other numeric sizes. ) i search for any easier other way but i think there is no possibility :( ,thank you for reply
-
how to Save Matrixi already did so , but i think it is not effective way. When reports i show these values as a table (using listview object). But it is hard to populate values in to a listview. First i read just columns for creating column header Then i try to read values at ModelQuantity for rows. Care that all color1 values must be at the same row. So after for datareader.read process , i create a listviewitem object.
-
how to Save MatrixImagine a matrix,
S M L XL color1 10 20 30 0 color2 4 5 45 50 color3 1 0 4 5
You a sample matrix what i work on. columns are quantity of sizes (some of them may equals to 0 ) . Rows are colors. rows count and columns count are variable. How to save them to data base. rows are in a table, size are saved on other table. But i couldnt solve how to save values on table. what do you offer to me ? -
Saving Matrix DataImagine a matrix,
S M L XL color1 10 20 30 0 color2 4 5 45 50 color3 1 0 4 5
You a sample matrix what i work on. columns are quantity of sizes (some of them may equals to 0 ) . Rows are colors. rows count and columns count are variable. How to save them to data base. rows are in a table, size are saved on other table. But i couldnt solve how to save values on table. what do you offer to me ? -
sqlconnection :S :S"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. " how to configure server for remote connections -- modified at 14:55 Thursday 27th April, 2006
-
sqlconnection :S :Sex.message = Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
-
sqlconnection :S :SWhen i use oledb.oledbconnection,i connect to SQL Server with this connection string :
Provider=SQLOLEDB.1; Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL;
But when i use sqlclient sql connection , i cannot connect to sql server. my sqlclient connection string isPersist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL;
What is missing? -
SQLCLIENT CONNECTIONWhen i use oledb.oledbconnection,i connect to SQL Server with this connection string :
Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL
But when i use sqlclient sql connection , i cannot connect to sql server. my sqlclient connection string isPersist Security Info=False;User ID=sa;Initial Catalog=MDLABS;Data Source=SQL
What is missing? -
mERGE cONTEXT MENUESIN A PROJECT, i extended picturebox class, then added a context menu to picture box. in a form , i used picturebox, how to add new contextmenuitems to picture box?
-
colored columnheaderis there any easy way to paint a column header? if not i will set UseItemStyleForSubItems of listviewitems for specific subitems that located at the columnheader which i want to paint;then set backcolor of that subitem to any color.