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
B

bonkers123

@bonkers123
About
Posts
41
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Streaming SQL table data to secondary location
    B bonkers123

    This help ! Thanks !!!!

    Database database help question

  • Streaming SQL table data to secondary location
    B bonkers123

    So how do I link a table of one db, to a the same table on a different db ... ?

    Database database help question

  • Streaming SQL table data to secondary location
    B bonkers123

    It has to be up to date at ALL times... It's a sql database...

    Database database help question

  • Streaming SQL table data to secondary location
    B bonkers123

    Hi there, I want a way to stream data from one table in one database to the same table on a different machine. Is there a way? Any help would be much appreciated. Kind regards, Hugo

    Database database help question

  • Play sound on Event
    B bonkers123

    I've seen this before ... I think I might just user the old school method and go with something like:

    StringBuilder SetSoundScript = new StringBuilder();

    SetScrollPositionScript.AppendLine("<script language='javascript' event='onload' for='window'>");
    

    // Do some sound stuff here on certain events ....
    SetScrollPositionScript.AppendLine("</script>");

    ClientScript.RegisterClientScriptBlock(typeof(String), "setSound", SetSoundScript.ToString());
    

    I HATE THIS WAY ! Why can't LiveControls just be FREE !

    ASP.NET csharp help

  • Play sound on Event
    B bonkers123

    Hi all, Does anybody know a way of playing a sound when an event occurs. Please don't give me the embed and GDSOUND (or whatever) stuff... I need something that can play a sound when an updatepanel refreshes, or a timertick event occurs, or any event occurs... I found this LiveSound stuff, but that's WAY too expensive ... ANY help would be much appreciated, cause I can't find anything ... and i've been looking for a few days now ... I'll do ANYTHING for a way to do it .... C# please... Kind regards, Hugo

    ASP.NET csharp help

  • Play sound in client system
    B bonkers123

    I hate you !!! (Previous dude) There is a LiveSound tool that you can use ... but it's EXPENSIVE !!!! Otherwise you'll have to use AJAX (Let my cry with you !) :,-(

    ASP.NET tutorial

  • WCF: EndpointIdentity problem [modified]
    B bonkers123

    ta

    WCF and WF wcf csharp wpf design security

  • WPF Toolkit DatePicker/Calender issue
    B bonkers123

    You don't even want to know what I had to do to fix this !!!! It's INSANE !

    WPF wpf help csharp css wcf

  • WPF Toolkit DatePicker/Calender issue
    B bonkers123

    I remember having this problem.... I had to do some magic on the actual date time by hiding and showing the actual boxes....

    WPF wpf help csharp css wcf

  • ListView SelectedValue Binding issue
    B bonkers123

    Got snoop ... didn't think of using it. Why the DataContext ? If the DataContext is not the correct one, how does one go about setting the correct one ...?

    WPF help question csharp css wpf

  • ListView SelectedValue Binding issue
    B bonkers123

    Hi all, I have a simple listview that has a currently selected item binding as follow:

    <ListView HorizontalAlignment="Left" Width="300" Name="ServiceListView" SelectionChanged="ServiceListView_SelectionChanged" SelectedValue="{Binding CurrentlySelectedService}" Grid.Row="0" Grid.RowSpan="2" Grid.Column="0">
    <ListView.View>
    <GridView>
    <GridViewColumn Header="Machine">
    <GridViewColumn.CellTemplate>
    <DataTemplate>
    <Label x:Name="ServiceNames" Content="{Binding ServiceController.MachineName}" />
    </DataTemplate>
    </GridViewColumn.CellTemplate>
    </GridViewColumn>
    <GridViewColumn Header="Service Names">
    <GridViewColumn.CellTemplate>
    <DataTemplate>
    <Label x:Name="ServiceNames" Content="{Binding ServiceController.ServiceName}" />
    </DataTemplate>
    </GridViewColumn.CellTemplate>
    </GridViewColumn>
    <GridViewColumn Header="Service status">
    <GridViewColumn.CellTemplate>
    <DataTemplate>
    <Label Width="80" x:Name="ServiceStatus" Content="{Binding ServiceController.CurrentStatus}" Background="{Binding ServiceController.ServiceStatusColour}" />
    </DataTemplate>
    </GridViewColumn.CellTemplate>
    </GridViewColumn>
    </GridView>
    </ListView.View>
    </ListView>

    And obviously in the constructor I do the following to enable bindings:

    DataContext = this;

    The problem: The binding to SelectedValue="{Binding CurrentlySelectedService}" works 100% (well, sort of). In my DEV environment it works 100% and the currently selected item works 100%. But for some or other reason when I deploy this to a Windows server 2003 box (with .Net 3.5 installed), the binding doesn't work anymore... How can I debug this issue? Has anyone experienced this problem before? This is not my first time experiencing this problem. I've seen this a few times now, but it seems to be very PC specific. It will work 100% on one pc, and then completely FAILS on another. Any help would be much appreciated.

    WPF help question csharp css wpf

  • WPF Toolkit DatePicker/Calender issue
    B bonkers123

    lol, I over complicated this a bit. The final solution I made was as follow:

    <tool:DatePicker Grid.Column="1" Grid.Row="8" SelectedDate="{Binding BirthDate}" ViewModels:PatronViewModel.DatePickerGotFocus="{Binding}" Height="34" FontSize="18">
    tool:DatePicker.LayoutTransform
    <ScaleTransform ScaleY="1.5" ScaleX="1.5"></ScaleTransform>
    </tool:DatePicker.LayoutTransform>
    tool:DatePicker.CalendarStyle
    <Style TargetType="tool:Calendar">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="tool:Calendar">
    <StackPanel HorizontalAlignment="Center" x:Name="Root">
    <tool:Calendar x:Name="Calendar" ViewModels:PatronViewModel.OnCalenderLoaded="{Binding}" SelectedDate="{Binding BirthDate}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    tool:Calendar.LayoutTransform
    <ScaleTransform ScaleX="2" ScaleY="2"></ScaleTransform>
    </tool:Calendar.LayoutTransform>
    </tool:Calendar>
    </StackPanel>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </tool:DatePicker.CalendarStyle>
    </tool:DatePicker>

    So by simply scaling the DatePicker, I got a cool touch screen DatePicker....

    WPF wpf help csharp css wcf

  • WPF Toolkit DatePicker/Calender issue
    B bonkers123

    ok, after A LOT of struggling, I managed to make a work around... but, it's not pretty !!! An easier solution would be much appreciated. What I did, was the following:

    <Controls:DatePicker Grid.Column="1" Grid.Row="6" SelectedDate="{Binding BirthDate}" ViewModels:EmployeeViewModel.DatePickerGotFocus="{Binding}">
    Controls:DatePicker.CalendarStyle
    <Style TargetType="Controls:Calendar">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Controls:Calendar">
    <StackPanel HorizontalAlignment="Center" x:Name="Root">
    <Controls:Calendar x:Name="Calendar" ViewModels:EmployeeViewModel.OnCalenderLoaded="{Binding}" SelectedDate="{Binding BirthDate}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    Controls:Calendar.CalendarDayButtonStyle
    <Style>
    <Setter Property="Button.Height" Value="50"></Setter>
    <Setter Property="Button.Width" Value="50"></Setter>
    <Setter Property="Button.FontSize" Value="20"></Setter>
    </Style>
    </Controls:Calendar.CalendarDayButtonStyle>
    Controls:Calendar.CalendarButtonStyle
    <Style>
    <Setter Property="Button.Height" Value="50"></Setter>
    <Setter Property="Button.Width" Value="50"></Setter>
    <Setter Property="Button.FontSize" Value="20"></Setter>
    </Style>
    </Controls:Calendar.CalendarButtonStyle>
    </Controls:Calendar>
    </StackPanel>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </Controls:DatePicker.CalendarStyle>
    </Controls:DatePicker>

    Then I made attached properties for the DatePicker and Calendar as follow:

    private Calendar _calender;
    private DatePicker _datePicker;

    WPF wpf help csharp css wcf

  • WPF Toolkit DatePicker/Calender issue
    B bonkers123

    Hi, I have a DatePicker, where I set the CalendarStyle (I'm using mvvm). The issue is, when I select a day on the calender, nothing happens (Looks like the Click event just never fires, or something.) The Control looks as follow:

    <tool:DatePicker Grid.Column="1" Grid.Row="8" SelectedDate="{Binding BirthDate}" CalendarStyle="{DynamicResource CalenderStyleNew}"></tool:DatePicker>

    Where the style looks as follow:

    <Style TargetType="Controls:Calendar" x:Key="CalenderStyleNew">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Controls:Calendar">
    <StackPanel HorizontalAlignment="Center" x:Name="Root">
    <Controls:Calendar x:Name="Calendar" SelectedDate="{TemplateBinding SelectedDate}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
    Controls:Calendar.CalendarDayButtonStyle
    <Style>
    <Setter Property="Button.Height" Value="50"></Setter>
    <Setter Property="Button.Width" Value="50"></Setter>
    <Setter Property="Button.FontSize" Value="20"></Setter>
    </Style>
    </Controls:Calendar.CalendarDayButtonStyle>
    Controls:Calendar.CalendarButtonStyle
    <Style>
    <Setter Property="Button.Height" Value="50"></Setter>
    <Setter Property="Button.Width" Value="50"></Setter>
    <Setter Property="Button.FontSize" Value="20"></Setter>
    </Style>
    </Controls:Calendar.CalendarButtonStyle>
    </Controls:Calendar>
    </StackPanel>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>

    I need the buttons bigger, because it's a touch screen app... Test this in your app, and you'll see, nothing happens when you select a day... Any help would be much appreciated. Kind regards, Hugo

    WPF wpf help csharp css wcf

  • USB Card Reader
    B bonkers123

    OK, so what I basically did was to abuse the fact that the card reader functions like a keyboard. I basically obtain all the devices on the computer and display them the the user. The user can then select which device is the card reader. I intercept all the messages coming from the card reader then, and set focus to the correct text box (etc) as required. A nice little thingy that I saw was, that most magnetic stripe cards end with the "return" character. So when it hits the last character, I can simply test for a return (enter), and it will fire off events that obtain my required data from the database... Thanks for all the help ! MUCH appreciated ! :) PS: For help, email me or send me a msg, I'll gladly help.

    C# question csharp help

  • USB Card Reader
    B bonkers123

    Yes you can ... this works brilliantly !

    C# question csharp help

  • USB Card Reader
    B bonkers123

    Thank you very much .... I suppose I will abuse the fact that it works like a keyboard... with the same events, etc. This fact works well for me ! Thanks for your help !

    C# question csharp help

  • USB Card Reader
    B bonkers123

    Hi, How does one go about, catching the events of a USB card reader... Currently, when I open notepad and swipe a card, the information on the card is printed automatically in plain text.(Windows installed standard drivers). How do I go about obtaining the data event, where the data is written? How can I obtain the data written via a simple C# application. Does anyone understand my question. If vague, plz ask. Any help or starting point (documentation) would be much appreciated. Kinds regards, Higs

    C# question csharp help

  • WCF: EndpointIdentity problem [modified]
    B bonkers123

    Hi, I created a service with the config file of the client set as follow:

    <system.serviceModel>
    <bindings>
    <netTcpBinding>
    <binding name="ConfigurationManagerTcp" closeTimeout="00:01:00"
    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
    transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
    hostNameComparisonMode="StrongWildcard" listenBacklog="10"
    maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
    maxReceivedMessageSize="65536">
    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
    maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    <reliableSession ordered="true" inactivityTimeout="00:10:00"
    enabled="true" />
    <security mode="TransportWithMessageCredential">
    <transport clientCredentialType="Certificate" protectionLevel="EncryptAndSign" />
    <message clientCredentialType="UserName" />
    </security>
    </binding>
    </netTcpBinding>
    </bindings>
    <client>
    <endpoint address="net.tcp://localhost:8731/Design_Time_Addresses/WebServiceLibray/TestService/"
    binding="netTcpBinding" bindingConfiguration="ConfigurationManagerTcp"
    contract="WCFTestServiceTcp.ITestService" name="ConfigurationManagerTcp">
    <identity>
    <dns value="CN=bonkers.gendac.co.za" />
    </identity>
    </endpoint>
    </client>
    </system.serviceModel>

    Now, I need to be able to set the EndpointAdress in code, which is simple

    myService.Endpoint.Address = new EndpointAddress(textBox3.Text);

    But, this make the EndpointIdentity NULL... So one can set the EnpointIdentity as follow:

    myService.Endpoint.Address = new EndpointAddress(new Uri(textBox3.Text), epIdentity,
    System.ServiceModel.Channels.AddressHeader.
    CreateAddressHeader("ConfigurationManagerTcp",
    textBox3.Text, 1));

    The ques

    WCF and WF wcf csharp wpf design security
  • Login

  • Don't have an account? Register

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