|
Hi there
Thanks for taking the time reading this.
Basically I would like to understand and emulate the drag-and-drop features available in Visual Studio and many other applications, when you drag a panel/control and it appears in the screen where you want to lock it and if it is drop on top of a panel with an existing control then it becomes a tab.
Any help will be most appreciated
Regards
Andres
|
|
|
|
|
Just checking if I understand you correctly, you want to know how the designer adds controls into a panel?
I have no idea but the topic interests me, +Good Question.
|
|
|
|
|
|
|
In addition to the other excellent links you have been given, take a look at the links at the bottom of Designing Nested Controls[^]. Most of them are related to implementing a designer application.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
|
|
|
|
|
|
Hi all
First of all, thanks a million for replying
Ravi, indeed that is what I am looking for, but I want to build it up myself, understanding the behaviour of this feature
Any ideas?
Regards
Andres
|
|
|
|
|
I have created one windows application to communicate with WCF service.
I am providing one array of bytes(saving a file into DB through WCF). It works fine.
Issue occures when size of my file exeeds 16KB i.e. 16384(Dafault Max Array length)
Issue is I have already set the maxArrayLength to 2147483647 but still application goes with default(16384) and gives me an error.I am puzzeled that from where it's taking this default value when I have made changes in my local app.config.
Please do help me if any one knows a walk-through.
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
One forum, and one forum only. You have been a member long enough to know that you ask the question in one forum only.
|
|
|
|
|
Agreed n sorry, but I saw WCF later when I had already put this question in C#. as it's related to WCF so I put there. as a moderator u can remove it from C#.
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
How to update data through datagridview in C#.NET 2005 (ADO.NET) ?? Please help..
NEHA GUPTA
|
|
|
|
|
|
Hi,
I am developing a Windows application using C# 3.0, in that I have to open a pdf document. Using the Adobe PDF Reader com component I am able to open the PDF document, then deployed the application and created the setup. When I install the application in Win XP it's working fine, but when I install the same in Windows 7 or Vista, Adobe PDF Reader com component is throwing error as "Com Class not registered". Even thought I run that exe file as "Run as Administrator", it's throwing the same error.
Any one guide me how to solve this, how to make my application to work in all Windows OS? Please suggest me.
Thanks in Advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
Do you get that error on both 32bit and 64bit versions of Win7/Vista, or on 64bit versions only? In the latter case, you could change the target of your application to x86.
|
|
|
|
|
Thanks for your response. I am getting this error message in 64bit OS. Also while deploying my application I tried by setting the Target Platform as x86, but still it's throwing the same error.
Know is Drop, Unknown is Ocean
|
|
|
|
|
I suspect you're hitting an issue where there's a 32 bit version of the COM component registered, but not an appropriate 64 bit compatible version. One way round this, if you don't care about your application using 64 bit features (i.e. memory), is to use corflags.exe to set the CorFlags section in the PE executable. The command you need is
corflags exefilename.exe /32bit+
|
|
|
|
|
How do you create that COM class? Is the registry path hard coded in full length? How did you create the reference to the component ("COM" from the "add reference" dialog, or a PIA)? Perhaps show a few lines of code leading to the line with the error.
|
|
|
|
|
Please tell me...
How to generate(catch) stack trace exception using visaul studio 2008 IDE.
defaulty, try- catch with common Exception only allowed
for example :
try
{
File.OpenRead("NonExistentFile");
}
catch(FileNotFoundException fnfex)
{
Console.WriteLine(fnfex.ToString());
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
}
Instead of
try
{
File.OpenRead("NonExistentFile");
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
}
Thanks
|
|
|
|
|
Are you asking about how to get the stack trace when an exception is raised?
See Exception.StackTrace[^] property.
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
I created certificate by executing a batch file, which has the below commands.
cd C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
makecert -ss BBBC
On executing above batch file, its creating "BBBC" folder. It contains a default certificate. I would like to remove the default one by below code. But, I'm not getting any list in "fcollection" variable. Please correct the code to find default certificate in BBBC and remove the same.
X509Store store = new X509Store(StoreName.AuthRoot, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadWrite | OpenFlags.MaxAllowed);
X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
X509Certificate2Collection fcollection = (X509Certificate2Collection)collection.Find(X509FindType.FindBySubjectName, "localhost", false);
Console.WriteLine("Number of certificates: {0}{1}", fcollection.Count, Environment.NewLine);
foreach (X509Certificate2 x509 in fcollection)
{
byte[] rawdata = x509.RawData;
Console.WriteLine("Friendly Name: {0}{1}", x509.FriendlyName, Environment.NewLine);
Console.WriteLine("Simple Name: {0}{1}", x509.GetNameInfo(X509NameType.SimpleName, true), Environment.NewLine);
store.Remove(x509);
Console.WriteLine("X509Certificate2 for localhost removed.");
}
store.Close();
|
|
|
|
|
I just correct the below statements. Its worked. Thanks..
X509Store store = new X509Store("BBBC");
X509Certificate2Collection fcollection = (X509Certificate2Collection)collection.Find(X509FindType.FindBySubjectDistinguishedName, "CN=Joe's-Software-Emporium", false);
|
|
|
|
|
I am recently curious about the process of writing your own toolbox controls. Let's take a basic approach and say I wanted to write a textbox control that was always multi-line with both scrollbars. I want to have all the events, properties and such.
How do you wire up events so that when you drag the textbox onto the form and double-click it the IDE goes to the correct handler or default handler like in the case of a button it's the Button_Click. How do I make my own button control and when I double-click it in the IDE have it go instead to Button_MouseDown or something else entirely? How do you add events for the IDE and design time?
I'd google this I just don't know what search terms to use. I've tried and failed.
|
|
|
|
|
code-frog wrote: How do you wire up events so that when you drag the textbox onto the form and double-click it the IDE goes to the correct handler or default handler like in the case of a button it's the Button_Click.
If your control is derived from Button control, this should be happening automatically.
code-frog wrote: How do I make my own button control and when I double-click it in the IDE have it go instead to Button_MouseDown or something else entirely?
If I remember correctly, DefaultEventAttribute[^] should do the trick.
code-frog wrote: How do you add events for the IDE and design time?
IDE should show up any public events that your control provides without doing anything special.
Best wishes,
Navaneeth
|
|
|
|
|
Hi
I am building an application in C# which needs to take direction from a Delphi app.
I am having quite a time adding a socket connection to the C# app using Net.Sockets.
I've searched copiously, but all examples I have found are for standalone socket connections.
Could someone point me to an example app that includes a socket connection to recieve infomation.
I am looking at a socket connection as I don't want to block the operation of the app waiting for a connection.
Bob
|
|
|
|
|
Bob Pawley wrote: I am looking at a socket connection as I don't want to block the operation of the app waiting for a connection.
A socket connection has nothing to do here. If you don't want to block the operation of the application, you need to run the processing on a background thread.
Bob Pawley wrote: I've searched copiously, but all examples I have found are for standalone socket connections.
Could someone point me to an example app that includes a socket connection to recieve infomation.
What do you meant by standalone socket connection? This[^] article is a good read on the subject.
Best wishes,
Navaneeth
|
|
|
|