Hello All, I'm running into a problem and I was wondering if anyone could help me out. I'm trying to data bind two combo boxes to one data table. I've got it to work, however when I change the selection of one combo box, the other one changes as well. I've seen a lot of documentation on how to solve this problem in the 2.0 framework, however, I've not seen any help on this topic so far. I would like it so that the changes between the combo boxes are independant of each other (i.e. combobox1 can select item 1, and combobox2 can select item 2) Here is my code... C#=================================================== ...In the my Page object's .xaml.cs file... DataTable table = new DataTable("table1"); DataColumn lName = new DataColumn("FullName", typeof(string)); table.Columns.Add(lName); //Add Column to Table //Create Row DataRow r1 = table.NewRow(); //Fill Data For Row r1["FullName"] = "smith, joe"; table.Rows.Add(r1); DataContext = table; //set the Page object's Data Context to the Data Table Xaml================================================== ===================================================== Thank you in advance for your time. Also, I didn't know if this was the right forum to post this, sorry if I was wrong! jm6k The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
Jm6k
Posts
-
Xaml: Data Binding Two Controls To One Source -
PairWise Algorithm For AutomationHello All, I'm at work trying to write a Test Case script to run in VB6. The test case needs to test many many different combinations of parameters. For example, let's say I have 12 parameters, and I need to test the available types of data types that the parameters can take. Let's say that each parameter has 4 data types. I need to test every possible combination of every data type and parameter. If I were to do ALL of them, I would end up running over 20,000 test cases!!! However, with Pairwise testing, which only picks out the best possible combinations needed, the number of test cases dramatically reduces to about 25 or so. This software is available out on the net to get this result (www.satisfice.com), however, it must be run in DOS mode or through the command line. This makes my automation a problem, where a manual step must be taken to retrieve these combinations. The idea looks like this... Param1 Param2 Param3 Param4 ... 1 1 1 1 2 2 2 2 3 3 3 3 My question is... Is there anyone out there that knows of, or knows where to find, an algorithm that can calculate the PairWise pairings? It could be in VB6 or VB.NET, I'll know how to convert the two. Any insight or ideas would greatly help me. Thank you for your time. Matthew Hlavacek Software Test Engineer - MCP -- modified at 15:46 Friday 24th February, 2006
-
Install without the dotnetfx.exe?So...Would I have to include just the .exe file? Or would you have to actually include the whole cd as well? The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Install without the dotnetfx.exe?I was trying to install a program onto another computer, but the setup was aborted because the target computer did not have the .NET framework. During deployment, there was a warning that said "WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup." I've located that dotnetfx.exe on the component CD, but DOES ANY COMPUTER THAT I WISH TO INSTALL MY APPLICATION REQUIRE THE INSTALLATION OF THE .NET FRAMEWORK? If so, what is the proper procedure on including that file into my setup? also, is there anyway around installing the .Net Framework. Thank you for your time. The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Setup Interrupted; Requires the .NET FrameworkI was trying to install a program onto another computer, but the setup was aborted because the target computer did not have the .NET framework. During deployment, there was a warning that said "WARNING: This setup does not contain the .NET Framework which must be installed on the target machine by running dotnetfx.exe before this setup will install. You can find dotnetfx.exe on the Visual Studio .NET 'Windows Components Update' media. Dotnetfx.exe can be redistributed with your setup." I've located that dotnetfx.exe on the component CD, but DOES ANY COMPUTER THAT I WISH TO INSTALL MY APPLICATION REQUIRE THE INSTALLATION OF THE .NET FRAMEWORK? If so, what is the proper procedure on including that file into my setup? also, is there anyway around installing the .Net Framework. Thank you for your time. The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Finding .BMP's and .JPEG's after deploymentThanks A lot! The application.StartupPath namespace worked like a charm! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Finding .BMP's and .JPEG's after deploymentI think the second option is the one I was looking for. Let's say under the Form_Load event, I want the form to open up with a picture. On my computer, the picture is located at C:\my pics\Pic.bmp, but if I were to install this program at on another person's computer, it would install at the default location C:\Program Files\WindowsApplication1\Pic.bmp, and when he would try to run the program, it would not find the picture because my code is looking for C:\my pics\Pic.bmp, not the other path. So instead of using BitMap.Fromfile("Path") just use Application.StartupPath & "\Pic.bmp" ? Also, how could I embed a picture or a WAV into the executable? thanks The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Finding .BMP's and .JPEG's after deploymentI think the second option is the one I was looking for. Let's say under the Form_Load event, I want the form to open up with a picture. On my computer, the picture is located at C:\my pics\Pic.bmp, but if I were to install this program at on another person's computer, it would install at the default location C:\Program Files\WindowsApplication1\Pic.bmp, and when he would try to run the program, it would not find the picture because my code is looking for C:\my pics\Pic.bmp, not the other path. So instead of using BitMap.Fromfile("Path") just use Application.StartupPath & "\Pic.bmp" ? Also, how could I embed a picture or a WAV into the executable? thanks The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Finding .BMP's and .JPEG's after deploymentIf I have an application that uses the FromFile("Pathname") method, how can that code recognize where to find that file on another computer. For example, if I want to display a picture that I'm developing on my computer and I use the FromFile("C:\my Bitmaps\Pic.bmp") that's all fine and dandy. But if I were to install that application on another computer, and when deployed, generically dumps every dependent file into "C:\Program Files\WindowsApplication1", the path I originally gave to find the Bitmap "C:\my Bitmaps\Pic.bmp" will no longer be valid. How can I make it so that when the application is installed on another computer, all the paths will be correct? Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Stop, Play, and Loop for MMControlI was wondering how to do basic commands for the MMControl 6.0. Any info would be helpful! Thanks ;) The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Minutes to Hours Conversions in VB.NETHey! Thanks a lot! This is just what I was looking for! Would I have to use the Format Function in able to just return a single value? Such as "2" being the number of hours? Or would I have to use some tricky string functions? :-DCongradulations on the two girls!!!:-D The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Minutes to Hours Conversions in VB.NETI'm trying to write a program that will convert minutes to hours. For example, say a user inputs that they had 1,256 minutes logged on somewhere and they wanted to know how much that would be in hours (20.93 hours, but I need it to be displayed as 21 Hours and 55 Minutes.) Is there any built in method or function that .NET can use to calculate values on hourly or minutely fashion? I've tried the dynamic help, but the time functions in there display dates and such. I fear I may have to do it the old fashioned way with many mathimatical hijinx! :(( The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Using a loop to create multiple controls at runtime?I was just wondering if it could be done, I realize that it would take some work to do the location of the controls. You said globally? Thanks! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Using a loop to create multiple controls at runtime?Is there a way that I could create multiple contols on a form using a loop? for loopcounter = 1 to 10 dim strControlName as string = "Button" dim objButton as new button() objbutton.name = strControlName & loopcounter form1.controls.add(objbutton) next Am I close? Please help! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Picture Box won't show on second formThanks A Lot The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Picture Box won't show on second formI want to add a PictureBox to another form. But when I go from form1 to form2, the picture in form2 won't show. Why is this? I use this code: dim frmForm2 as new form frmForm2.showdialog I've also tried just frmForm2.show What am I doing wrong? Should I create a new picturebox in code? I need sleep....zzzzzzzzzz:zzz: Thank you The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Sounds and .WAV using MMControl 6.0Thanks Again...You are a life saver! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Sounds and .WAV using MMControl 6.0In Visual Basic 6 in Highschool we used MMControl 6.0 in order to play .WAV files in our applications? That Was a long time ago. Can anyone please tell me where I can find some code in order to play sounds in my Application Thank You The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Moving Multiple LabelsHell Yeah! Thanks a lot for your help! I owe you one The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
-
Moving Multiple LabelsThank You! That was the kind of for next loop I was looking for. The only thing is, I have other labels on the form that do not need to be moved down (only label1 through label21). How can I only loop through labell through label21? The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew