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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

hhrafn

@hhrafn
About
Posts
26
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • RadioButton DataBinding, without code-behind
    H hhrafn

    Thank you, this solution looks perfect for me :-D My main requirement in this project is to follow the MVVM pattern, or "total" seperation of View and Code (control). Thanks again.

    WPF wpf question csharp wcf

  • WPF: WPF Toolkit Datagrid. Capturing Key board events
    H hhrafn

    I'm having a similar problem; I need to implement a double-click on the datagrid, while using MVVM. So I don't want to have any event handling code in the code-behind. Preferably binding to a command property in the VM. I've searched the internet all ower and still cannot find a suitable solution. Is there somehow a way (for me and sameercodes) to handle these keyboard and mouse events with behaviours or gestures AND bind to a command :confused: Thanks. :)

    WPF csharp wpf question

  • RadioButton DataBinding, without code-behind
    H hhrafn

    well, I'd like to use the radio buttons like this: (in theory at least) <RadioButtons ItemsSource="{Binding Colors}" /> Then picking up the selected item through a selectedItem binding (?) Basically my problem is that I need it to be MVVM (no codebehind) and this radio button list will also be dynamic (changeable).

    WPF wpf question csharp wcf

  • RadioButton DataBinding, without code-behind
    H hhrafn

    Hi, I'm trying to do DataBinding in XAML woutout any coudebehind. However I can't find any of the nice Binding features found on most other WPF controls. What is the most current and prefered way to do databinding on RadioButtons ?

    WPF wpf question csharp wcf

  • Binding to UserControl's inner item's property without code-behind
    H hhrafn

    Using WPF, while following the MVVM pattern, I'm constructing a digital version of a paper form. This paper form has many fields that need to be filled out. The fields are basicly boxes with the title of the field inside it, then you write the appopriate data into the box. I was wondering if I should use a UserControl to solve this repedative taks of all these many boxes. All with different titles and data, but having basically the same look. So I constructed a UserControl with one Label (name="Title") and a TextBox (name="Text"). Now, if I have a ViewModel as DataContext for the form window (which contains all of these UserControl-fields, how can I bind the properties of the ViewModel to the content properties of the Lable and TextBox? I'm hoping I won't have to add any codebehind to the UserControl just to make Properties. Is there some nifty thing I can do here? Am I on the right path even, should I perhaps just stick to datatemplates somehow ? .. or just make one huge form with many many manu labels and textboxes ? :confused:

    WPF wpf question csharp wcf regex

  • Interface Type-casting problem
    H hhrafn

    Uhm.. yes .. well.. yeah, I was using two interfaces (one in each project) both with the same name. X| Once I referenced to the other one everything started to work :cool: Thanks for the help, I just love it when the solution is too simple :P

    C# help debugging

  • Interface Type-casting problem
    H hhrafn

    Hi, I'm trying to typecast a class that I load from a dll. This class is using a certain interface and I'd like to type-cast it into the same interface (see code). I should also point out that the main class and the class that I'm trying to load into it are in two seperate projects (and namespaces). But my problem is that when I run this I get the error: "Unable to cast object 'Class1' to type 'IPlugin'." :confused: using System; using System.Collections.Generic; using System.Text; class Class1 : IPlugin { public Class1() { } public String getInfo() { return "weeee"; } } public interface IPlugin { String getInfo(); } namespace DLL_LoadTest { class Program { static void Main(string[] args) { Assembly assembly = Assembly.LoadFrom(@"C:\Test\ClassLibrary1\bin\Debug\ClassLibrary1.dll"); IPlugin plugin = null; plugin = (IPlugin)assembly.CreateInstance("Class1"); } } } please help! thanks, HHG -- modified at 10:21 Sunday 26th March, 2006

    C# help debugging

  • Loading a class from DLL at run-time
    H hhrafn

    Thanks alot, this seems promising :cool:

    C# csharp

  • Loading a class from DLL at run-time
    H hhrafn

    Hi, I'm trying to build a kind of a plugin-factory and I'd like to load these 'plug-ins' at run-time all using the same interface ect.. What I'm missing is a way to load the Class from a dll file into my program at run-time. Using .NET 2.0 would be preffered but I'm kinda easy as long as I get a viable solution :-D thanks, HHG

    C# csharp

  • Redirecting inside IIS
    H hhrafn

    I have a website that will have one major domain (domain.com) and then I have a few extra domains that will need to be redirected to a page under that domain. Example: domain.org -> domain.com/page.asp?id=454 domain.net -> domain.com/page.asp?id=653 ect.. In IIS can I have one WebSite with all these host-headers and somewhere rewrite/redirect the .org and .net domains to the pages as described above? Thanks, H.

    ASP.NET csharp com windows-admin tutorial question

  • Interacting with a console utility
    H hhrafn

    Yes, thanks. :-D

    C# tools question

  • Interacting with a console utility
    H hhrafn

    Let's say I'm interacting with the utility "dir" i'd like to do as my command: "dir " + strMyDir and then read the output from this command and parse it to my likeing :)

    C# tools question

  • Interacting with a console utility
    H hhrafn

    I have a console utility I'd like to interact with and get it's output. I can send in a list of commands into it via < like this: myapp < commmands.txt also I can do: myapp "command1 asdf" "command2 asdf" "command3 asdf 223" and so on.. What feature would I use to send commands into it and what would I use to read it's output ? thanks, H

    C# tools question

  • Canceling validation
    H hhrafn

    Cool! Thanks! works great :D love the little simple solutions :D

    C# question help

  • Canceling validation
    H hhrafn

    I'd like the form to ignore the validation requirements and close the form. For now the e.cancel feature doesn't allow me to close a form via a close button. I can only close by hitting the X in the top right corner. Probalby because there I can access the event that supports this cancel feature and I can set it to false.

    C# question help

  • Canceling validation
    H hhrafn

    I have a form where a user inputs into a few fields and I validate them for correct format ect.. I do a e.Cancel = true; in my Validating event. I can put a e.Cancel = false; into my FormClosing event to get it to close with out prompting for correction in my fields. my problem is that I can't get a "close" button to do the same as the close (top right X) on my form. How do I set the "e.Close" to false or essentially the samt for my form in whole? Thanks, H

    C# question help

  • User Controls for PocketPC
    H hhrafn

    Well, yes.. it does.. a little.. Is it possible to make a user control, visually, like the ones in Windows Forms ? For my PocketPC app..

    C# winforms question

  • User Controls for PocketPC
    H hhrafn

    Hi, I'd like to create user controls like I'm used to in windows forms :) is it possible or should I use something else? I'd like to re-use my basic IU with menu buttons and load misc. lists or status usercontrols into a placeholder.. thanks, H

    C# winforms question

  • Validateing values in Stored Procedures
    H hhrafn

    Hi, I have, for example, a Stored Procedure wich validates users into my web. I'd like to validate the users's input in order to enhance security. What would be the best way to validate the input inside the Stored Procedure? for example I'd like to make sure that numbers are actually numbers and username like "joe" isn't something like "'; DROP table;--" thanks, H

    Database database security tutorial question

  • DataGrid row-select.
    H hhrafn

    Hi, How do I create a datagrid that allows me to select the entire row with one click? I've managed to get the while row selected with the private void dataGrid1_Click(object sender, System.EventArgs e) { dataGrid1.Select( dataGrid1.CurrentRowIndex ); } command. But it only works if I select the grid, in-between the text. If I select the text it gets selected and only in that cell. I'd like to have the whole row selected no matter what I select in that row. any ideas ? :) Thanks.

    C# question css
  • Login

  • Don't have an account? Register

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