fill

C#: Using one Data Table in order to fill 2 different comboboxes?

Hi all. I have 2 comboboxes on a form (form1) called combobox1 and combobox2. Each comboboxes should be filled with data stored in 2 different tables in Sql server 2005: table1 and table2 I mean: combobox1 --> table1 combobox2 --> table2 I fill data table with proper data and then bind the comboboxes to it separately. My pr...

.Net: Best technique to fill a number of combo boxes on the form in windows application?

hi Suppose that you have a win form with 5 combo boxes on it. Some one told me that you must have 5 data table in order to fill them one by one. It does not seem very logical and I think this will create ugly code. How do you fill them with data stored in Database? ...

C++: Fill array according to template parameter

Hello, Essentially, the situation is as follows: I have a class template (using one template parameter length of type int) and want to introduce a static array. This array should be of length length and contain the elements 1 to length. The code looks as follows up to now: template<int length> class myClass{ static int array[leng...

Question about VB2010 web control

okay I want to fill an online form using vb2010, but the problem is that it doesn't have ID: <form class="dailiesAnswer-input dailiesForm" action=""> <textarea style="height: 44px;" class="dailiesAnswer-text-area">ANSWER HERE</textarea> <input class="submit-button" value="Submit" t...

Is this a Bug in the Array.fill method in Ruby?

Should this be the case i.e. I am misunderstanding, or is it a bug? a = Array.new(3, Array.new(3)) a[1].fill('g') => [["g", "g", "g"], ["g", "g", "g"], ["g", "g", "g"]] should it not result in => [[nil, nil, nil], ["g", "g", "g"], [nil, nil, nil]] Any advice would be most helpful! Regards, ...

How to create a HTML container which will fill all available width between two floating elements?

Here is a schema of what I want to render, and as simple as it seems I can't find a way to code the container between the two floating elements...: ---------- ---------- | | Some text text text text text text text text | | | | text (in a <p> element). ...

android icon menu in application

i would like to show a menu with icons with text below every icon in android the menu should fill the entire activity like the launcher menu eg: http://farm4.static.flickr.com/3060/2775168927_e94f2ae79e.jpg i want the user to choose from a set of options (static options) with icons i was thinking about a grid view with buttons or ima...

C++ binding question

Hello! Is there any way to make boost::bind work with std::fill? I tried the following, but it didn't work: boost::bind(std::fill, x.begin(), x.end(), 1); ...

Filling std vector

Hello, I can't understand why does vector empty after it's filling. The code is: bool fillArray (vector<int> &array) { string temp; getline(cin, temp); if (temp == "-1") return false else return true; int res = atoi(temp.c_str()); array.push_back(res); } void showArray(const vector<int>...

c++ filling matrix boost

hi i've looked into the vector duplicate of this but couldn't find answer ublas::matrix<int> input; fill(input.begin1(), input.end1(), in_val); fill(input.begin2(), input.end2(), in_val); but it gives me [2,3] {(3,3,3) (3,0,0)} as you can guess i just want to fill all of it with init_val=3 , Thanks. ...

C# SqlDataAdapter.Fill giving error about data conversion when passed datatable parameter

I'm trying to fill a datatable using a SqlDataAdapter in C#. I'm not very familiar with the objects, and am basically working off a template of someone else's code to try to figure out how it works. Here's the basic form. SqlCommand command = new SqlCommand(@"SELECT * FROM tblEmployees WHERE Name = " + firstSSN,connection); ...

R: Filling missing dates in a time series ???

Hello I have a zoo time series with missing days. In order to fill it and have a continuous series I do... I generate a chron date-time sequence from start to end. I merge my series with this one. I use na.locf to substitute NAs with las obsservation. I remove the syntetic chron sequence. Can I do same easier? Maybe with some index...

GraphicsPath - how to fill open figure (without closing it)

I have a big problem with filling an open GraphicsPath figure with Graphics.FillPath(brush, path). According to MSDN http://msdn.microsoft.com/en-us/library/kekf4cez.aspx 'the path is filled as if the open figure were closed by a straight line from its ending point to its starting point.' In this case figure similar to ie. 'e' drawn cre...

fill 2 form one field in common with c#

I need to fill two forms in the same website, my issue are the field because they have the same name, e.g. the password field in both form is pass, so how can i fill both? the code to fill fields I'm using is this: WebBrowser1.Document.GetElementById("pass").SetAttribute("value", stringpassword); thanks ...

moving a path with a repeating Bitmap image in android

Hi, I'm currently writing an android side-scrolling game and am having trouble filling a path with a repeating bitmap image. I'm creating a path from a number of coordinates to make up the "ground" area. I have a character who is fixed in the middle of the canvas and screen and am moving the path to represent the movement of the characte...

On Mouse Over change Sprite Graphics Color: AS3

Hi, I have created a sprite as below: var arrowHeadRight:Sprite = new Sprite(); with(arrowHeadRight.graphics){ beginFill(0xDDDDDD, 1); moveTo(50,0); lineTo(0,50); lineTo(50,100); lineTo(50,0); endFill(); } On Mouse Over, I wish to change the color of the fill on this shape? Can this be done or do I have to re-...

Is it possible to using WebBrowser in a Thread ? (Delphi)

Hello , I'm using WebBrowser control to fill a web page . is it possible to using WB inside a thread ? Thank you ...

vb6: fill polygon with gradient

hi, can anyone tell me if it's possible to fill a polygon with a gradient under vb6? thx ...

EXCEL - dropdown and fill cells

Good night. I'm having some troubles to get what i need done. I have some cells in a sheet that needs to be filled every day, manually. I have also a dropdown with all the months, and another one with the days. Is it possible to save data in specific cells for the selected dropdown values? Something like for each day mantain differe...

WPF Datagrid Performance

I have a very large comma-seperated text-file. I need to display this in a WPF Datagrid, which method would result in the highest performance of loading all the data to the grid? I'm only aware of two methods: Using a Datatable, and adding each line as row (looks like overkill) Using an ObservableCollection, creates object for each lin...