54 Topics

Member Avatar for
Member Avatar for hmortensen

Hi All, I'm trying to bind a textbox to a listbox's selected.Content properties. The listbox displays the items as designed in the datatemplate. But I can't get a textbox to display one/any of the selectedItems properties. [B]DataTemplate[/B] [CODE] <DataTemplate x:Key="dt_Afloeser" > <Border BorderBrush="Black" BorderThickness="0.5" CornerRadius="2" Margin="2,2,2,2"> <DockPanel HorizontalAlignment="Center"> <TextBlock Name="navn" …

Member Avatar for hmortensen
0
2K
Member Avatar for JoshuaBurleson

I hate to complain, but I'm not terribly impressed at the documentation for utilizing binding, it covers quite a bit but not common stuff, or maybe I'm just missing it. I was wondering how I could make the <RETURN> key equivalent to a <BUTTON1> click when a button is highlighted …

Member Avatar for TrustyTony
0
355
Member Avatar for telmessos

Hi All, I have a SQL database which has many views and needs indexing. Unfortunately SQL server does not let me add indexes with schema bind error. There are app. 50 views created on the database and I don't want to delete and re-create them one by one. Is there …

Member Avatar for BitBlt
0
180
Member Avatar for duffsil

Hey there, i would like to do a rank of the averages, but when i click in the button ranking, it says that global name 'media1' is not defined. can someone help me please? thanks in [CODE]# -*- coding: cp1252 -*- import wx class duff(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,wx.ID_ANY,'Duffan Formula', size=(400,370)) …

Member Avatar for duffsil
0
163
Member Avatar for CrazyProgrammer

My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the …

Member Avatar for CrazyProgrammer
0
214
Member Avatar for CrazyProgrammer

Hi, Could someone tell me how to bind a view to viewmodel, I cant seem to get it to work, could anybody give me a template. I have usercontrol with a button and a textbox, and bind it to the corresponding functions in a viewmodel, the view model is in …

Member Avatar for abelLazm
0
187
Member Avatar for JakeA

hi! i have a listbox binded to a list. the list contains checkboxes binded to a field/member of the list. what i want to achieve is that i want to delete the data from list when it's corresponding checkbox is checked... here's my xaml code: [CODE]<ListBox Name="ListBox1" ItemsSource="{Binding histList, Mode=OneWay}" …

Member Avatar for Mitja Bonca
0
189
Member Avatar for gunnarflax

Hi! I have a problem with binding parameters dynamically in my mysqli_stmt objects. As I don't know how many parameters which will be put into this function I must bind the parameters dynamically. Though I cannot understand what's wrong with this method: [CODE] public function execute($unprp_stmt, $data){ //Prepare the stmt …

Member Avatar for gunnarflax
0
412
Member Avatar for Farhad.idrees

Hi i want to binding data.. i have two dropdownlist 1-depart 2-Programme.. i want that when i select any depart so i get programme in my programme dropdowlist related to depart.... i know it will be from sqldatasource.. but i m not able to do it... Regards.. Farhad

Member Avatar for nebyas
0
83
Member Avatar for ibdatx

Hi I have two windows (Window1 and Window2) and want to set Window1 as the owner of Window2. Furthermore I want the controls on Window1 to be inherited by Window2. For instance I have a listbox list1 on Window1 and I want list1 to be in context even in Window2. …

Member Avatar for ibdatx
0
161
Member Avatar for ibdatx

Hi, I have a question regarding navigating to a listbox item in C#. I have written code which populates a listbox from an xml file in xaml (thus bound to it). However I want to navigate to the selected item in the listbox using code in c#. I can navigate …

Member Avatar for ibdatx
0
276
Member Avatar for white feather

[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock …

Member Avatar for white feather
0
171
Member Avatar for kelp

Hi I have a simple MS Access database with some rich text fields. I have been trying to bind some RichTextBox controls in my form to these fields. When I used the following c# code: [CODE] Binding bd = new Binding("Text", ds, "Words.meaning", true); tbDesc.DataBindings.Add(bd);[/CODE] ds= my DataSet Words= my …

Member Avatar for nick.crane
0
535
Member Avatar for Thropian

I'm making a little game and I can't get button bindings to work. Here is what I have so far [CODE]def forward(event): print "up" frame.bind("<Up>",forward)[/CODE] but pressing the up arrow does nothing...is there something I missed?

Member Avatar for TrustyTony
0
146
Member Avatar for MaryAnne19

I have a small 'rolodex' program that opens a form for each person in my database at runtime (each person is a row in the db). I have that part working (thanks to some help from the lovely people here!), but I have a new problem. I am no longer …

0
77
Member Avatar for noshdb

I am trying to find a step-by-step procedure for channel bonding for increased through put on windows 2008 server. I am new at this and I need to set up a windows 2008 server with two NICs for increased throughput. I have searched but cannot find anything on the microsoft …

0
108
Member Avatar for ibdatx

Hi, I have a listbox that is bound to a textblock as target and also has an xml file as source. My problem now is the correct syntax for inserting another listbox in between the listbox and the xml file. My code is shown below... <Window x:Class="newTestApp.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" …

0
130
Member Avatar for ibdatx

Hi all, I am new to XAML however I have an understanding of XML. I am trying to bind a button to an XML file such that when the button is clicked, it the xml element is displayed within a listbox. Then I want the listbox selected item to be …

0
110
Member Avatar for ihatehippies

I've been using the Aspects module to trace and patch routines on the fly in my wxPython app. The problem I've run in to occurs when wx binds an event to a function. ie: an event is binded to function <function func at 0x03969A30> after aspects.with_wrap() func now becomes <function …

0
134
Member Avatar for cmutzel02

Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. …

Member Avatar for cmutzel02
0
267
Member Avatar for b1izzard

I had Bind the Two Textboxes with fields Company Name and Interview Date from Database1. I want to prevent inserting the records into Database2 when the same value exists in Both Database. My problems are in enabling and disabling the insert button during record navigation and placing the below piece …

0
87
Member Avatar for muriloazevedo

Hello, I'm bound the property visible in the controls of my form, by default they should to appear true, but is coming false. Someone knows what's happening? Thank You. :)

Member Avatar for nick.crane
0
145
Member Avatar for nicolasmarie

Hi, I urgently need the following information and techniques on how to: 1. disable input in a field text box and automatically increment the same namely a numeric primary key field (viz. StudentID) by 1 at the issuing of a blank/new record. The Database method is DATA BINDING and ACCESS. …

Member Avatar for nicolasmarie
0
159
Member Avatar for toadzky

I am writing a flat-file database app using SQLite. That part works just fine, but the GUI not so much. The issues are arising in the bindings. I have a list of accounts displayed in a datagrid. The datagrid has its ItemsSource set to a List<Accounts> collection. That works fine. …

0
102

The End.