|
hi all,
I want to set up my windows application project.
I know creating normal setup file. But
I want to know how to create a setup file which will ask to enter password or key at the time of installation to complete the setup (the password which is already preset).
for eg. when we install MS Office it asks us to enter product key in the same way
plz help me by giving the procedure.
thanks in advance..
|
|
|
|
|
I think you can use custom actions
I Wish the Life Had CTRL-Z
Wizards First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
Greetings,
Does anyone knows how to invoke (programatically) the different dialog boxes that VS has, for example the CellStyle Builder Box or the Add Columns dbox, Edit Columns dbox for the DataGridView, The Items Collection Editor for the Menus?
I know I can use EditorAttribute for properties, but the problem comes when dealing with the DataGridView and its columns, i'm using a PropertyGrid to modify the DGridV at run time but the columns do not appear.
I have this code:
public partial class UserControl1 : DataGridView
{
.....
public new DataGridViewColumnCollection Columns
{
get
{
return base.Columns;
}
}
public DataGridViewColumnCollection MyColumns
{
get
{
return base.Columns;
}
}
......
}
The funny/strange thing is that Columns doesn't show the Editor but MyColumns does show it.
I have done a search for DataGridViewColumnCollectionEditor but i just can't find it. Are these dialog boxes available somehow for developers?
Any hint or orientation is well appreciated.
Thanks
modified on Friday, June 27, 2008 10:06 AM
|
|
|
|
|
Well after doing more and more research i found that the EditorAttribute is making the difference between both properties, so in order to override it i had to do something like this:
[Editor("", typeof(UITypeEditor))]
public new DataGridViewColumnCollection Columns
{
get
{
return base.Columns;
}
}
But this still does not answer my original question...
Is there a way to use the editor from the code? I guess not...
Any hint or orientation is well appreciated.
|
|
|
|
|
Fairly new programmer, please excuse me if this is kinda newbie but I couldn't find an answer by searching. I have a windows form, and I was messing around with its properties. Now when I run it, all the white backgrounds are now transparent(you can move icons on the desktop through them). I need help figuring out how to make them function like default again. Thank you in advance for any help
|
|
|
|
|
In design mode, click on your form to select it. In the properies window for the form find the Transparency Key property and set it back to transparent. You must have set it to white instead.
|
|
|
|
|
Hi,
I'm curious what control(s) you use when you have a simple data input tasking involving rows and columns when :
1. you are not concerned with data-binding
2. you don't want to use a datagrid
3. you don't want to use a listview and muck about with non-editable run-time sub-items.
In other words you want a bunch of organized input fields, but want a very light-weight implementation. And you do want to use some control or combination of controls; i.e., you do not want to "hand-roll" a custom solution with a fixed number of textboxes in a panel or some such.
thanks, Bill
"The greater the social and cultural distances between people, the more magical the light that can spring from their contact." Milan Kundera in Testaments Trahis
|
|
|
|
|
Hi there,
i have a problem with creating Custom dataGridViewCell
i want to bind the column with an object and in the cell display obj.Description.
the editing control is a userControl that contains a textBox to Display the description of the object and keep the object in tag of the textBox for calculations, and listBox for suggested values (brothers object of the object in the textbox tag).
the problem is with formatting the cell, an exception accoured says could not convert from string to clsClass (type of my object).
plz help
|
|
|
|
|
I got a winform which is displayed in browser...the a.exe file has a config file which has a key to choose between production and dev databases. I created the iexplore.exe.config file with the required config file keys and kept in the root folder(c:/inetpub/wwwroot/)...when i run the a.exe file in browser its not reading the iexplore.exe.config file at all ....could any 1 please help me...
a.exe (.net2.0 app) working in IE6 in win 2003 server
Thanks in advance.....
|
|
|
|
|
Looks like you did spam the site, yes.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you have post same question 4 times on 4 different forum.
|
|
|
|
|
Can we use the directshow methods in VC++ windows forms application. I have worked in VC++ MFC using Dshow methods and dont know how to use in VC++ Windows forms application. I got linker error when I use the Dshow methods, also I specified all the libraries in Project properties. Please advice.
|
|
|
|
|
bhanu_8509 wrote: Can we use the directshow methods in VC++ windows forms application.
I am not up to date with the variations of Direct<whatever> but most of it is available to the .NET platform[^]. I imagine there are plenty of articles and tutorials for it.
Also for managed C++ development questions there is a forum titled Managed C++/CLI
led mike
|
|
|
|
|
Thank you. I will post the message in the correct forum.
|
|
|
|
|
bhanu_8509 wrote: I will post the message in the correct forum.
Well you might want to check out that link i provided in my last reply. It may go a long way towards answering your question.
led mike
|
|
|
|
|
I have a little SQL query editor, with a TextBox and a DataGridView, for the query text and the results, respectively. I have these on a SplitContainer. I have no timers, nothing else.
My text in the TextBox keeps disappearing! If I highlight it, it's there, and sometimes when I click in the TextBox, it reappears, but much of the time it remains invisible. Any suggestions as to the cause of this will be most appreciated.
|
|
|
|
|
Hi,
maybe something is wrong with your selection colors?
|
|
|
|
|
All standard. Everything else works.
|
|
|
|
|
Is your textbox multiline? This can cause no end of fun if you expect single line behaviour.
Alan.
|
|
|
|
|
It is multiline, and large. The text literally just becomes invisible!
|
|
|
|
|
This is quite strange. I deleted and recreated the TextBox in question, with exactly the same configuration, and the problem disappeared.
|
|
|
|
|
See that come from holding your tongue correctly when adding the textbox. Peice of cake.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i have one dataset that contains 2 tables
table 1 is{1,2,3}
table 2 is {4,3}
i want to display in a form the following
[1,2,4]
how could i join the 2 tables
and when i press the next button the records in both tables must
move to the next record
please help me with this
|
|
|
|
|
ashrafhakami wrote: how could i join the 2 tables
Hard to say, based on this. Is there a column in common you can use to do a join ? If not, how do you know which 4 goes with which 1 and 2 ? Is 3 a column in common you can join on ?
ashrafhakami wrote: and when i press the next button the records in both tables must
move to the next record
If you get the SQL right you will have one table with the two lots of data merged.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanx for your passin by Christian Graus
i will explain more
in table one there are three columns which are
{ drug_name,drug_no,type_no}
in the second table
{ type, type_no}
in the form i need to display the following
drug_name:for example viagra
drug_no:4
type:tablet
when i move to the next record the type must change according to the drug_name and drug_no
for example the next record in the table one is
{Banadol,5,2}
and the second table is
{syrup,2}
i want to display in the form the followin
drug_name:Banadol
drug_np:2
type:syrup.
i did in my cod the followin
in the form_load the followin
for the first table where con is the connection oledb
dim sql as string="select * from drug"
cmd.connection= con.....
cmd.commandtext= sql
dataAdapter.fill(dataset,"drug")
txdrug_name.databindings.add("text",dataset,"drug.drug_name")
txdrug_no.databindings.add("text",dataset,"drug.drug_no")
and the second table is
dim sql2 as string="select type from type where type_no=1 "
cmd.connection= con.....
cmd.commandtext= sql2
dataAdapter2.fill(dataset,"type")
txdrug_type.databindings.add("text",dataset,"type.type")
and every thing was ok when displayed
but when i move to the next record the type never chang
even if i changed the sql (="select type from type where type_no=1 "
)
i even tried to assgin the type _no for table one to a variable to be like this ="select type from type where type_no=variable "
but i failed
please help me it is the a cadimic project
|
|
|
|