|
Hi ,
How i can cut ,copy ,paste a runtime control . I Searched the net but not get the desired results .For example (It is the functionality of VS2005)
ctrl.Visible = True I used CTRL as a object type which i used for creation of controls .
I wish Your Help is Required ....
DVSRIRAM
|
|
|
|
|
At runtime?? You have to implement this entire functionality yourself, using a generic Control object. Copy would set the your Control object ot the control being Copy/Cut, paste would Add this Control object to whatever container's Controls collection.
|
|
|
|
|
Presently i am using contextmenustrip which is a control for showing menus when user rt clicks the mouse . I am not getting the popup at the user clicked position. i used like this inthe ctrl_mouseDown or
RtClickPropertiesStrip.Show(New Point(ihorizontal, ivertical), ToolStripDropDownDirection.BelowRight)
But of NO USE and while clicking on TExtbox it is showing their default properties . i have to overwrite those predefined and want to show custom defined popup .
Waiting for Response
DVSRIRAM
|
|
|
|
|
You set the ContextMenu property of the Form to your menu. This make the menu pop up for the entire form, BUT NOT FOR THE CONTROLS ON THE FORM! You have to set the ContextMenu property on any controls on the form, like your TextBox, where you want this same menu to appear. If you want the same menu to appear for all of the controls, you'll have to set the ContextMenu property of ALL the controls on the form to your context menu.
|
|
|
|
|
Respected gurus
I m working with a windows datagrid.i need two headers in my grid.
eg..
Product name
cat1 cat2 name1 name2
data data data data
data data data data
How to achieve it.
My data is coming from backend.
i need it in the windows application......
-- modified at 8:43 Thursday 20th September, 2007
|
|
|
|
|
It's not supported by the old DataGrid, or by the DataGridView controls. You'd have to add this yourself, either by using cleverly placed and defined label controls above the DGV, possibly in your own UserControl, or by creating your own version of the DGV control and adding this functionality to the existing control using custom properties and painting code.
|
|
|
|
|
Hi Friends..
I use a main menu control to show menu items..Now i need to show a image in menu along with some text ..Is it possible..? Can anybody give the code for it..
Regards,
Balaguru
|
|
|
|
|
Yes it is possible, for this you will need to set image property of ToolStripMenuItem object.
Following is a code snippet showing this behavior-
----------------------------------------
Dim NewItem As New ToolStripMenuItem
NewItem.Text = "New Item"
NewItem.Image = Image.FromFile("C:\img11.jpg")
Me.OpenToolStripMenuItem.DropDownItems.Add(NewItem)
------------------------------------------
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hi Dave,
Is ToolStripMenuItem a tool present in the toolbar..?
How to get it in the toolbar and use..?
Regards,
Balaguru
|
|
|
|
|
If you are using Visual Studio 2005, you should have MenuStrip item in Toolbox, which is a ToolStripMenuItem object.
However it seems that you are using Visual Studio 2003 and .Net framework 1.x.
In this case you are correct we do not have any direct way to add image into the menu item, because any Image or Icon property has not been provided for the MainMenu.
However you may still have an image in menu by drawing whole menu item using custom code.
For this you will need to first set OwnerDraw property of MainMenu control to True.
This allows you to take control of control rendering. Then under DrawItem event you may have your custom code for drawing.
You may check following article which provides good information about the whole process-
http://www.codeproject.com/cs/menu/menuimage.asp
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Hello friends ,
It is possible to create window netmeeting type application in
vb.net if yes how ? thanks in advance .
manu
|
|
|
|
|
Yes, it's possible. How, is too broad a question to answer in a forum reply. Consider working out what the bits are you need to do, such as network communication, and then research those.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello
i wanna ask if anyone know any component that supports right-to-left.
thanks
|
|
|
|
|
You mean text ? Doesn't Windows just support that for certain locales ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi again,
first of all thanks for ur reply.
what i mean by right-to-left not only the text. i mean the controls specially grids.
what i need exactly is a grid when i press 'Enter' or 'tab' key move to next cell from right-to-left.
thanks again
|
|
|
|
|
|
That deserves a 5 (they dont do 10's sorry :-P)
Dan
|
|
|
|
|
|
IT's for unmanaged apps, so not for VB.NET. It's not going to substitute for writing good code in the first place.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi folks,
my problem is i have string like 01/03/2000 12:23:34 i.e DD/MM/YYYY HH:MM:SS
i want to convert this as 01/mar/2000 12:23:34 to store in sql Db.
Pls help me for this issue,
advancedly thanks for replies
Thanks&Regards
RENU
|
|
|
|
|
DON345 wrote: to store in sql Db.
y u want to store such value in sql db.
stored in the default date format and then when viewing the data select the formt u want the date to be seen in..
|
|
|
|
|
Use the DateTime.ParseExact method with the format "dd/MM/yyyy HH:mm:ss" to parse the string into a DateTime value.
Don't store the value as text in the database, store it as a datetime value, and use the data format you like when you convert the value to a string after retrieving it from the database.
---
single minded; short sighted; long gone;
|
|
|
|
|
i need to design a enevlope and label design and print software in vb.i dont know how do i do it.please goto MS word->tools->letters and mailings -> envelope and labels under that labels part needs to implemented.this is used to design ur own lable sheet and print it.also need to provide feature for backgroung image.logo image and stuff.crystal reports do provide feature for designing labels but not on a run.so please help as to how it can be done.if u have any code then plz send.we can share royality
neeraj kumar
neerajkumar03@gmail.com
|
|
|
|
|
Break it down into small tasks - there are plenty of controls that will help you.
The fact that you are asking such a broad question suggests to me that you aren't up to this task but the way I would do it is.
Use a form with varying controls to get the appearance on form of what you would like, code your app so that it will take the info on screen and convert it to the relevant layout (such as you would see in MS word when you press print preview). Then use the print control to print the document.
I have not had to do this my self but the idea behind it is simple - its upto you to look for resources that tell you what controls to use or make your own.
Its your job to do this not ours if you have small specific problems such as control x wont perform functionality y and is says it should in the documentation then ask away (only after you have searched yourself though).
If it seems like I am being short with you it is because I am - I am sick of such open ended, do my work for me questions. Man up and think about the problem at hand!!!
|
|
|
|
|
Hi All
i have Posted a thread looking for an Explanation about Dal and BLL and i understand it. i but i need to see a code Template like Skeleton. to understand it more, please post a code for me or an article that uses Dal and BLL for a SQl database windows application.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
|
|
|
|