Use a this.Height instead of this.Size.Height and it will work.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Use a this.Height instead of this.Size.Height and it will work.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
To understand the reason why C# prevents you from doing this, you need to understand the basics of value types (or structures). Unlike reference types, when value types are returned from methods (or set via an assignment), a copy of the value type is returned and not the orginal version. In the situation above, Form.Size is a property (which is a method underneath) and it returns the Size value type. So when you attempt to assign a value to Size.Height, you are actually attempting to assign it to a copy and not the underlying Size structure. Although, it is technically valid to do this, the C# compiler makes the assumption that this is not what you want to do, and hence fires the compiler error.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
As I said.... If you have unlimited nested levels for level 1, keep on making a list of all the nestings that you have already written in a stringdictionary or so. the key wud be level number and value would be name, in the StringDict. This list will kee on growing as your list size. if ur list item is unlimited, recursive is a real bad idea since it will give you stack overflow soon enough. Putting in a bit of logic to use a normal collection instead of a recursive stack is a much much better idea for unlimited list items.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
You would be better blocking off the Windows Messenger Service in your box. That will disable the net send command operation since that is a sensible thing to do since it can be easily used by spammers and exploited. Vista has this blocked by default. However, if you still wanna capture the net send message, then you will need to coide for the Windows Messenger Service using the API's to listen to the same. Net Send uses the NetBEUI protocol and you will need to code in COm for capturing the message through the exposed Interfaces of the API. Another easy way would be to observe the net send popups displaying and capturing the message in it. There is also a sample around it: Check this out http://msdn2.microsoft.com/en-us/library/ms940840.aspx[^] Accept the reply if it helped you!
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
It's easy. In this routine, you will iterate throught the items in the listbox, fetching their values one by one. Now i assume that you are getting the info on which list-item is a child and which is a parent from the value of the listbox item. In that case, you need to assign all items in the list box with a unique level number (depending on their nesting in the XML). Based on this, when you iterate through items in the list box, you would know which item to nest under which node and at which level. It won't help much by trying to make this recursive. Keep it simple and straight. Any by the way, it's pretty hard understanding your written english :) Please be a little more clearer with your questions.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Anytime Steve :) Yes Bitmap class offers the transparency thing, but under the hoods its using the same API so i chose to put forward the native thing :D. There are tons of benefits of blitting but then not all is offered through the GDI+ classes and the likes. MS is making life easier for us by putting better and more abstractions over the native ways....and that is really productive. However, knowing how my car runs can reduce my dependency on the mechanic :))
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
To convert the video, import it in flash and from within. Moreover there are external FLV converters also available.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
On another note, something faster, and optimized than substring or trimending (think what shall happen calling substring on a very huge string?) strNum[strNum.Length-1] = string.Empty; There are few scenarios where this will be the best and others where this wont be a better idea.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Yes. Use a timer to toggle between tabs, and on elapsed duration, send a click event to the tabcontrol with the required paramaters, simulating as if the user clicked. This will make teh tab control change the active tab, based on which tab index was passed in the event handler call
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Have a look at the Bitblt in Win32 APIs. thats one way fo doing this, though through Interop in .NET
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Reinitiate the remoting setup request by dynamically performing the steps to register the channel and connect. You need to ping the Server and when it becomes online, reinitiate the remoting framework from the client.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Well for this, you can use the datagrid row properties to find out which are the changed/modified rows and likewise only update those rows in the DB. Does that answer what you looking for?
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Well a switch is a manual and less elegant way of doing this. A preferred way is having all the digit equivalents in a string table, and then having the conjuntion operators in another one, and a mapping list for mapping the info. I will try to post some code on it, using the neural approach that i did 6 years back.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
I assume that you already know how to write an XML output. So to segregate the Dat and time, you can use the DateTime class to get the date and time seperate portions from the DateTime.Now Just take out the time and date component from the supported methods
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Well I am talking about a full fledged telnet client, that I had to code for one of my projects, to enable citrix console guys to hook in as per the policy defined. Anyways, good that you found soemthing. Many fo the samples out there, but then they have some potential loose ends as far as i have seen.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Yes it is. Use the DX interop to get the reference to the frame buffer and bingo! its done.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
What is the socket config you have done? It will depend upon it. I assume that the socket config is at fault
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Well depends on the CLR. when main returns, main still is the primary thread, but a manged thread. It will depend on whims n fancies of the CLR. CLR will take some time to reflect the thread stoppage, depending on other work it is involved in. So no need to be worried.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Simple. Get the pointer to the Frame buffer through the WM API. Then from that display the first entry through Render call. It shall be done. Clicking on Play will restart the movie from the beginning though. To circumvent, put in a WM Hook to intercept the play button click, and continue from second frame onwards. I kno it seems a little complex, but trust me its easy adn you can find built code fo this.
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!
Yes its a piece of cake. You have tons of game engines in the market that you can use for the same, through Interop. Also you can use the DirectX wrapping assemblies for achieveing the same results. I have created many DX based apps in the past using C# and though the performance is not as expected in lieu of the native version, still its respectable
Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!