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
S

Shpendh

@Shpendh
About
Posts
19
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    S Shpendh

    the form getting some data from db, but all the things in the constructor is going well no prob, only when it goes to the ShowDialog(). it get me this error.. in the CALL STACK is this: ......Main() Line 225 + 0x1a bytes in the output: A first chance exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll

    spaps

    C# help performance

  • Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    S Shpendh

    I have this problem when a form is going to show this form... frm.ShowDialog(); //here ocured the error help pls.

    spaps

    C# help performance

  • Difference between in intializing the Object of the class
    S Shpendh

    lisan_al_ghaib wrote:

    A e = new B()

    sorry...that's my fault

    spaps

    C#

  • Difference between in intializing the Object of the class
    S Shpendh

    if you do like this: A e = new A(); e.get(); B c = new B(); c.get(); you will have Hello and Fine too..

    spaps

    C#

  • Difference between in intializing the Object of the class
    S Shpendh

    Difference between in Ist Method and IInd Method Ist Method returns. "Hello" IIst Method returns. "Fine"

    spaps

    C#

  • classes
    S Shpendh

    maybe you should use the Constructor to send the class as a parameter..

    spaps

    C# csharp help tutorial

  • Difference between Instance and Object
    S Shpendh

    A is the object, and e is the Instance, through the instance you can access the method you have in the Class, you cannot access to the method without creating the instance...

    spaps

    C# csharp question

  • How to change the value from database into some other language
    S Shpendh

    i think maybe for the site you should use the resourses file (*.resx) and to properties set the Localizable to True, and for the DB maybe you should redesign and add columns to the table for the extra language or you should think about other posibilites for ex. you set the languages in one table and add a column to table with the ID of the language that you are currently using. it can be done with the relationship tables.. hope it will help..

    spaps

    C# database tutorial

  • Create Shortcut key in C#
    S Shpendh

    if i understand correctly you want to make a event on e keypress no with a mouse ex. pressing the F* to raise the event that you want. i think that in the form that you want to do the shortcut you have to enable keyPreview to True and on the keydown event of the form you should write that on what keycode it should raise this event. ex...

    if (e.KeyCode == Keys.F8)
    {
    write the code...
    }

    maybe it should help

    spaps

    C# csharp tutorial question

  • Result of division not appear in the textbox
    S Shpendh

    when you divide this two values try to cast and initialize to result

    spaps

    C# question

  • how to convert string to decimal
    S Shpendh

    be sure that you wrote only numbers in the TextBox. or set it in the try catch to see what is the problem ;)

    spaps

    C# database tutorial

  • Break out of a loop
    S Shpendh

    i didn't say that "goto" is the only one choise in this solution, i wanted to help him with one of the solution, i never didn't use "goto" in my application but i have only learned about it. but anyway sorry, maybe this example will help, string filename = ""; bool isFound = false; foreach(string str in strColl) { if(!isFound) { foreach(string str2 in strColl2) { if(str2 == "founded") { filename = str2; isFound = true; break;//break from first loop } } } else { break;//break from second loop } } hope this will help,

    spaps

    C# com tools help question

  • Break out of a loop
    S Shpendh

    you can use also "goto" short example: string filename = ""; for(int i = 0; i < 10; i++) { if(i == 3) { filename = "path" goto FileHasFounded; } } FileHasFounded: MessageBox.Show("file name is this: " filename); break don't work in this case because you have two loops. and it will break only from one loop hope it will help. respect.

    spaps

    C# com tools help question

  • Error-While sending Mail
    S Shpendh

    is your PORT number correct...?

    spaps

    C# help csharp com

  • Replace Text
    S Shpendh

    did you try it with SUBSTRING?

    spaps

    Database help

  • How to only open one instance of a window form from parent form
    S Shpendh

    its nice but i prefer to use if(f.Name == "RibbonForm1") and not if(f.Text == "RibbonForm1") because he can change the name dynamically respect.

    spaps

    C# question tutorial

  • MDIParent, MDIChild and MDI..ermmm..GrandChild? (How to set the MDIParent on a form that is called through a child form?)
    S Shpendh

    hi there, i think this will help from the first form you have to raise an event (on click of something ex. button) and you write this code : Form frm = new Form(); frm.MdiParent = this; frm.Show(); and i will depend on that form, from where it was opened, respect.

    spaps

    C# help tutorial question

  • Simple Stuff...but I don't know it.
    S Shpendh

    hi there, in this example you didn't create any table. You creating a variable and it is not possible to select from variable, -- Declare @MyParam varchar (20) Set @MyParam = 'MyTableName' you can simple select like this: SELECT @MyParam -- it will give this result 'MyTableName' if you want to create table, use this Create Table #MyTableName ( here you define the attributes ex. atributename varchar(20) ) and then you can use SELECT * FROM #MyTableName the result --- atributename respect

    spaps

    Database database question

  • can somebody explain the logic of this? [modified]
    S Shpendh

    hi there, i think that maybe you don't need this code in this part, because you're doing nothing , the local variables end in the end of method and I think that this code is just for spending a little more your memory.... exists any posibility that this code has the logic that you wanted to set this variable to any of you controls (like label, textbox etc), but you did not set to anyone of your control. I think that you forgot to set this value to any of your control. respect

    spaps

    The Weird and The Wonderful 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