|
|
I found that link but what i want is to run that macro from excel not from .net exe
10x anyway
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
you may want to use VSTO?
|
|
|
|
|
sorry but what does VSTO mean??
10x
dghdfghdfghdfghdgh
|
|
|
|
|
Hi all,
I have read the documentation on MSDN regarding the tabpage control. It states that the tab page within the tabcontrol can not be hidden. According to the MSDN to hide it, one needs to remove it. This is quite hideous!
Isn't there another way of doing it?
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
hi,
yes i have also faced this problem.
we can not hide tab page in tab control.
but i have find a solution by making one custom tab control which has "HideTabPage" property which allow me to hide tab page.
but you can also disable all controls on that tabpage, if you don't want to allow users to use controls on that tab page.
you ca use this code...
For Each ctl As TabPage In myTabControl.TabPages
If ctl.Name.Equals(tPageToRemove.Name) Then
For Each ctlchild As Control In ctl.Controls
ctlchild.Enabled = False
Next
End If
Next
by this code you can disable all controls on given tab page.
Bye .
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
Hi, Chirag,
Thanks for the reply. Regarding your comment:
JustChiragPatel wrote: but i have find a solution by making one custom tab control which has "HideTabPage" property which allow me to hide tab page.
Could you perhaps give an example of this? Cause disabling all of the components on the tabpage is not what I'm trying to do.
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
hi,
ok, i think building custom tab control will solve your problem.
i can give you logic for custom control.
logic of "HideTabPage" method is,
take array of tabpages control which are in custome tabcontrol.
and remove that tabpage from tabcontrol which you want to hide.
and when you want to show/display that removed tabpage then add taht tab page from tabpages array into tabpage control.
you can also modify this logic according to your requirement.
you can make some browseable properties also, so you can hide/show tabpages by setting property values.
Bye .
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
Programm3r wrote: This is quite hideous!
I don't think so. Tab control is built for showing multiple tabs. Why you need to hide one tab page ? Are you looking for wizard kind of stuff ? Alternatively you can disable the controls in one tab page by casting the tab page into control and setting Enabled=false .
|
|
|
|
|
Thank you for the reply and information
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
i have developed a program where a close button on every tabpage, i used Control.Remove() to remove tabpage from tabcontrol when close button is pressed, and add that tabpage when user want to add, so i dont think its hideous
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I wanted the sotring of string column(sql server 2000 database table).
the table contains the following entries
aa
02
18
1
11
22
1a
2
after sorting these entries by the same column.
it gives the following result
02
1
11
18
1a
2
22
aa
but the above sorted order is not required.
then look at the ascii chart
http://www.asciitable.com/[^]
Now according to my understanding , i thought i should sort the list in the order in which the ascii codes are listed.
Am I doing in the right direction ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi,
yes, if we use ready made sorting function in .NET library then it will sort based on ASCII characters, but here i think your sorting includes numbers and characters and zero based numbers also, so i think you should make your own sorting function which will use Comparer class to compare values and then will sort based on your requirement.
Bye .
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
i m having a setup of my application..i want to run it on a machine which is not having the .net framework..so from the properties of the setup i choose the option ..."Download prerequisites from the same location as my application"....but on running the setup..it is not installing the setup from here...it is opening the microsoft site..and the client is not having the internet....so please help..how can i run the .net framework from the same location as my application.....please someone help..
|
|
|
|
|
this can only possible by third party tools, or just give .netframework with your application
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Xmen wrote: just give .netframework with your application
yes i want to give .net framework with my application but how...
please tell me how can i give the . net framework with my application..and what is the use of "DownLoad prerequisite (that is .net framework) from the location as my application....
tell me how can i give the .net framework with my application...
|
|
|
|
|
Hi,
yes by default it will ask user to download framework from the internet.
but we can put .net framework redistributable packages in our setup files and we can write NSIS script for installing our application such way that it will install framework from given location in setup package, and will not ask for download.
for that you have to write NSIS script.
you can find resources to write that from this line.
http://nsis.sourceforge.net/DotNET[^]
Bye Have a nice day .
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
|
hi, N a v a n e e t h
supplying framework package is not a solution for corporate application.
user want one click installation packages, is you solution need to click on framework package installation? if yes then your setup is not for corporate users.
we have to give as much as comfort to our user.
Bye
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
JustChiragPatel wrote: supplying framework package is not a solution for corporate application.
user want one click installation packages
You haven't read my post fully. I have told to make necessary changes in the installer to install framework first before installing application.
|
|
|
|
|
JustChiragPatel wrote: we have to give as much as comfort to our user.
The customer must not be very comfortable with working like an idiot such as yourself, who cannot read a very small post and see that it is the answer to your question. Read what Navaneeth said, again, and actually try to comprehend what he is saying.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
N a v a n e e t h wrote: You need to configure the installer to install it first before it installs your application.
how to configure the installer(or i can say how to use the installer)please tell me some steps to use
|
|
|
|
|
Take the properties of your setup project. You will find a Prerequisites button and the framework installation can be specified there.
|
|
|
|
|
hi,
i have replied with answer that you have to user third party installer to do that, there is no way to configure installer project in VS 2005.
but still you can find the solution in installer, if not find then try NSIS.
Regards.
Chirag Patel
Programmer Analyst
India
|
|
|
|
|
JustChiragPatel wrote: there is no way to configure installer project in VS 2005.
Yes it's possible. You can add prerequisites and install framework before application get installed.
|
|
|
|