rudydanielle's Q&A profile
.NET Development Easiest way to make a copy of a datatable
I am using VS 2005 with SQL Server as the backend. I have a winform with a master and a related grid for a detail. The grid may contain 2 or three thousand records. The form contains Quotes for work done for us. The user wants to be able to copy a Quote and its details easily. Both the master and the detail have AutoIncement fields as their keys. What is the easiest way to copy a dataset, or a table in a dataset Getting the data out of the master and making a copy that is like it is easy enough, but getting a copy of the thousand records in the grid is not as easy. I have created a routine that exports the records in the original grid ...Show All
Visual Studio Express Editions Visual Basic 2005 application Help files
So, my first app is almost done and I need to add help files for the user. There use to be a complier for help files in visual basic but I can't seem to find any info for the feature in visual 2005 Express. Second I need some help for OOP. I never did understand it in C++ years ago and I just need a good simple book/video that will give me a GOOD understanding. Anyone have any recomendations Thanks Dave I think you might be referring the HTML Help Compiler http://www.microsoft.com/downloads/details.aspx familyid=00535334-c8a6-452f-9aa0-d597d16580cc&DisplayLang=en&displaylang=en ...Show All
Smart Device Development Can I add help to a project on smartphone platform?
Hi,guys: I want to add help to my project just as to pocket pc but I can't copy the xxx.htm to \\Windows. So are there some method to copy xxx.htm to there or cann't add help in smartphone project Any suggestion is appreciated! ps. VS 2005 ,windows mobile 5.0 smartphone emulator. Para Hi Para, In general, it's not a good idea to copy anything to \Windows (regardless of desktop or mobile applications). Instead, copy the .htm file to your application directory (under Program Files). When you want to launch it, determine your .exe path at runtime, append the .htm filename to th ...Show All
.NET Development Process.Start() of xcopy only works under the debugger?
I am trying to run a child process to xcopy files into another directory. xcopy is regular old Windows system xcopy. I am creating a new System.Diagnostics.Process, filling out some start info, then kicking it off with Process.Start(). When I run this code under the .NET debugger it works fine. However, if I run my app outside the debugger, the xcopy child process fails to do anything. I've attached a debugger after I started my app outside the .NET IDE and although the child process appears to run, I get nothing from its stdout and the files I intend to xcopy are never copied. This child process ...Show All
SQL Server DTS load to multiple tables
I have SQL Server 2003 Standard and am attempting to use DTS for a data load/transformation and I’m not sure if I am using the right tool for the job. I have a somewhat denormalized Access database that has to be loaded into a normalized SQL Server database. Values from one row in any of the source tables generally need to be separated and inserted into several destination (SQL Server) tables. There are no unique ids in the source data since it is coming from a 3 rd party and the tables are not related to others. I’ve created a DTS Package and have the beginnings of several Transform Data Tasks. Each destination table has an Identity i ...Show All
Visual C++ Regarding the generated warning C4996: 'std::_Traits_helper::copy_s' was declared deprecated
I have a query regarding the warning C4996.I'm attaching a set of code, To which i'm trying to compile in visual studio 2005 Beta 2. But It sucessfully compiled but generating warning.I'm not able to find the solution to resolve the warning. Generated warning is also below. Could you tell whats i'm doing wrong. ***************************************************** C2440typecast.cpp ***************************************************** typedef TCHAR TChar; struct case_insensitive_char_traits : public std::char_traits<TChar> { static bool __CLRCALL_OR_CDECL eq( const _Elem&am ...Show All
Visual C# Windows Media Player
Ok. I have a windows media player control on my form. I need to know how to make it play a wav file that is on my desktop. Can someone help me please. Not sure why it would play automatically, but this is how I disabled that: windowsMediaPlayer.settings.autoStart = false ; ...Show All
Visual Studio Express Editions How to update a property size change in the database back to the dataset.
I am new at this! I have 2 forms. I have linked the forms to a database.I ran the application and found that the "City" field was a Nvar (10) and it should be a nvarch (50). I went back to the database and changed the property. I ran the application again and found the same problem. How do I update the properties change in the database back to the dataset hi, double click your dataset in your solution explorer it will open the design view then select the field that you want and go to properties tab and change the size Hope tht helps ...Show All
Visual Basic XML Help Needed
I am working on a project that requires data being read from an XML document and put into a database. I am having a problem figuring out a specific area of my code. I am able to retrieve the data that is in the base part of the document, however, there is a section with repeated data that I am unable to get the data from. I would appreciate any help in resolving this. I have tried a number of different methods with no success. Here is my code - the data that I am having problems with is marked in yellow in the area below the code. Dim strFileName As String = GetApplicationPath() & "\fml\11109155.fml" Dim xml_text_reader As Ne ...Show All
.NET Development 64-bit .NET Framework won't install
Hi, I'm trying to load Microsoft SQL Server 2005 Express Edition - Community Technology Preview June 2005. I have an AMD 64 bit Athlon processor and I'm running Windows XP Professional SP2. I understand that .NET x64 is required but the install fails with the message "error creating process, reason = Windows\system32\advpack.dll. Can anyone help me out with this one Thanks, Marta unable to install .NET framework in xp 64 bit machine. ...Show All
Visual Studio Changing the Oracle data source in an untyped crystal report at runtime using c#
I am having trouble changing the Oracle database that a crystal report points to at runtime. Here is my code: /*Begin Code*/ ReportDocument report = new ReportDocument(); ConnectionInfo connection = new ConnectionInfo(); TableLogOnInfo tableLogin = new TableLogOnInfo(); report.Load("samplereport.rpt"); connection = report.Database.Tables[0].LogOnInfo.ConnectionInfo; connection.DatabaseName = ""; connection.ServerName = "servername"; connection.UserID = "userid"; connection.Password = "password"; Database db = report.Database; Tables tables = db.Tables; foreach (Tabl ...Show All
Visual Basic Accessing images stored in Access database with VB.NET 2003
Hi, I am developping an employee management application with VB. I used an Access database to store employee information and the pictures. However I have a difficulty at displaying employee images. I have found some code to add images and display them on the form. The code, first reads the image stored in database (in binary form) then writes in a temp file and then uses a picturebox to display the image on the form. Code is working fine but when I try to add a picture for an employee and then try to change (another add operation) the employee's picture right after addition, program crashes because the temp file is already in use. Can y ...Show All
Smart Device Development Screen Is Somehow compressed
For some reason - on a certain percentage of the devices I am deploying my app to - the datagrid and label controls seem to be squeezed up and compressed into the upper left hand corner of my screen - again, only on some of teh Dell Axim WM 5.0 devices - others it displays fine on - is this a known issue with WM 5.0 or CF 2.0 or should I start to investigate the hardware vendor (dell): Actually, I figured it out and should have reposted - it was a VGA Vs non-VGA device issue - found that the datagrid, as well as a few other controls had to be scaled to match the VGA screen ...Show All
Windows Forms Getting the Control that had focus before the currently focused Control?
Hi all, If I have a GotFocus() event on a Control, is there anyway I can find out what the last Control was that had Focus() before the current Control (which now has the Focus()) I hope I have clarified myself clear enough, if not I will expand on it. Thanks Tryst Instead of exposing the LastFocusedControl in your main form and having each control implement a Handler that sets it, which requires all your child controls to reference their parent control and set their parent control's property, you're probably better off implementing one Handler in your main form that sets a private variable lastFocusedControl. Then, just attached that ...Show All
Windows Forms DataGridTableStyle
I am writing an application that I needed to hide 3 columns in a datagrid. I used this code: (I am using VS 2005 compact framework). DataGridTableStyle tableStyle = new DataGridTableStyle (); tableStyle.MappingName = "Component" ; DataGridTextBoxColumn tbc; tbc = new DataGridTextBoxColumn (); tbc.MappingName = "ComponentAcre" ; tbc.HeaderText = "Acre" ; tbc.Width = 0; tableStyle.GridColumnStyles.Add(tbc); tbc = new DataGridTextBoxColumn (); tbc.MappingName = "ComponentDescr" ; tbc.HeaderText = "Description" ; tbc.Width = 400; tableStyle.GridColumnStyles.Add(tbc); dgGrid.TableStyles.Add(tableStyle); It worke ...Show All
