|
kabutar wrote: frm.ParentDelegate = new WindowsApplication1.Form2.InformParent(this.InformParent);
It's nothing but initializing delegate and telling where it should call. So when you call ParentDelegate() from Form2, it will call private method InformParent() which is in Form1
|
|
|
|
|
Christian Graus wrote: f you want to write nasty code
But how this will be nasty ? Delegates also we are passing the function reference, in this case we are passing object reference. What is the difference ?
|
|
|
|
|
Try with the following code...but i think its not recommended to do so as you are trying to pass the reference of the form object...
replace form2 constructor as follows...
private Form1 m_parent;
public Form2 (Form1 parentForm)
{
InitializeComponent();
m_parent = parentForm;
}
Now declare a public method in your form1 to access the textbox1.text ..now in the form2 u will be able to access the form1's textbox text by using some thing like this..
m_parent.GetForm1Text() where GetForm1Text() gives you the text of the TexBox in form1
Koushik
|
|
|
|
|
please tell me how to connect checkboxes with databases...
so that all data in the database will be shown as items of checkboxes..
its urgent..
alok2171
|
|
|
|
|
alok2171 wrote: its urgent..
No it's not. Otherwise you would have been paying someone for help, wouldn't you?
Anyway, your question is ambiguous. Do you want to get a list of databases for a particular server? If so, call the sp_databases stored procedure.
Paul Marfleet
|
|
|
|
|
|
Basically, you can set up the template for a gridview to render checkboxes for columns that have boolean values.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
please give me some sample codes for this...
life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
|
|
|
|
|
sean lawrence wrote: life is like a cup of coffee.. its pure black.. its up to you on how much coffee cream you pour in to cast away its blackness.
How are we meant to represent this as code?
|
|
|
|
|
I want to add an exe run at when installation is in process.
I want to know how to add an exe path to run at vs deployment time.
i hope you will what i need to do.
|
|
|
|
|
You can write your own class which will be derived from the Installer class.
Naveed khan nido wrote: I want to know how to add an exe path to run at vs deployment time.
You will get savedState parameter( It is of IDictionary type) in the Install method. You can add the exe path to this savedState.
Naveed khan nido wrote: I want to add an exe run at when installation is in process.
simply Process.Invoke with the path saved into savedState will do the job for you.
You will have to specify this class (rather your installer dll) in the custom actions of your deployment project.
Thanks.
|
|
|
|
|
If have some articles for embossing,please send for my email stevi_uul@yahoo.com
Thanks..
Haloha...!!!!
|
|
|
|
|
Why are you asking this again ? What are you looking for that the article you read from me does not provide ? What is the issue, exactly ?
FWIW - if my article didn't help, I'm not defensive about that. I just don't understand what you're asking, or why you had to ask twice in an hour. There's at least one other image processing article on CP whch may include an embossing filter, did you find that one ?
Or why you think it's wise to post your email address on a public forum.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
hi buddies,
I Need Help in
: Jagging Array Conversion into Multidimentional Jagging Array.
in C# DotNet
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
I'm not sure I follow what it is you want ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
I wanna ask that can a Jagging Array in C#.Net behave like a Multidimentional array.
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
A jagged array is a multidimensional array, but it does not guarentee that the same number of elements exist in each 'row'. So, you'd have to add code to check that the element you want is there, for each row you read.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
You should check the spelling in your messages before posting. What is a 'Jagging Array'?
Paul Marfleet
|
|
|
|
|
A jagged array is simply an array of arrays. You can only move the data from a jagged array into a multi dimensional array if all the second level arrays in the jagged array have the same length.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I need to show the details of drives before installing and to install application in an specified drive the user select other than 'c'drive
naveen
|
|
|
|
|
A standard MSI allows the user to select an install path.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
can u give some more explanation
naveen
|
|
|
|
|
When you create an installer, it's going to offer that, simple as that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
when using smartclient(clik once deployment),how can this feature(path) will be added
naveen
|
|
|
|
|
if u r making your setup through the default setup wizard of .net then u don't have to worry about this...
even if u r using install shield or some other software to make setup then this feature is by default added in it.
|
|
|
|