|
Can anybody help me how to handle mousedown event on the titlebar?
|
|
|
|
|
Hello,
You have to override "WndProc" in your Form.
Like this:
const int WM_SYSCOMMAND = 0x112;
const int SC_MOUSEDOWN = 0xF012;
protected override void WndProc( ref Message m )
{
if( m.Msg == WM_SYSCOMMAND )
{
if( m.WParam.ToInt32() == SC_MOUSEDOWN )
{
}
}
base.WndProc( ref m );
}
Hope it helps!
P.S.: Just cause I'm currious, why are you starting your question Subject line with "Re:"?
All the best,
Martin
|
|
|
|
|
Hai,
I am using dotnetFramework1.1 with C# coding for my project.
I need to display some Records.So i use DataList Control For that...But my Problem is that when I click a particular row ,i want to redirect to some other page showing the full description of that particular record.How is this possible????....Please hepl me to solve my proble....
thanks in advance
Bijesh
|
|
|
|
|
I assume ths is ASP.NET ? Generate linkbuttons or just hyperlinks for the text in the row, and redirect to another page, with an Id on the URL so that page knows what record to load.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Currently, I'm working on COM Interoperability project. In that client application (in vb 6.0) need to launch my application developed in .net.
Now the problem is the assemblies referenced by my .net application is spread across 2-3 folders and not in the same folder where my .net executable is placed. Also, the client application is also not in the same path where my .net executable is. If I keep everything (i.e. .net executable and client application) in same location everything works fine but if I move my client application to location different than my .net executable path, client application fails to load.
I register the assembly into the registry withoug codebase. Also, I tried setting the private path in probing attribute in app.config file but it didn't work. I want to avoid making my .net component assembly as shared assembly.
Can any one pls help in how I can resolve the assembly reference issue?
Thanks...
|
|
|
|
|
Have a look at the AssemblyResolve event on the application domain AppDomain class. This event is called when finding an assembly location fails; you should be able to hook this and load the assembly from whatever location you like.
A quick google on that event gives a few examples.
|
|
|
|
|
Mark,
Thanks you very much for your reply. I was looking for some direction to resolve my problem which you very well provided.
However, Let me elaborate more on my problem.
In my case, there are two different applications, one developed in vb 6.0 (which acts as COM client) and other in .net. Now I register my .net application with registry (using regasm tool but without using /codebase switch). Also, I don't put my .net component (which COM client will access) into GAC. So in this case when I try to access my .net component from VB application using COM, VB application fails to locate my .net component and its dependancy. Can you tell me what I should do in order to make my vb application know where my .net component is placed.
If I put my vb application and .net application together, everything works fine. But if I put them seperately, loading fails with the message that "Runtime error '429'. ActiveX Comoponent can't create object.". In my vb code, I'm using CreateObject to create my .net component object.
-----------------
Private Sub Command1_Click()
Dim i As Object
Set i = CreateObject("TestApp.class1") (TestApp.class1 is my .net component)
i.ShowMessage
End Sub
-----------------
I hope I have explained my problem properly. if you have questions on this pls revert back.
Thanks......
|
|
|
|
|
Ah, sorry I assumed it was the .net client couldnt locate it's dependancies.
I'm a bit rusty on my COM skills, have you tried checking under HKEY_CLASSES_ROOT\CLSID to see if its been registered correctly? Otherwise you might have to use the /codebase option...
Good luck
|
|
|
|
|
Mark,
It seems now you have understood the problem correctly.
I can not use /codebase switch as my assembly is not strong named assembly (there are some issues because of which I can't make my assembly strong named). You can supply /codebase options only with the assembly which are strong named.
Thanks....
|
|
|
|
|
Hmmm if you can't use strong naming then I'm really not sure. Maybe someone else has some ideas? :/
|
|
|
|
|
i want scanner dll with c#
|
|
|
|
|
I want scanner dll with C# please?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
I want a new car. Tell you what, pay me the money for a new car, and I'll write you a scanner dll.
If you look closely, you'll see this is a forum for programming questions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
If you'd bothered to read even a few threads down, you'd have seen another thread which already included this information. It's not hard to do - it just demands that you don't be so lazy when posting. Alternatively, there's a great tool that not a lot of people know about called Google which has nuggets like this hidden away.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
Hi
well I've been trying to transform an XML document using an XSL file I made and the problem is that the transform method adds these HTML tags in the resulting file as well which is what I dont want... Here's the code.
<br />
XslTransform myXslTransform;<br />
myXslTransform = new XslTransform();<br />
myXslTransform.Load(xsl_Path);<br />
myXslTransform.Transform(Xml_Path, "collapsed.xml");<br />
<br />
String target_Path=s_Path;<br />
target_Path=target_Path+"\\collapsed.xml"<br />
Object *oMissing = System.Reflection.Missing.Value;<br />
this.axWebBrowser1.Navigate(target_Path, oMissing, oMissing, oMissing, oMissing);
can u plz tell me how I can make the transform without having to add these html tags in the output.
Thanks in advance
Rocky
-- modified at 5:50 Thursday 16th August, 2007
|
|
|
|
|
You should post this question in either the C++ or XML forums...
|
|
|
|
|
OK I know I made a mistake, the code's in C++ but could u just be kind enuff to tell me how to do this task in C#; I can handle the convertions now.
I havent posted it on XML Forum coz its about transforming from my application which is in C++ or C# if you like.
|
|
|
|
|
Hi,
I have just installed Visual Studio 2005...and i automatically got .Net Framework SDK and Visual Studio 2005. I want to know if the .Net framework and .Net SDK are different?? If so, whats the difference between the two?
Thanks,
Priya.
|
|
|
|
|
.NET Framework allows you to run applications developed in .NET
.NET Framework SDK allows you to develop applications in .NET.
Paul
|
|
|
|
|
So, what extra things are present in the SDK??
As per my knowledge, the framework itself includes the CLR, BCL and the compilers for the different languages...
|
|
|
|
|
The SDK includes things like documentation, examples, support tools. The framework just includes the things that you need to compile and run .NET applications. I include compile here because the framework includes the basic .NET compilers by default - so you don't need to install anything else to build .NET applications if you don't want to.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I want to scan some photos and show them in a picture box in C#.NET. I want to know which DLL to use and any other related information.
Thanks in advance.
|
|
|
|
|
.NET TWAIN image scanner ?
I don't have that experience. You may check-out the link above.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I am new to C#..hence i have a basic doubt!!
Whats the difference between:
string s = "priya"; and
String s = "priya";
Are both the same?? Which is the correct method of declaring a string??
Thanks,
Priya.
|
|
|
|