21 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sana.f.qureshi_1

Hey good people, I hope you are all well. Ok so here is the scenario, i have 4 tables that i have made in sql server 2008. I am using a drop down menu to diplay their names. Like this... ![ecb53783b16f2f19f927a3cd72bee4d0](/attachments/large/4/ecb53783b16f2f19f927a3cd72bee4d0.png "ecb53783b16f2f19f927a3cd72bee4d0") I am going to use a dataGrid view. …

Member Avatar for BMXDad
0
290
Member Avatar for PerplexedB

I have a textbox and a label bound to the same member via a bindingsource. I would have expected that at some point when the user changes the textbox, the label would be refreshed, yet it is not. What am I missing here?

Member Avatar for PerplexedB
0
172
Member Avatar for ricardo.scheufele

Hi, I have a class called "car" with - I have no ideia how to say this in english - "data members" as the following: Public pneu As classDoor Public mat As classTire Public length As Double And so on. All the related classes have null constructors. I have a …

Member Avatar for PerplexedB
0
343
Member Avatar for ricardo.scheufele

Hi, I have a tabcontrol with 3 tabs. Every tab has a great deal of textboxes which I use to refresh the properties of an object. To save my time, I bind the textboxes.Text to the properties of my object. The main problem happens 'cause I can make the binding …

Member Avatar for ricardo.scheufele
0
698
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Member Avatar for kindofsudden
0
363
Member Avatar for de Source

Hi, i am making an asp application and in code behind file i am trying to bound drop down list from tbl_teacher in which i concatenate the first and last name by this query `string sqlStatement = "SELECT teacher_id, fname + lname AS Name FROM tbl_teacher";' and it is working …

Member Avatar for de Source
0
267
Member Avatar for joseph.lyons.754

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought …

Member Avatar for JamesCherrill
0
424
Member Avatar for diafol

Hi All, Just to say that I've searched DW and Google extensively before posting here. Also looked at the jQuery site, but failed to find exactly what I'm looking for. Anyway here's the thing: I have a button on a form, that when it's pressed inserts some new inputs (textboxes) …

Member Avatar for diafol
1
240
Member Avatar for Khav

Hi I have a vb.net form connected to an access database using vb.net .All my other button except for the add new button If Valid = True Then CustomerBindingSource.AddNew() Me.TableAdapterManager.UpdateAll(Me.DB_ShopDataSet) End If I want this code to add a new row to the customer table.However the current code modify the …

Member Avatar for Khav
0
374
Member Avatar for hmortensen

Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding …

Member Avatar for hmortensen
0
207
Member Avatar for stefh

Hi everyone :) Title says it all... I'm trying to bind events to a wx.GenericDirCtrl. I've visited more than 20 web sites but i haven't found how to do it. I've tried different manners but it doesn't work as i expect it to. In some case my control is seen …

Member Avatar for stefh
0
620
Member Avatar for skran

HELP!! I try to bind a textbox to a datatable but i cant.. I checked if the datatable is filled (it includes the results of a sql query)and it s ok.. i can depict the result in a combo box but not in textbox. I wait for only one result …

Member Avatar for adam_k
0
1K
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
357
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 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
277
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 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 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 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

The End.