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
A

ArjenGroeneveld

@ArjenGroeneveld
About
Posts
11
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Implement security in Window Forms Database application
    A ArjenGroeneveld

    Hi Danish Can you give me some more detail about role based security. For example, how to define the roles and how to link for example the buttons to these roles? What I see as most difficult is how to intermix the enabling and disabling of buttons and menu options depending on the security roles in combination with the "normal" button enabling and disabling business logic. Gr Arjen

    C# question csharp database security

  • Implement security in Window Forms Database application
    A ArjenGroeneveld

    Hello, I'm developing database applications in C#. Normally for small group of people. So far so good. I like to implement security. Login plus that the application is responding on the user (group) that logged in. What is the most practical approach to implement security? Arjen Groeneveld

    C# question csharp database security

  • Creating a custom BindingNavigator which include a BindingSource
    A ArjenGroeneveld

    How can I make the BindingSource which is inside the UserControl, visible to other controls on the Form? How do I make the Bindingsource.Datasource property public so it is visible in the Miscellaneous property section of the UserControl? Regards Arjen

    C# question

  • Creating a custom BindingNavigator which include a BindingSource
    A ArjenGroeneveld

    Hello, I created a custom BindingNavigator Toolstrip with Buttons - Save, MoveFirst, MovePrevious, MoveNext, MoveLast, Edit mode, Add new, Delete and Cancel. To avoid copying all events to each new Form I like to assemble the toolstrip including the buttons and events into a usercontrol. I want to embed a BindingSource into this UserControl. QUESTION: What is the best practise to house a BindingSource into a UserControl? The end objective is just to drag and drop the usercontrol onto the form and it's just a matter of linking the input controls (textboxes, comboboxes) to this new BindingNavigator control. Regards Arjen

    C# question

  • VS2010 Beta 2 does not ship Crystal reports anymore - cannot find crystaldecissions
    A ArjenGroeneveld

    Hello, I'm exploring Visual Studio 2010 Beta 2. Everything works okay in C# so far except for the fact how to include the crystaldecisions reference library to my project. Besides VS2010 I have Crystal Reports 2008 installed on my developing system. However when I go to the solution explorer I cannot find any Crystal library when I click 'Add Reference' and search in the .NET tab. QUESTION: Anyone who can help finding / downloading / installing the Crystal Reports interface library? Kind regards

    C# csharp question visual-studio beta-testing help

  • Extend BindingSource with a Dirty property and Dirty changed Event
    A ArjenGroeneveld

    Hello, The end result I have in mind is an extended BindingSouce control, which is having an "IsDirty" property and an "IsDirtyChange" event. The "IsDirtyChange" should only trigger when the User is making a change in one of the bounded controls. I did some searching in FrameWork and I put the following together, but this code does not trigger when a user changes the content in a control. So something is missing. Extended BindingSource coding... namespace ACMAD.Business { class exBindingSource : BindingSource { // Internal variable private bool flgIsDirty = false; // Event public event EventHandler IsDirtyChanged; protected virtual void OnDirtyChanged(EventArgs e) { if (IsDirtyChanged != null) { IsDirtyChanged(this, e); } } public bool IsDirty { get { return flgIsDirty; } set { flgIsDirty = value; } } protected override void OnBindingComplete(BindingCompleteEventArgs e) { base.OnBindingComplete(e); if (e.BindingCompleteContext == BindingCompleteContext.DataSourceUpdate) { if (!flgIsDirty && (e.BindingCompleteState == BindingCompleteState.Success) && e.Binding.Control.Focused) { flgIsDirty = true; OnDirtyChanged(EventArgs.Empty); } } } protected override void OnCurrentChanged(EventArgs e) { base.OnCurrentChanged(e); if (flgIsDirty == true) flgIsDirty = false; } } } Form coding I placed the exBindingSource on the form and connected an textbox to it. One record is loaded with: // Test purpose exBindingSource1.Clear(); exBindingSource1.Add(ac_Model); And I added an event private void exBindingSource1_IsDirtyChanged(object sender, EventArgs e) { textBox1.Text = exBindingSource1.IsDirty.ToString(); } The idea is that when the user makes a change to Textbox1 that Textbox2 is filled with the exBindingSource1.IsDirty value. But ... nothing happens.. Your help is most appreciated. With kind regards, Arjen Groeneveld

    C# database csharp help sql-server wpf

  • Extend BindingSource with a Dirty property and Dirty changed Event
    A ArjenGroeneveld

    Okay, Can you help me with the code? Kind regards Arjen

    C# database csharp help sql-server wpf

  • Extend BindingSource with a Dirty property and Dirty changed Event
    A ArjenGroeneveld

    Hello, I'm building a database WinForm application. The data objects in my first application where based up on SQLDataConnector, DataSet, DataTables and SQLDataAdapter. Now I moved on and I write Data object classes, which I fill with a SqlDataReader. Modifying the record is done by straight INSERT, UPDATE and DELETE queries written in a Data Object DB Class. The technique is out of the book => Murach's ADO.Net 3.5 LinQ and the Entity Framework. After studying different technique I decided not to go for Entity Framework but hang around with writing my own data classes, making use of binding with data objects and most important ... understanding what happens under the Engine Cowling. So far so GOOD. The client interface works fine, but I like to give the User feedback as soon she/he is changing the content in one of the bounded controls (Textbox, comboBox, ect). In such case I like to show a pencil Icon on the form indicating the content has been changed. So I like to capture an event as soon the record becomes "DIRTY". This way I can decided if an Update is required when the user clicks the button "Save and Close" (just like with leaving a MS Outlook contact form). If the 'IsDirty' property is 'false' the form just should close. Else it should write the changes back to the SQL server in advance of closing. I studied the BindingSource control, but I cannot find an 'IsDirty' property as well no event related to this. I found some articles on the web indicating the same problem. But the code samples are not providing a solution for me. CONCREET: I like to customize the BindingSource by simply adding an "IsDirty" property and an "IsDirtychanged" event. Will this be an easy one???? Your help is most appreciated! With kind regards, Arjen Groeneveld

    C# database csharp help sql-server wpf

  • How to convert a Control into a ToolStripButton
    A ArjenGroeneveld

    Dear Martin, Thank you for your quick reply and solution! With kind regards, Arjen

    C# help tutorial question

  • How to convert a Control into a ToolStripButton
    A ArjenGroeneveld

    Hello, I have a routine that loops through all the controls on my form. The purpose is to set the Edit Mode or Read Only mode. To find textboxes and buttons inside a TabPage or GroupBox the routine runs recursive. To convert a Windows.Forms.Control in to a Texbox I validate and use .. if (c is TextBox) { ToggleTextBox((c as TextBox), flgEditMode); } So Far So Good. If I do the same for a ToolStripButton I get the message: Cannot convert type 'System.Windows.Forms.Control' to 'System.Windows.Forms.ToolStripButton' Please can you help me with a work around? Kind regards Arjen

    C# help tutorial question

  • Label control that set the focus to the related Textbox on the mousehover event
    A ArjenGroeneveld

    Hello, I like to create a Label control with an property in which I can select the available controls on the Form (except for the Label controls). One the respective control is set in Design time, this control will get the focus in Runtime when the user moves with the mouse over the Label control I'm fairly new with creating Usercontrols. Can anyone help me? Kind regards Arjen

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