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
V

VSush

@VSush
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error while opening form in Design mode
    V VSush

    Thanks for the suggestions. Actually the problem was not with any initialization or anything sort of that. The same solution was working perfectly fine until yesterday! I had installed some system updates...not sure if that has goofed up my IDE. But anyways, i just went about cleaning up all my projects, bin/obj/cproj.user and then opened the solution again, built it. Things are working fine now. Hopefully i shouldnt face the problem again...else i'll have to setup a schedule task to do this everyday.;)

    C# visual-studio help csharp design question

  • Error while opening form in Design mode
    V VSush

    I have visual studio 2003 installed. Everything was working fine till now, but all of a sudden i am not able to open windows form in designer mode. When i try to open it, i get the message <> I tried closing the IDE and reopening, rebuliding (funny thing is it builds fine and the form gets displayed when i run the application), closing the solution and building form command prompt. Nothing that I did fixed the issue. Any idea anyone???

    C# visual-studio help csharp design question

  • Changing display area in ListView
    V VSush

    I am not sure I quite understood your question but if you have derived your listview from the standard .net listview, you can use the Autoscroll property of the listview. This would by itself display the correct area.

    C# csharp css help question

  • Namespace in XMLDocument
    V VSush

    Hi, I am sorry if this is a very basic question. I am new to XMLs. I am using .net XMLDocument class to operate with xml files. I would like to know what is the significance of a namespace when parsing XMLs. what and why is a namespace used? Thanks.

    XML / XSL question csharp xml json

  • Hover on Button
    V VSush

    Hook up the mouse hover event of the button and add a tool-tip. Sample code: hook up the event - this.button1.MouseHover += new System.EventHandler(this.button1_MouseHover); define the handler - private void button1_MouseHover(object sender, System.EventArgs e) { ToolTip obTool = new ToolTip(); obTool.SetToolTip( button1, "This would Cancel the form"); }

    C# tutorial

  • Debug ActiveX control from C# application
    V VSush

    If you have enabled unmanaged debugging in the application and it still doesnt work, try this: Open the cpp source file in your .net IDE (where the c# project is open). Add a breakpoint in the cpp file where you want the control to stop (the ActiveX function that you wish to call). Now try to step into the cpp function from your c# code.

    C# csharp c++ com debugging

  • Invalid Resx file, need to regenerate
    V VSush

    I am not sure what is wrong with your resx file. But MS supports generating resx files and there is a tool that comes along with the SDK. If you have SDK installed it should be straight forward: Check in your Program Files folder : Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Tutorials\resourcesandlocalization\resxgen

    C# help

  • Decompile .NET
    V VSush

    Use a Dotfuscator. MSDN has some useful information on this. Type "obfuscation" and find out

    C# csharp help tutorial

  • How to convert struct to byte array?
    V VSush

    The following code converts the structure to bytearray. Hope this helps... using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential, Pack=1)] public struct Test { public int i; public string s; } [StructLayout(LayoutKind.Sequential, Pack=1)] public struct Check { public int I; public Test [] structArray ; public int GetMySize() { int iSize = Marshal.SizeOf( I) + Marshal.SizeOf( typeof( Test)) * structArray.Length; return iSize; } public void MarshalStructToPtr(ref IntPtr ptr) { Marshal.StructureToPtr(I ,ptr, true); ptr = (IntPtr)((int)ptr + Marshal.SizeOf( I )); for( int count = 0; count < structArray.Length; count ++ ) { Marshal.StructureToPtr(structArray[count],ptr, true); ptr = (IntPtr)((int)ptr + Marshal.SizeOf( structArray[count] )); } } } class ConvertStructToByteArray { public void Convert() { Test test1 = new Test(); test1.i = 2; test1.s = "test"; Check objCheck = new Check(); objCheck.I =10; objCheck.structArray = new Test[1]; objCheck.structArray[0] = test1; int Size = objCheck.GetMySize() ; IntPtr pCheck = Marshal.AllocHGlobal((int)Size ); IntPtr Temp = pCheck; objCheck.MarshalStructToPtr( ref Temp); byte[] bytearrCheck = new byte[ Size]; Marshal.Copy( pCheck , bytearrCheck , 0,(int)Size); Marshal.FreeHGlobal( pCheck ); } }

    C# data-structures tutorial question

  • Scrolling a listview control in .net
    V VSush

    Hi All, I am using a .net listview control with the AutoScroll property set. I want to programatically scroll the listview control. I tried using P/Invoke messages. When I used the SetScrollPos message, the scroll bar moves but the content of the listview itself doesnt move. Anbody faced a similar problem before? Any clue how i can solve this??

    .NET (Core and Framework) csharp help question
  • Login

  • Don't have an account? Register

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