|
i have search form which is modal , i want to return some values back to main form n search it there , can any one help me , i hope so
anyways thx n tc
Work Hard and Test your Luck
|
|
|
|
|
Put the values into public properties and retrieve them after closing the dialog:
YourSearchDialog dlg = new YourSearchDialog();
if( dlg.ShowDialog() == DialogResult.Ok ){
yourResult = dlg.ResultProperty;
}
|
|
|
|
|
Hi All,
I have a solution where I have some of my classes written using MC++ and I'm trying to use those classes in my C# project, but I can't for the life of me figure out how. I'm not sure I have make the C# project aware of the classes. I think I'm going to need to use a "using" statement, but I don't know what it should be. The MC++ stuff is in an exe and not a dll so I don't think I can add a reference to it. Any help would be appreciated.
Thanks
- monrobot13
|
|
|
|
|
|
If you're going to share code between apps/libraries, it probably should be in a DLL, not an EXE. That will probably solve your problem.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
|
But my answer was more readable.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Thanks for the info gentlemen. I'll have to more the classes I need out and put them in their own project.
- monrobot13
|
|
|
|
|
Sorry if this is a FAQ. What version of visual c# should I buy as an individual developer with a somewhat limited budget? I don't want to shell out $1,000 for visual studio if I can avoid it. What will I really miss by getting Visual C# .NET 2003? Any reason not to buy "Visual C# .NET Deluxe Learning Edition Version 2003" which includes "Visual C# .NET 2003 Standard" which I found for about $60? Thanks for your advice on this.
-- Bud
|
|
|
|
|
The learning edition is for students only and I don't think it can be used to produce commercial code.
VC# std ed should be fine, depending on the type of work you intend doing with it.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
Are you sure about that? It looks to me like a bundling of a book and Visual C# .Net. Microsoft's web site doesn't say it is an academic version. See this link[^].
-- Bud
|
|
|
|
|
I see what you mean.
I'd contact your local MS office and find out exactly what version is in that book.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
SimonS wrote:
VC# std ed should be fine, depending on the type of work you intend doing with it.
One of the things that concerned me was I want to be able to create windows services and web services. I tought I read that there were some limitations on doing this in the standard edition.
Also, will I be able to import ActiveX controls with the wizard?
Thanks. -- Bud
|
|
|
|
|
Correct, the standard edition is limited. Hence the drastic price difference between it and the pro/enterprise architect edition.
Occording to this[^] site, you can create XML web services, but I don't think that you can create Windows services though.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
Would someone be able to give me the inside scoop on delegates and remoting? How hard or easy is it to use delegates w/remoting? What's involved? Any good articles and/or links on this?
From what I've gathered, you can use delegates with remoting, but it doesn't work very well with interface methods. Is this correct?
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
jdunlap wrote:
Would someone be able to give me the inside scoop on delegates and remoting? How hard or easy is it to use delegates w/remoting? What's involved?
Selling your soul.
Have a look at my Plugin Manager article. I kind of takkle it there. Another thing that rings a bell, is the CrossAppDomainDelegate class.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Ok, thanks for the pointers! I'll look into that.
Basically, I'm wanting to know if one can have events or a similar type of notification system using delegates, with remoting.
Really, though, it's not that important - just that somebody on our team insists that remoting must be kept as an open option, even though this is just a GUI Library.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
jdunlap wrote:
Really, though, it's not that important - just that somebody on our team insists that remoting must be kept as an open option, even though this is just a GUI Library.
Thats where the sh*t will hit the fan. Although a Control class is based on MarshalRefByObject class, many eventhandlers are not or not serializable, thus making things incredibly difficult.
If you find my article fruitfull, I can mail u the "GUI" test I did. It can change colors... thats about it.
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
leppie wrote:
Although a Control class is based on MarshalRefByObject class, many eventhandlers are not or not serializable, thus making things incredibly difficult.
Well, we're going lightweight (windowless), so that's not so much of an issue.
leppie wrote:
f you find my article fruitfull, I can mail u the "GUI" test I did. It can change colors... thats about it.
OK, that might be helpful.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
My experience with "Bad data" when trying to decrypt buffers using RSACryptoServiceProvider is incorrect block size. What else is possible?
|
|
|
|
|
Hi, having trouble decrypting a buffer using RSA. Did you find solution to the problem yet? Here's the code - I've highlighted the problem with "QUESTION" tags. Here's my code, please take a look. Thanks.
using System;
using System.Text;
using System.Security.Cryptography;
namespace tryRSA
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{ //Main
int index=0;
int iterations=0;
int blocksize=0;
int KeySizeByte=0;
byte [] btSecret;
byte [] btEncryptedSecret;
byte [] btDescrambledSecret;
byte [] btPlainTxtToken;
byte [] btEncryptedToken;
string secret = "This is a long secret";
ASCIIEncoding AE = new ASCIIEncoding();
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
KeySizeByte = RSA.KeySize/8;
blocksize = KeySizeByte -11; //QUESTION 1: I've been told that blocksize is equal Key size less 11 bytes. How'd you know that?
Console.WriteLine("Key size: {0}", KeySizeByte);
Console.WriteLine("blocksize: {0}", blocksize);
btSecret = AE.GetBytes(secret);
if(btSecret.Length % blocksize != 0)
{
iterations = btSecret.Length/blocksize +1;
}
else
{
iterations = btSecret.Length/blocksize;
}
index=0;
btPlainTxtToken = new byte [blocksize];
btEncryptedSecret = new byte [iterations*blocksize];
for(int i=0; i
|
|
|
|
|
Is there any method in drawing namespace to draw rounded rectangles? I couldn't find any thing useful through this namespace.
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
|
Is it possible to run my
C# console application on Unix?
|
|
|
|
|