Hi, I've made a small web application with a ListBox which works well, but it is not very pretty with FireFox. The ListBox is populated automatically and its width changes with the contents. And when the list is empty, the width of the ListBox is about the width of the scrollbar... I've tried to fix its size, but I haven't been able to. Anyone knows how I could do it? Thanks!
goldoche
Posts
-
Size of ListBox in FireFox -
Installing a web service and a web page on another machine!Yeah I have web client for my service and everything is tested, I just want to transfer it to another local computer. I've searched on google, but I haven't found anything detailed.
-
Installing a web service and a web page on another machine!Hi! As you've seen in the title I have a very simple problem, but I can't seem to find a good answer on the web. I have programmed a web service and a web application on my machine. Everything works great. However, it seems VS .NET has done all the work installing this on my machine. Now I want to install it on a server and don't really know how to do it. I've tried messing around with IIS, but I'm no specialist. Hence my question: do you know a good step-by-step reference that can guide me through this? Or if it's simple enough you could tell me directly! Thank you very much!
-
Multi-client access: good practiceThis is a very subjective beginner question... Suppose I have two different applications that access the same database, and I want them both to use the most recent data... how should I do it? Should I clear and refill my whole dataset every time I access data? Should I use remoting between the two applications in order to notify each other of what row to reload (this seems complicated!)? By the way I work in disconnected mode with Typed datasets. I'd appreciate if you gave me some pointers. Thank you!
-
Parent not present in GetChanges()Well thanks, it solves my problem, but do you know why it is so? I sincerely feel like I'm missing a piece of the puzzle here. Thank you very much!
-
Parent not present in GetChanges()Hi, I have a problem. Both simple and weird. Say I have ParentTable and ChildTable. Obviously, ChildTable is a child of ParentTable. Both are strongly-typed DataSets. When I create rows for them, I start by creating a ParentTableRow (dataset.ParentTable.AddParentTableRow()), and inserting it into my dataset. Then I create my childTable the same way, and I have to specify the a ParentTableRow, as a reference to its parent. I do it and it looks fine in the debugger (i.e. the ParentTableRow is set). I insert the child row into the dataset too. Then, before committing the changes to the database, I must call GetChanges() on ChildTable, which gives out an array of all rows that have been changed since the loading of the dataset. My new ChildTableRow appears, BUT the ParentTableRow member, (the reference to its parent) is NULL, although it was set earlier! Just before the call to GetChanges() I looked at my ChildTable in the debugger (from dataset.ChildTable) and guess what? The ParentTableRow is still there! It looks like GetChanges() ignores the reference to the ParentTableRow or something... Has anyone any idea of what's going on and how to get though this? Thank you!
-
Web site/service deploymentHi, I just made a simple Web Page that communicates with a simple Web Service. Both work fine on my machine, but I can't seem to find the way to install them on another computer. I even made a Web Setup Project, but it didn't help. I tried some stuff with the Default Web Site of IIS, as well as putting my files in the Inetpub/wwwroot directory, but it doesn't work. Can any of you tell me the steps to install a Web Service and its Web page? Thank you very much!
-
Create a database from a DataSetHi, I'm programming an application using a typed DataSet and a Sql database. I was wondering if there was a way of programmatically creating a database on the server based on the DataSet. What I want to do is during the software installation, the user enters the connection parameters of their Sql server and then the installation program automatically creates the schema/database the software needs on their database server. I thought the simplest way would be to create it from the DataSet. Is there any better way? Thnaks a lot!
-
Tab Page Tab_handfold SizeI think you have to use the Padding property of the TabControl.
-
Binded ComboBox displays wrong item!I use the CurrencyManager because its Position property represents the index of the current record being viewed. FYI this is how I use it and it works fine:
cm = BindingContext[dataset.LoadModule] as CurrencyManager; dataset.LoadModule.DefaultView.Sort = "SerialNumber"; cm.Position = dataset.LoadModule.DefaultView.Find(serialNumber);
But this is not a CurrencyManager issue, since the program gives me the right value (5), it just doesn't update it! -
Binded ComboBox displays wrong item!Thank you for the help! Now the right item is selected, but when I change it, it doesn't change the data source! For example:
private void myCombo_SelectedValueChanged(object sender, System.EventArgs e) { // cm is my CurrencyManager. MessageBox.Show(dataset.LoadModule[cm.Position].MyColumn.ToString()); }
In this code above, the MessageBox always displays '5', which is the initial SelectedValue. I'm really having a hard time with this! -
Binded ComboBox displays wrong item!Hi, I'm trying to bind a lookup table to a comboBox. Well the contents of the ComboBox binds ok, but the binding on the SelectedValue doesn't work! Here's my code:
// Build lookup table: (name => index) (IT WORKS) DataTable table = new DataTable(); table.Columns.Add("Name", typeof(string)); table.Columns.Add("Value", typeof(int)); for(int i = 0; i < namesArray.Length; ++i) { table.Rows.Add(new object[] {namesArray[i], i}); } // The newly created table is binded to the contents of the ComboBox (IT WORKS) combo.DataSource = table; combo.DisplayMember = "Name"; combo.ValueMember = "Value"; // The SelectedValue of the comboBox is binded to a column in the LoadModule Table // And it DOES NOT WORK! combo.DataBindings.Add("SelectedValue", dataset.LoadModule, "MyColumn"); // The following DOES WORK numericUpDown1.DataBindings.Add("Value", dataset.LoadModule, "MyColumn");
What am I missing? This is going to drive me nuts!!! -
ComboBox Data BindingHi, I have a ComboBox to which I give a string array as a DataSource. It works. I also have a DataSet and one of the columns of a table contains the SelectedIndex of this ComboBox, but when I bind it, it does not select the right index. I've decided to bind it to a numericUpDown and it works, so what's going on with the comboBox? Here's my code:
// The numeric updown displays "3", which is good! numericUpDown1.DataBindings.Add("Value", dataset.LoadModule, "RampUpSpeed"); // The selected index of the comboBox is 0, which is not good! rampUpCombo.DataBindings.Add("SelectedIndex", dataset.LoadModule, "RampUpSpeed");
Thanks! -
problem with GetChanges [modified]This seems to be a bug. Here's how to solve it: BindingContext[dataset, datatable].EndCurrentEdit();
-
Using a DataSet to insert data in a table througth a sprocCould this be your problem? http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c43c.aspx#q783q[^]
-
problem with GetChanges [modified]I have a problem with the GetChanges method. Here's what happens: I modify a row in my typed dataset, I do NOT call AcceptChanges nor Update. Afterwards, I call GetChanges() on my dataset and it returns null! I've made a Quick Watch on my dataset and the new value is effectively there, but the state of the modified row is Unchanged. What am I missing? Thanks! -- modified at 15:54 Wednesday 4th July, 2007 Update: the value I modify is binded to a Windows Form control (NumericUpDown). I've noticed that if I modify the value programmatically, the RowState is Modified, which is what I want, obviously. So does anybody know why modifiying a value with a GUI Control does not mark the row as Modified whereas modifying it programmatically does? Thank you!
-
Getting a handle to a web serviceHi everybody, I was developing an Windows Application that uses a USB device. To communicate with this device I needed a Handle to my application. That was fairly simple, I just used this.Handle in the Windows Form! Now I want to build a web service that connects to the same USB device. Therefore, I need a Handle to my web service, but there is no such thing as this.Handle in HttpApplication! There must be a way of getting it, but I can't find it! Can anybody please help me? Thanks!
-
Can anyone help me ?There may be other ways, but here's what I would do: - Create a Serializable class with an array of strings as a member. - When you close your application, create an instance of this class and copy your comboBox items into the string array of your class. - Then, serialize your class in to file. Finally, when you start your application, deserialize your class, and use
comboBox1.Items.Clear(); comboBox1.Items.AddRange(myCustomClassInstance.StringArray);
You will find plenty of information and tutorials about serialization on the web. Cheers -
readonly DataGridWell I have Visual Studio 2003 and I work with Framework 1.1. Is there an easy way of using Framework 2.0 without buying VS 2005? Thank you!
-
readonly DataGridThe DataGrid doesn't have a SelectionMode property.