|
Okay, I found it. Three daze of frying my brain, and there was this one line of code...
|
|
|
|
|
hi,
i need code for Prevent the user to reinstall my project again.When any user install my product then after if he try to reinstall it again by uninstall my previous install product.Shell i able to prevent them to reinstall the product.
Thanks in advance
|
|
|
|
|
..why??
Imagine me using your product. I install it on my laptop. Application asks me "who are you", and I enter the name "Eddy".
Next, I uninstall your application (for whatever reason), and I try to reinstall. I get frustrated, and try the name "Ydde". Next thing I'll do is install it on my laptop, or a virtual machine. Why? Well, because I want to use it, obviously, and it would be quite simple to find a computer where your application has not ever been installed on
I are troll
|
|
|
|
|
How to populate the values one combobox in a windows form with C# code using datareader.
|
|
|
|
|
Combobox class has an Items property which allows to add new item using Add() method.
|
|
|
|
|
Hi,
You can use Combobox1.DataSource property for populating data from datatable.
Set Valuemember and DataMember property also.
Hope this will be helpful for you.
|
|
|
|
|
The control I downloaded contains a dll file, (I dont think this question is specific to the control so I posted here, hopefully the right place) A search brings up too much noise.
so, how do I "install" it so I can drag it from the toolbox and use it in my form ?
thx,
a newbie.
|
|
|
|
|
Right-click in the ToolBox and click on Select Items... Browse to the .DLL file and click OK.
|
|
|
|
|
Thanks, that worked. much appreciated.
|
|
|
|
|
I created a few custom icons for buttons and menus. One image was added to a ContextMenuStrip item. Later I changed it to a different image. I removed the previous image from the Resources.resx file using the IDE. Now the all the MenuStrips and ToolStripButtons are gone!
This image is not connected in any way to any of the other MenuItems or ToolStripButtons. Is there any way to repair the project? I have a backup but it's much older.
Thanks in advance,
Mark
|
|
|
|
|
I've run across the same kinds of problems before. I always end up editing the Visual Studio generated file (Form1.Designer.cs or something like that if you're using C# ... not sure for VB) by hand. I usually find that all the control creation code is still there, but I need to re-establish the parent-child control relationships.
Something like:
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileMenu, this.editMenu, this.helpMenu } );
Look at a valid project to see the exact syntax.
|
|
|
|
|
Thanks, I'll give it a try.
|
|
|
|
|
Hi,
Go to IntializeComponent() method and set the Contextmenu image property manually.
|
|
|
|
|
how can i able to Copy Dataset from on from to another from dataset
is it possible?
if yes tel me.
thanks in adv
|
|
|
|
|
|
what is the control used in windows for drop down of asp.net, And How to populate the values of one dropdown list in a windows form with C#.
|
|
|
|
|
|
As Mika said it's the ComboBox class and you populate it's items via the Items property (Items.Add() , etc.)
Keep It Simple Stupid! (KISS)
|
|
|
|
|
Dear Experts :
When I put the tablelayoutpanel into usercontrol and allow other developer
adjust row / column size into design time (so that they use mouse to adjust
inner controls layout).
How to do it ?
another question , if usercontrol inside contain 4 other control (like
textbox, label ..etc) how to explore one of control (like textbox) property
explorer
into design time.
Can anyone tell me
Thanks
Michael
|
|
|
|
|
Dear Experts :
When I put the tablelayoutpanel into usercontrol and allow other developer
adjust row / column size into design time (so that they use mouse to adjust
inner controls layout).
How to do it ?
another question , if usercontrol inside contain 4 other control (like
textbox, label ..etc) how to explore one of control (like textbox) property
explorer
into design time.
Can anyone tell me
Thanks
Michael
|
|
|
|
|
Hi there guys, i need some of your programming experience, here is the issue:
When a user logging into a WinForm application (C#.NET), how can i Assign dynamically a defined application Menu according to a Role in the DataBase?
Thanks in advance for your support, time and for share your knowledge, it really helps.
Any guru out there?
modified on Monday, January 12, 2009 12:28 AM
|
|
|
|
|
I would just enable/disable the menu items, or make them visible/invisible depending on your requirements.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi All,
I am Currently Working on Wpf And WinForms using SCSF. Any one can please help me in this ,how to Develop The Themes Concept in Wpf or Win application .If any one knows Articles please FWD the Links it helps lot.
Thanks And Regards,
Guru
|
|
|
|
|
dear Team,
I created a form . I placed a groupbox in the form.
in that group box i have added two controls
1. a lable
2. numericUpDown control
the issue: the project runs in the two different laguages ( english and arabic)
when i open the project in arabic : the alighnment of the controls and possitioning of the controls(label and numericUPDown) in the groupbox should be changed into right to left and even the possition of the controls(label and numericUPDown) are not changing .
can you provide any solutions for this or any link related to solve this issue.
thanx in advance.
|
|
|
|
|
Unfortunately you cannot make .net align your controls automatically, you have to perform the layout yourself for each required culture. Fortunately, visual studio makes this relatively easy (i tested this in 2008, don't know if sequence is different in earlier versions). Open the form that needs 'translating' and set the form.localizable property to true. Notice that the language property is set to (default). this means the current layout will be applied to all cultures. To make your changes, set the language property to Arabic, then rearrange your controls as required for a rigth->left layout. Note that most controls (inc. label & numericUpDown) have a RightToLeft property. Set this to true, rather than changing other properties like TextAlign etc.
When you build the project, your should see a folder 'ar' in the bin. This should contain a dll which represents the Arabic specific layout. Now, to use the arabic layout at runtime, the ui thread must be set to Arabic. This will happen automatically is the windows regional settings are in Arabic, if not you can override these settings using Thread.CurrentThread.CurrentUICulture and Thread.CurrentThread.CurrentCulture (Arabic cultureInfo code is 'ar-SA'). Any other configured langauge will use the (default) layout.
Hope all this makes sense! I can e-mail you an example project if required.
"An eye for an eye only ends up making the whole world blind"
|
|
|
|