Hello all together, I have a problem with my custom user control. It has some childcontrols (also usercontrols) which will be movable inbetween the custom control. But I have some regions (Top and Left area) which should be tabu for it's childcontrols. So my question is, how can I set a ClipRectangle Region where childcontrols are allowed to be painted? I solved temporarly this problem with calculating a Region area, if a childcontrols location is inbetween the "zone which is not allowed", but I have to check this Region each movement and will be very slowly. So I would be pleased if someone could explain me a solution. Thanks for replies. With best regards Norman-Timo
Norman Timo
Posts
-
Define ClipRectangle for ChildControls -
How to find articles with very bad/good ratings?Hello Mr. Kaiser, you're right. I'm very very sorry about that... Is any of following questions allowed: [I]Is there any way HOW TO find articles with very bad/good ratings?[/I] or [I]How to find "How-To" articles which are rated very bad/good?[/I] or [I]*Beeep* find articles with very bad/good ratings?[/I] or [I]Articles, good/bad rated, how? (Ugagaga)[/I] :laugh: ;) Greetings Norman-Timo
-
How to find articles with very bad/good ratings?Hello Mr. Gerrans, I'm not an english native speaker, so it's possible that I use wrong expressions in an more wrong context ;-) I'm German, and we have the noun "Thematik", so I thought there is an analogue noun in English. You're right if you say: use "theme" to be correct. And I did not recognize a special use of word "thematic" (I recently does not hear much english ;-) Funny that this word is used in similar context in America (for example in movie reviews (see another reply of this parent post). Greetings Norman-Timo
-
How to find articles with very bad/good ratings?Hello everybody, is there a possibility to list articles sorted by their rating? I want to know the article with the lowest and the highest rating independent of category or thematic. Is this possible? (Only for fun, this is not really serious!). Greetings Norman-Timo
-
Codeproject Source code in commercial products...Hello everyboy, I didn't thought that my question effected so much response. But now I know there's no common license system for CP posted source code. And I got the mention, that I better have to ask author before I use his source in commercial products ;-) I wanted to clarify that fact. Before I illegally use code, I would ask the author, of course. Thanx for replyments, very good community here :-) Norman-Timo
-
Codeproject Source code in commercial products...Hello everybody, I want to know under which license source code in codeproject is available. Does every submitter decide whether source code could be used freely in commercial products, or exists a common agreement, that EVERY sourcecode which is available under codeproject could be used freely? I searched hints in FAQs and also on the dependent sites, which contains code I like to use. Should I contact the submitter for that? Please give me an answer to this question. Thanks. Norman-Timo -- modified at 2:59 Wednesday 14th December, 2005
-
Session.Abandon - ProblemHello and thanx! The Redirect without the boolean-parameter doesn't work too. But that was not the problem :-) I shot a own goal with the fact, that I held my Session data in a class variable. So a reference to the session was always held. And so I think ASP.NET doesn't performed my Session.Abandon(). After a Response-Redirect the reference was still active, so I didn't gave ASP.NET a chance to make the Session abandonded. X| Ok, now I solved the problem, because first I destroyed every reference to the session data. So on, Norman-Timo
-
two datagrids on same pageHello robmays! It's very important how you register the events for both DataGrids. And it's important when you do this. Can you post little codesnippet where you register the SelectedIndexChanged-Events? Maybe I can help you. Ciao Norman-Timo -- modified at 10:31 Thursday 3rd November, 2005
-
Session.Abandon - ProblemHello Webstars ;-) I have a big Problem with the instruction "Session.Abandon();". I hava a login/logout mechanism and the session-data should be erased after login out. So I call "Session.Abandon();". After that I wanted to Redirect the client to my login-site. So that my code looks like that:
private void btnRelogin_ServerClick(object sender, EventArgs e) { Session.Abandon(); string url = "Login.aspx"; Response.Redirect(url, false); }
But my Session data was not erased, why? Same result with "Session.Clear();" What can I do to solve this problem? Thanx for any help. Ciao Norman-Timo -
WebService and Threads...So I tested a second way: I invoked the endless loop with one browser client of local system. Another client on another system (then browser will not accepted from webservice) tried to invoke another WebMethod out of my Service, and failed! I think it´s definetivly that my WebService don´t run in threads! And another suspecious point: After invoking once the endless loop, all later requests on my WebService fails, equal if the current request was aborted from clientside! He hangs in endless loop and only a reboot of the system will end this! I´m Very disappointed now :sigh: Ciao Norman-Timo
-
Windows 2003 Exchange ServerVirtual Server? What kind of a virtual Server do you use? I think there´s a problem with hardware device drivers. Many (cheap) Virtual Servers simulates a new system in a running system in that way, that hardware was simulated too. -> e.g. if your real systems uses a radeon 9000 graphic card, the virtual system uses a (very old) standard graphic card. I think that´s the same with your network, sound and other components. The virtual system only maps the input to output of your real system and across. So I think there are many problems to use specific applications like ExchangeServer etc. Very good (and expensive) virtual systems will solve this problems, but not in 100% Ciao Norman-Timo
-
WebService and Threads...Thanx for your answer! Ok, that will bring me one step forward... I tried to connect from same computer, but really another instance of a browser! Once a firefox browser and other the IE browser. But It's possible that IIS only manages connections from other computers in other threads, like you described. I will test it now, same procedure, but the second request from another computer, and will tell the result here in this board... So long, Norman-Timo
-
WebService and Threads...Hello ASP-World! I have a question about WebServices. I hope that this is the correct Message Board? I wanted to know, if WebServices runs in Threads, because I tried following: I added following code snippet to my WebService:
#region WebMethod TestIfRunsInThreads /// /// Test routine if webservice runs in threads. /// [WebMethod] public void TestIfRunsInThreads() { while (true) { } } #endregion
After that I tried to invoke this method from client, and how wonder I got no response :-) But simultaneously I tried with another client to invoke a different WebMethod and it resolves in timeout, too !?! I have the conclusion that WebServices do NOT run in Threads. Am I correct? Is it usefull to manage WebMethods in Threads, or how can I force this? For any help, I´m lucky... Ciao Norman-Timo -
how to make a stealth applicationAdditional Question: How can somebody use Windows (Operating System) and start in this Environment an application without Windows has been signalized from it? Windows uses the Task-List Manager as a CoreComponent. Starting an application under Windows without using the Task-Manager means that the application has to be started outside from Windows. But Windows is a unique working Operating System. You have the decision: Starting Windows and your application -> Application appears in Task-List. Starting Application without Windows (perhaps directly from Bios?) -> Assembly Hacking (I wish you luck ;-)) So maybe your question is clearer now... Ciao Norman-Timo
-
ImageStream from Resource...Does really no one knows something about my problem? *PushThreadForward* Ciao Norman-Timo
-
how to make a stealth applicationI think that´s not possible! Because in the Task-Manager are all processes shown, equal which application is behind it. You´re only solution can be that you hide your application behind a strange name or another name. (Are you programming a virus?) Why should this application not be listed in Task-Manager? Perhaps you can run your application with a different user so that your "normal" user can´t stop your application, but to do this in stealth mode, I think that´s not possible... Ciao Norman-Timo
-
ImageStream from Resource...Hello C#-Community! I´ve a problem with a ImageStream from a Resource file. My programming partner (not available anymore) used some nice icons (I hope they are icons!), but he embedded them in a resource-file. It´s no problem to get these Images via:
private System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TestRessource)); private System.Windows.Forms.ImageList imlIcons; // .. this.imlIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlIcons.ImageStream"))); imlIcons.Images[0].Save("test.ico", ImageFormat.Icon);
But the Save-Method did not return the expected result. The resulting .ico-file is only a Hex-File. To understand what he is doing with the stream - here is a code snippet from the resource file: <data name="imlIcons.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value> Private</value> </data> <data name="imlIcons.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </data> <data name="imlIcons.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT .... ..... .... </value> </data> Can anybody help me to save each image in a seperate .ico-files, so that I can use these icons in other applications? Or how can I find out in which format these images are? And then how I can convert them into icons? Please, I need help... Norman-Timo -
Reflection Problem...Hi leppie! Sorry! I forgot the InvokeMember statement It should be:
object retObject = MyClass.InvokeMember("MyStaticMethod", System.Reflection.BindingFlags.InvokeMethod, null, ?X?, parameters);
And why should this not work? Ok I tried with both Flags, but ths won´t work, too! But my error was much more simple, I detected that my MyClass was 'null' because I forgot the namespace to find my 'MyClass' --> 'Namespace.MyClass'. But why he didn´t throw an error, I don´t know! Thx therefore Leppie, explain why I should make it with your solution? Is it faster? Ciao Norman-Timo -
Reflection Problem...Hello C#-Comunity! I have a little problem using Reflection under C#. I defined an abstract class with a static method in an assembly '.dll'-file. In source code it looks like:
public abstract class MyClass { // ... public static int MyStaticMethod(int paraNumber) { // ... } }
This code is compiled as a '.dll' file. Then it´s not implemented via Reference in Visual Studio, but as an reflection-load with the 'System.Reflection.Assembly.LoadFile(...)' - statement. My problem is to invoke the static method in this abstract class via reflection. With the statements:Type MyMetaObject = assembly.GetType("MyClass", true, true); object[] parameters = new object[1]; parameters[0] = (object) paraNumber; object retObject = MyClass.("MyStaticMethod", System.Reflection.BindingFlags.InvokeMethod, null, ?X?, parameters);
This doesn´t work :-( I think the problem is the '?X?', because I tried it with 'null', but it causes a runtime error like 'Object reference is not set to an instance of object' [or something like that]. Normally the '?X?' parameter is for an instance of the object which method will be invoked, but I can´t create an instance from an abstract class object! Has anybody some solution proposals? Thanx for any help! Ciao Norman-Timo -
Check if TCP/IP partner disconnected...Hey thanx! But in my case (I forgot to write this!) I only want to communicate with a static partner. And in my case the communication should never be disconnected, and there is only one case if connection fails: socket error. Only if I start my application I bind the socket to my IPEndpoint and set the Socket to Listen and wait for this client response. After client is responsing the connection is hold and should never end. But there are many reasons why the connection breaks: perhaps the cable was disconnected, or the comm. partner has to reboot..... But nothing helps, so I understand, I have to test the communication and send a "null" package after every certain timespan. Ok thanx to all Your Norman-Timo