That's a good idea. I'll look into that. How do I hook all messages? I've seen examples on how to hook the mouse movement and keyboard, but haven't yet found an example on how to hook ALL messages. Do you know of any examples out there?
I want to be able to intercept and show messages for any window running in any process. I already know how to filter through all running processes and find mainwindow handles for that process and thread ID's and such. Now what I want to do is create some kind of hook to intercept messages for...
I've been messing with the control and here is the error I get when I run the page...
"[StackOverflowException: Exception of type System.StackOverflowException was thrown.]"
No other information is provided?!
My aspx page looks like this:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"...
cappmgr, yes I did. It seems strange that it isn't instantiating the object in the .cs file even though it's putting everything in the aspx page.
I'll have to play with it more once I get home. If it doesn't work, I'll post some code here.
cappmgr,
Whenever I have done as you suggested in the .cs file (which is main reason I posted this question):
protected ImagePreview.ImagePreviewCtrl ImagePreviewCtrl1;
I get an web application error if I try to assign values to its properties. I don't have my computer in front of me right...
I'm using ASP.NET (C#) in Visual Studio. I'm trying to make it as much like windows programming as possible, so I'm trying to add my custom control (ImagePreview Ctrl) to my aspx page programmatically. I created a custom control and it's compiled as an assembly. When I drop the control onto...
Using obislavu's last comment as a solution, don't forget to call the method XmdData.TrimToSize() when you're done adding elements. That way the ArrayList count is 'trimmed' down to the number of elements you have added. Otherwise it will contain at least 64 null elements. Extra allocated...
I'm trying to make a ASP.NET custom control in C# (NOT a user control) that contains multiple controls. I'm having a hard time seeing how to create the control so that when dropped into a web application (in Visual Studio), all the sub-controls will be displayed. It seems there are some methods...
Duhh.
Yep, getting rid of the ".ToString()" worked. I've noticed in the .NET book that I have (Prosise), he overrides the function LoadPostData(...) when he uses ViewState:
public bool LoadPostData(string postDataKey, NameValueCollection postCollection)
{
string NewText =...
What's the correct/best way to to persist data across postbacks using ViewState? I have the following web control implemented in C#:
The page has 2 rollover buttons that are used to step through all the images in a image folder. The viewstate seems to be somewhat working, but when I debug the...
I read that article several times. That was done with client-side scripting. I'm looking to do it (mostly) server-side. I think I've figured out how to do it. It's just a matter of getting it to work now. I'll follow up with the solution if I ever get it. Any additional suggestions would...
I think it's pretty much all or nothing. Visual studio is simplying 'writing' text (it just happens to be javascript) to the client browser. The browser is compiling the javascript at runtime. I don't think Visual Studio has any way to debug the javascript as it is sent to the client. I'm...
I posted another question about creating a server-side rollover. I was thinking of a way to do it with javascript and a custom control. How would I go about overriding Render, adding the actual onmousover javascript code to the htmlwriter to do the following: The trick here would be to do a...
I am new to ASP.NET but have been using .NET for windows forms for a while now. I found some examples for doing a rollover "button" with client-side scripting. However, I'd like to be able to do it with server-side "scripting" instead. This is more of a learning exercise than anything since...
you have to run the asp iis utility. Go to a command prompt and type the command: (Depending on what OS you have, the utility may be in a different location)
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.