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
T

Tyrus182

@Tyrus182
About
Posts
86
Topics
51
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Design-Time Collection Serialization
    T Tyrus182

    Hello i am trying to override a listview's Items property i have created a new ListItems method that implements a custom UITypEeditor for ListViewItem allowing my to insert my own type that inherits from ListViewItem called ControlItem now sow far all of this seems to work properly however my problem is that when the designer serialized the newly created item it uses the wrong constructor ControlItem controlItem1 = ((ControlItem)(new System.Windows.Forms.ListViewItem(""))); it is calling the constructor of the base class, is there a way for me to ovveride this behavior and tell it my own type to instantiate? i have tried the DesignerSerializationVisibility attribute but it does not seem to work. here is the definition of the ListItems method //[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [Editor(typeof(ControlItemCollectionEditor), typeof(System.Drawing.Design.UITypeEditor))] public ListView.ListViewItemCollection ListItems { get { return Items; } } i would appreciate any help that could be provided. thank you.

    C# help graphics design json question

  • disable paste in a textbox
    T Tyrus182

    any idea how i can disable the context menu that pops up with i right click?

    C# question

  • get char from KeyChar
    T Tyrus182

    no im actualy an idiot apparently KeyChar is already a char :P not an enumeration.

    C# question

  • get char from KeyChar
    T Tyrus182

    Hello in keypress event for a text box i want to convert the e.KeyChar into the actual character how do i make it do this?

    C# question

  • if statements
    T Tyrus182

    okay what it sounds like is that you are trying to get data from a database and use that value to do a specific action you obviosly need someway of obtaining that data from the database i don't know how you have this information stored but if its in some sort of class then you would do something like if(Loan.JointAccount == "MyWife") { do logic here } else { do non joint logic here }

    C# question

  • disable paste in a textbox
    T Tyrus182

    hi id like to prevent people from pasting in my text box what is the best way to trap the keyboard commands and stop the paste menu from poping up on right click?

    C# question

  • Custom Controls
    T Tyrus182

    well all my variables are initialized correctly to start with and then ill go in and change settings and stuff compile and then they dissapear and revert back to the original settings, and it doesn't happen every time i compile either it seems to be somewhat sporadic. i also am getting some wierd tasks telling me that there is object reference not set to an object or somehting like that.

    C# question help

  • Custom Controls
    T Tyrus182

    Hi i have a custom control and everything is working fine, except in my test project when i compile it the settings of the control revert back to the default settings, why are my settings not persisting, and how do i go about fixing this problem? Thank you,

    C# question help

  • Control Events
    T Tyrus182

    Hi i am trying to add some additional events to a control that inherits the listview however my problem is that the event doesnt seem to show up in the event browser. public delegate void ItemClickEvent(object sender, ItemClickEventArgs e); public ItemClickEvent ItemClick; Here is the delegate and event i created what else is required in order for these to show up in the property grid.

    C# css help

  • ListView Paint Events
    T Tyrus182

    Hello i have a control that inherits the list view i have tried to override the OnPaint and OnPaintBackground events but the code never seems to reach either function why would my overriden functions not be called when the control paints itself?

    C# question

  • PLEASE HELP
    T Tyrus182

    I am trying to make a web form with a text box and a button and when the button is pressed a new web page is opened in a new window with the address specified in the text box. i don't want to use javascript id like to use c# can someone please help me :)

    ASP.NET csharp javascript help

  • Opening New Web Page
    T Tyrus182

    Hello im trying to figure out how to open a web page in a new window with an address that isnt determined untill runtime. i also want to keep this code in the page's .cs file.

    ASP.NET tutorial

  • Opening Web Page in New Window
    T Tyrus182

    Hello i am just wondering how i would open a web page in a new window when a button is pressed.

    ASP.NET

  • stupid question
    T Tyrus182

    how would i initialize a static array?

    C# question data-structures

  • Windows Versions
    T Tyrus182

    How does one determine the version of windows that thier program is running on?

    C# question announcement

  • Determing My Programs Directory
    T Tyrus182

    Hello I am writing a program that contains a class, the class needs to determine the directory of the program in order to save a file in the same directory as the .exe file. what do i need to do to get put the file im writing in the same directory as the exe.

    C#

  • OLE DB problem
    T Tyrus182

    the connections all work fine untill i open the open file dialog then they all die once i try to use them after the open file dialog it actualy looks like whenever i call fill on an adapter it dies after the open file dialog the open file dialog has nothing to do with the database stuff.

    C# database com help

  • OLE DB problem
    T Tyrus182

    An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll "System.Data.OleDb.OleDbException: Could not find file 'D:\\AttendanceDB.mdb'.\r\n at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)\r\n at System.Data.OleDb.OleDbConnection.InitializeProvider()\r\n at System.Data.OleDb.OleDbConnection.Open()\r\n at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)\r\n at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)\r\n at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)\r\n at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)\r\n at SanMarCalendar.SanMar.cmbGroups_SelectedIndexChanged(Object sender, EventArgs e) in d:\\sanmar\\sanmarcalendar\\forms\\sanmar.cs:line 1338" i never even told it to set it to that file or any other file the proper location of the file is set by default to ../../AttendanceDB.mdb but for some reason whenever i use an openfile dialog it sets it to the above. and gives me this exception why is openfile dialog changing my oledbConnection string :)

    C# database com help

  • OLE DB problem
    T Tyrus182

    Hello i have a program that is using oledb stuff and it has an openfile dialog whenever i go in the openfile dialog and select a file anytime after that a oledb object gets called the program crashes why is openfile dialog affecting my database classes. the open file does nothing but return a string to my program

    C# database com help

  • Modal Dialogs
    T Tyrus182

    Ok My problem is i don't know how to make a form modal. I know how to show them modelessly with Show() but as far as displaying them as modal im lost.

    C# help 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