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
D

dealon

@dealon
About
Posts
23
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Forms vs Dialogs - A Question of Architecture
    D dealon

    It seems not so complicated a project for you to design for. Now that you have three types of equipment, why not design three different forms for each type?It's no need to construct a perfect design in one project,at least not for this one ,right?To achieve your goal is OK,right?

    Regards, Dealon Impossible is nothing!

    Design and Architecture

  • Adding items to TableLayoutPanel
    D dealon

    I think you'd better create a control(label, textbox,etc..)first associated with that item you clicked, then add to it to your TableLayoutPanel's controls. Hope can help you.

    Regards, Dealon Impossible is nothing!

    C#

  • File.Copy Issue
    D dealon

    You'd better make sure the destination directory exist while coping file.Hope such code can help:

    string strPath = AppDomain.CurrentDomain.BaseDirectory + @"UserImages\";
    // check the directory existence
    if(!Directory.Exists(strPath))
    Directory.CreateDirectory(strPath);
    //...your file copy code here...
    // eg.
    // File.Copy("d:\\a.txt", strPath + "b.txt");

    Regards, Dealon Impossible is nothing!

    C#

  • how to ?
    D dealon

    The SqlDataReader has no such method, please take a look at this below: SqlDataAdapter s = new SqlDataAdapter("...sql...", Conn); DataTable dt = new DataTable(); ; s.Fill(dt); DataRow dr = dt.Rows[dt.Rows.Count - 1]; Hope it's usefull for you!

    Regards, Dealon Impossible is nothing!

    C# csharp database question asp-net sql-server

  • Code Formatting.........!!!!
    D dealon

    Another solution: CTRL + K + F :laugh: Regards, Dealon

    If we dream, every thing is possible!

    C# question

  • How to and process that using resource
    D dealon

    I think the so called process is you project itself, right? You may check your code and call the method "Close" or "Flush" of a stream that accessing that file. Maybe I need some of your oritinal code for more information. Regards, Dealon

    If we dream, every thing is possible!

    C# tutorial announcement learning

  • OutOfMemoryException, Create handle failed!!!
    D dealon

    Gareth, I got it from the follow address: http://www.aboutmydot.net/index.php/unhandled-exception-win32exceptionerror-creating-window-handle[^] Thanks Gareth for your help. Regards, Dealon

    If we dream, every thing is possible!

    C# help question

  • OutOfMemoryException, Create handle failed!!!
    D dealon

    Gareth, I think i need to get a new project to reproduce such problem because my original project has as many as 40 windows.Some work ok while others not.I don't known which code cause such errors and I will find out the codes exactly. Later, I will show you more information for the errors. Gareth,Thank you very much. Regards, Dealon.

    If we dream, every thing is possible!

    C# help question

  • OutOfMemoryException, Create handle failed!!!
    D dealon

    Thanks Gareth. I want to show my one child window twice, and the first time it worked correctly, but then: dlg.Show(); at this code, it occured error "OutOfMemoryExcpetion" -Create handle failed. ps: my some other windows like it wouldn't show suck error. And this is a child window of one MDI window.I don't known why?

    If we dream, every thing is possible!

    C# help question

  • OutOfMemoryException, Create handle failed!!!
    D dealon

    Hello there. When i run my MDIChild style window the second time, it occured an error: OutOfMemoryExcpetion-Create handle failed.I don't known why, because some child windows can't occured this error. Code like below: dlg.MdiParent = this; dlg.Show(); The first time i run this code it work correctly, but when i run it again that error occured. Any help? Thanks in advance!

    If we dream, every thing is possible!

    C# help question

  • Cannot insert duplicate key row in object
    D dealon

    Ballita wrote:

    "Cannot insert duplicate key row in object with unique index .\r\n51062\r\nThe statement has been terminated."

    was the key field inserted with the same value? I think the best way for you is to copy the sql statement here, because the error occured in sqlCommand.ExecuteNonQuery();

    If we dream, every thing is possible!

    C# database help

  • constructor failed??? [modified]
    D dealon

    Thank you very much, Shilpi. :)

    If we dream, every thing is possible!

    C / C++ / MFC help question

  • constructor failed??? [modified]
    D dealon

    Sorry toxcct.It's my fault. I have edited my post. Thanks youtoxcct.

    If we dream, every thing is possible!

    C / C++ / MFC help question

  • constructor failed??? [modified]
    D dealon

    Thans Shilpi. I'm so sorry.It's my fault. I have edited my post... :)

    If we dream, every thing is possible!

    C / C++ / MFC help question

  • constructor failed??? [modified]
    D dealon

    Thank you Pallini.I got it... But i found this code can't work. class aa { public: aa():x(5) { }//... }; it said x(5) is not a base class. Thanks once again! :)

    If we dream, every thing is possible!

    C / C++ / MFC help question

  • constructor failed??? [modified]
    D dealon

    Hello all. I have this code with something error occured: //------------------------------------------ #include "iostream" using namespace std; class aa { public: aa() { aa(5); } aa(int t) { x = t; } void print() { cout << x << endl; } private: int x; }; int main() { aa t; t.print();//this can't output "5", why? return 0; } ///--------------------------- As is descriped above, thanks in advance!

    If we dream, every thing is possible!

    modified on Thursday, June 5, 2008 3:31 AM

    C / C++ / MFC help question

  • Something wrong with "ItemArray.CopyTo()" [modified]
    D dealon

    I see.Thank you very much. :)

    If we dream, every thing is possible!

    C# help question

  • Something wrong with "ItemArray.CopyTo()" [modified]
    D dealon

    Thanks Guffa for your help. I think my incorrect code copied confused you. The fact is like this: 1)This code can work and the drNew.ItemArray have my wanted data. ------------ object[] obj = new object[dr.ItemArray.Length]; dr.ItemArray.CopyTo(obj, 0); drNew.ItemArray = obj; 2)But the method below seems bad. ------------ drNew.ItemArray = new object[dr.ItemArray.Length]; dr.ItemArray.CopyTo(drNew.ItemArray, 0); dtDest.Rows.Add(drNew); i found drNew.ItemArray is still empty.I don't known why?

    If we dream, every thing is possible!

    C# help question

  • Something wrong with "ItemArray.CopyTo()" [modified]
    D dealon

    Thanks Christian Graus for your reply. The issue is : After "CopyTo" operation, the destination array(here is drNew.ItemArray) is still empty.

    If we dream, every thing is possible!

    C# help question

  • Help in Passing value from child form to parent form
    D dealon

    It's easy! You can pass your parent form to child form, and then you can do what you want. have fun.

    If we dream, every thing is possible!

    C# question help
  • Login

  • Don't have an account? Register

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