siva_Baskar's Q&A profile
Visual C++ list boxes and data sources...
Here is what i am trying to do: listBox1 displays information from a database. when I click on an item in listBox1, listBox2 displays information from another table. However, i try putting this code in: private : System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { if (listBox1->SelectedIndex.Equals( "Elves" )) { listBox2->DataSource = "gamestaBindingSource2" ; } else { listBox2->DataSource = "gamestaBindingSource3" ; } } The program runs, but when you get to this section, the following error appears: "An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional ...Show All
Visual Studio Express Editions Win CE 5.0
Is it possible to develop for Windows CE 5.0 using the Express edition Hi, Glenn, Express Edition products are designed for hobbyists, students, and novice developers. As such, they lack the full breadth of features found in higher-end Visual Studio and SQL Server Editions. They are designed specifically for scenarios common to the hobbyist, student, and novice developer. For a reference of full list of supported features of different versions of visual studio, please refer to: http://msdn2.microsoft.com/en-us/library/zcbsd3cz(VS.80).aspx Especially, the feature list in visual basic mentioned that Windows CE 5.0 applications are all not supported yet in the express edition: http://msdn2.mic ...Show All
Windows Forms Global Coordinates
I need to position a UserControl at a location relative to selected control when that selected control is clicked. The problem is that if the selected control is inside a container, then it's coordinates are 0,0. How do I find what the location is relative to a higher level parent. The UserControl is added to a toplevel parent so that it can be displayed near any one of a number of other controls that may be 2-3 layers deeper in the hierarchy. I just can't figure out how to actually put it anywhere when all of the coordinates are relative. Thanks Hi, Could you please be clear in your problem definition Thank you, Bhanu. ...Show All
SQL Server Synchronize two different tables
Hi, I have a little problem. I need to synchronize data from two tables with different table structures meaning they may or may not have the same column name and/or table name. I have read a lot of midware tools which I can use but is there a way inside sql server where I can do this And this synchronization should be automated. Like when I update one table, it will automatically update the other table with the data that was changed. I know I can manually update the records but is there an automated way that I can do this I have also read about integration technologies supported by sql server like ssis and replication but it seems complicated and I dont have the luxury of time to learn these. But if these can be the answer to my q ...Show All
Visual Studio Team System What does this mean?
HI to all! I've runned a load test and this message appears: Exception occurred: The given key was not present in the dictionary. What does this means And the second question: In the same load test was message: More than 1000 errors of type 'Exception' and sub type 'RequestEnumeratorException' have occurred; additional errors of this type will not be reported. How can i change limit of 1000 for the curent type (or for any type) of errors Thanks in advance! Regarding #1... This exception occurs when you try to access a dictionary with a key that does not exist in the dictionary. The TestContext is a dictionary and it is likely that your script i ...Show All
SQL Server Problem creating a Foreign key Constraint
Hello, I'm having some problems trying to create this foreign key constraint: ALTER TABLE dbo.t2_demaclie ADD CONSTRAINT FK03_T2_DEMACLIE FOREIGN KEY (dclPerfilCompania, dclOrdenPedido) REFERENCES DBO.T2_PEDIDOCLIENTE (cdPerfilCompania, nmOrdenPedido) Server: Msg 547, Level 16, State 1, Line 1 ALTER TABLE statement conflicted with TABLE FOREIGN KEY constraint 'FK03_T2_DEMACLIE'. The conflict occurred in database 'Comfruta_dllo', table 't2_pedidoCliente'. I'm sure there's no other constraint with the same name, and there's no othe one with the same columns... Thanks a lot !! Well, you're going to have a problem creating the foreign key - you may want to work out what the keys in those field refer to. (For example, ...Show All
Visual Studio Visual studio 2005 and windows vista buisness edition
I have windows vista buisness edition, visual studio pro 2005 and when I'm trying to create new web application I get error: front page extensions are not installed..., I activated windows authentication and I'm running vs2005pro as administrator, but the error still ocurrs. I know, that here have already been topic about this, but this solution doesn't work for me ;/ Do you get an error immediatly after clicking on File => New => Web Site If not, what options did you select on the dialog that opens Like the location (File System, HTTP, FTP) ...Show All
.NET Development Javascript
Hi all, i'm using a javascript on an asp website in order to show the users if an update has come successfull.it appears after the validation but instead of appearing in front of the screen it appears like the page is being loaded and after closing it the user returns to the page where the validation takes place. the sub i'm using is..... Private Sub Send_ClientAlert( ByVal strMessage As String ) ' init the string builder for at least 5 items Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder(5) ' create the javascript command to send an alert to the user (it will be inserted ' at the top of the web page, in the head section, I believe (note - you can't just response.write this ' stu ...Show All
Visual Studio Loosing Item Template Information
Hi, I just had the following weird behaviour: I startet with my first sample solution (first steps in GAT) and tried to follow the Item template logic. I played a bit and made obviously one or the other mistake. Eventually (the GAT solution was OK by then) the Item templates (provided by the GAT solution and until then available in the test solution, context menu "Add") were gone. De/registering, rebuilding, and un/loading didn't help. The weird part: the context menu showed no item templates (beyond the VS standard) In guidance package manager/enable packages two of the original six item templates reappeared In guidance package manager/enable packages/explore selected package all templates were shown (come to t ...Show All
Smart Device Development Get window handle from process id
Hi, does anybody know how to get a window handle by knowing its process id thanks for your help That's the process ID you want, GetWindowThreadProcessId() sets it. Just declare a variable and pass it (well, actually reference/pointer to it) to GetWindowThreadProcessId(), after that variable would be set to process ID: uint processId; GetWindowThreadProcessId(hwnd, out processId); // processId now contains process ID for hwnd. ...Show All
Visual C++ Build error converting C++ 2003 to 2005
I have an unmanaged C++ project in VS 2003. I converted it to VS 2005 without any problem. However, when I build it in 2005 I quickly get a message 'Build failed' in the bottom left hand corner. But the error list is empty! Can anyone help Thanks Hi, Can you try opening a VS2005 command prompt and try the following comand in your project directory vcbuild /r your_solution_name.sln If vcbuild.exe doesn't run, try running dependency walker on it and see all necessary dlls can be loaded. Hope this helps. Thanks, Alan ...Show All
SQL Server Can SSIS save the context of errors at the package level?
Lately, I have been experimenting with SSIS and I created a generic custom error logging component that saves all offending data on data flow component failure. However... Instead of re-directing rows at the data flow level and handling/logging the data at that level, is it possible to catch all of this information at the package level and handle/process it there If so how would you do this Thanks! Tony tchen777 wrote: Okay I just tried what you said 1) ErrorDescription gives me the description as to why the component failed, but not the data itself. Also I would like to have the entire row to be logged, not just that specific column. I just need to determine whether the data pipeline is visible a ...Show All
Visual Studio 2008 (Pre-release) Considerations for WPF Browser applications
Hello, I just saw a tutorial in how to make WPF applications for browsers, I didnt see nothing strange but I want to know which considerations should I have when developing, I havent found good information on the internet about this. All the toutorials are directed to smart client applications using WPF. If you have links that I can read, that would be very useful. I also want to know which would be the difference of what I am trying to do with WPFE(Windows Presentation Foundation Everywhree) as far as I knew that was the technology to make browser apps with WPF, Thanks This is the last public information about WPF/E: http://channel9.msdn.com/Showpost.aspx postid=193367 WPF v.1 is smart clients only. No m ...Show All
SQL Server Flat File to Relational Schema
Hello- I am a complete newbie with SSIS. I started working with Flat Files today and have made some progress. I have a task that requires me to pull out data from a | delimeted list with 160+ columns in a row. I am working with Movie and Entertainment data. So each movie has a number of actors associated with it. For example: MOVIEID|Zoolander|...|...|...|...|..................|Owen Wilson|Ben Stiller|Will Ferrel|...|...|...............| I would like to take all the actors out of the middle of this long line of columns and place them in an Actors table with the movieID. However, when I look at Flat File Source, all I see is my X number of columns in the one row for all the actors (actor1-20). Is there a way to make a new flat file that ref ...Show All
Visual Studio Express Editions Username to texbox
I know the code for getting a username: Function GetUserName() As String If TypeOf My.User.CurrentPrincipal Is _ Security.Principal.WindowsPrincipal Then ' The application is using Windows authentication. ' The name format is DOMAIN\USERNAME. Dim parts() As String = Split(My.User.Name, "\") Dim username As String = parts(1) Return username Else ' The application is using custom authentication. Return My.User.Name End If End Function And i have a textbox called 'textbox2'. I want to put the username into textbox2 but can only seem to put it in a message box: msgbox (GetUserName) How do I put it in a textbox Dave299 wrote: TextBox2.Text = GetUserName() ...Show All
