Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Arjun Mjolnir Bahree

@Arjun Mjolnir Bahree
About
Posts
36
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Adapting form size to content size
    A Arjun Mjolnir Bahree

    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!

    C# csharp visual-studio com help tutorial

  • Adapting form size to content size
    A Arjun Mjolnir Bahree

    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!

    C# csharp visual-studio com help tutorial

  • Xmlwiter anyone can help
    A Arjun Mjolnir Bahree

    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!

    C# help xml

  • how to listen windows net send service
    A Arjun Mjolnir Bahree

    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!

    C# database tutorial

  • Xmlwiter anyone can help
    A Arjun Mjolnir Bahree

    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!

    C# help xml

  • WPF BitmapImage and transparency
    A Arjun Mjolnir Bahree

    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!

    C# csharp wpf graphics

  • Video to Flash (.flv)
    A Arjun Mjolnir Bahree

    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!

    C# question adobe

  • Trim away the last part of a string
    A Arjun Mjolnir Bahree

    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!

    C# tutorial

  • Making tabpages appear without cllicking
    A Arjun Mjolnir Bahree

    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!

    C# question

  • WPF BitmapImage and transparency
    A Arjun Mjolnir Bahree

    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!

    C# csharp wpf graphics

  • How to dump IPCChannel ?
    A Arjun Mjolnir Bahree

    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!

    C# help csharp dotnet sysadmin tutorial

  • Bulk Update.
    A Arjun Mjolnir Bahree

    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!

    C# css database announcement

  • Digit To text Converter [modified]
    A Arjun Mjolnir Bahree

    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!

    C# help tutorial

  • Write data to an xml file
    A Arjun Mjolnir Bahree

    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!

    C# csharp xml question

  • Automating Telnet
    A Arjun Mjolnir Bahree

    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!

    C# sysadmin tutorial question

  • access video frames
    A Arjun Mjolnir Bahree

    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!

    C# csharp question

  • some thread problem in client/server application
    A Arjun Mjolnir Bahree

    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!

    C# csharp c++ sysadmin help question

  • Application.Exit() not working very well
    A Arjun Mjolnir Bahree

    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!

    C# question workspace

  • Show a still image in wondows media player
    A Arjun Mjolnir Bahree

    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!

    C# tutorial

  • A 2D graphics via Direct3D - gaming engin
    A Arjun Mjolnir Bahree

    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!

    C# csharp com graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups