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
F

freakyit

@freakyit
About
Posts
110
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cant find BannerBitmap property ( win form setup creation )
    F freakyit

    win form setup creation???? you meen wix setup or you are writing your own ?!?!? there are definalty missing information. in wix you can set the banner image using the old one by just renaming the file ;)

    C# graphics help workspace

  • Socket Connection
    F freakyit

    may be the server will not send data back to the client?!? this piece of code is not very helpfull for a good answer. first your XML you want to send is corrupt! take a look at the xml-declaration >. sencond one is that you will read data from the stream without knowing whether data is available or not ^^ use the search function to take a look at articles that work as server/client app..

    C# sysadmin xml help question

  • problem using dataRelation in dot net
    F freakyit

    than objDA will be null the exception is NullReferenceException that implicit says that one object is null at the run time set breakpoints and check if all vars you use are not null. bless

    C# help data-structures debugging

  • problem using dataRelation in dot net
    F freakyit

    Line 1222: objDA.Fill(ds); may objDA is null or ds ^^

    C# help data-structures debugging

  • Should not end my Application processes via Task Manager
    F freakyit

    hi, the easy way would be to disable the taskmanager for the user using policies.. it sounds like the user will have no ability to to certain changes on the system either, so would be using policies the right way if not it would be a way too =)

    C# question

  • Problem with Send Keys to background process
    F freakyit

    hi, i have in mind to use the lPama for the modifier controls

    PostMessage(hWnd, WM_KEYDOWN, VK_F, VK_ALT);

    greetz

    C# help tutorial question

  • Superman if-clause
    F freakyit

    commited :)

    The Weird and The Wonderful question

  • Superman if-clause
    F freakyit

    just looked into the code of an project made from a workmate. may be he thought superman would fly in and delete the folder between the two if-clauses xD

    if (System.IO.Directory.Exists(dest))
    {
    if (!System.IO.Directory.Exists(dest))
    {
    System.IO.Directory.CreateDirectory(dest);
    }

    fullDest = dest + fileInfo.Name; // what is if Directory seperator is missing? xD
    

    }

    The Weird and The Wonderful question

  • SendMessage to control with non-fixed ControlID
    F freakyit

    the search is your best friend :) try searching like TextBox Text Win32Api

    C# question

  • User control Name
    F freakyit

    here i hope it works :) and will be published :) UserControl prompts for ControlName after drop in the Designer.[^] kind regards, freakyit

    C# winforms

  • How to invoke native MyFunction(MyStruct* myStructs, unsigned int nMyStructs) from C#?
    F freakyit

    you need to rewrite the MyStruct in C# using the MarshalAs attribute at the vars declaration. something like above :) its only a example ^^ you need to take a look at the mapping of your C byte* to C#.. [StructLayout(LayoutKind.Sequential)] unsafe struct MyCSharpStruct { public int size; public IntPtr data; [MarshalAs(UnmanagedType.ByValTStr,SizeConst=32)] public string MyString; // C -> unsigned char MyString[32]; } [DllImport("MyStruct.dll")] static extern void MyFunction(ref MyCSharpStruct myStructs, unsigned int nMyStructs);

    C# csharp c++ data-structures tutorial question

  • User control Name
    F freakyit

    alright i have the solution worked out!! :) but you need to wait till i am at home ;) i will write an article about your problem because this is very interesing stuff :) so please be patient.. greetz all over the world

    C# winforms

  • User control Name
    F freakyit

    hmmm i have to agree with you every time a promting for the name would suck :) actually you need to write an addin for the IDE (VS oder #Develop). The addin should override the INameCreationService of the DesignerHost. then you can create a name the "normal" way or prompt for it :) sooo far ;)

    C# winforms

  • User control Name
    F freakyit

    hiiiii, for me it sounds you developed your own Designer ?!?? in that case you need to implemented the INameCreationService. :)

    C# winforms

  • How to join 2 string[] objects
    F freakyit

    System.Collections.Generic.List<string> lst = new System.Collections.Generic.List<string>(); lst.AddRange(s1); lst.AddRange(s2); string[] s = new string[lst.Count]; lst.CopyTo(s); lst.Clear(); lst = null;

    C# question data-structures tutorial

  • Hiding a Button in a DataGridView
    F freakyit

    hi man, this could be a possible solution but never tested.. In the CellValueChanged event you have to check your specified cell against your condition and than try: dataGridView1.Rows[rowIndex].Cells[buttonCell].ReadOnly = true; or dataGridView1.Rows[rowIndex].Cells[buttonCell].Frozen = true; hope i could help :)

    Windows Forms help tutorial

  • Pinvoking a non WIN32 API under VB, cant get handle to printer
    F freakyit

    hmm the lib returns an error code so every thing goes right for me. if the function can't be called you will get an exception during the call! that means there will be no return value! check what exactly ZBR_ERROR_GETPRINTERDATA_ERROR means. you may have other errors that cause to an ZBR_ERROR_GETPRINTERDATA_ERROR by calling your pinvoke sig... blessssss it :)

    Visual Basic help csharp json tutorial

  • Pinvoking a non WIN32 API under VB, cant get handle to printer
    F freakyit

    did you try my example code ??? i am marshalling the string into a LPSTR ;) in the example. greetz

    Visual Basic help csharp json tutorial

  • AD-User must change password at next logon
    F freakyit

    sure he wants copy'n'paste

    C# tutorial question

  • Pinvoking a non WIN32 API under VB, cant get handle to printer
    F freakyit

    do you use VB6 oder .net ?? try the following pinvoke sig: declare function ZBRGetHandle lib "ZBRPrinter.dll" (ByRef hPrinter As IntPtr, <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPStr)> byval szBuffer as String, byval printerType As IntPtr, ByRef err As Integer) As IntPtr does complile but i don't know if this would solve your problem :)

    Visual Basic help csharp json tutorial
  • Login

  • Don't have an account? Register

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