Shril Pyrrho's Q&A profile
Windows Forms Create a combobox in code
Hi im trying to create a combo box in code but im not sure what im doing wrong i am then trying to put the combobox into a datagrid cell to allow for a select list. If i use this code on a combox created using the toolbox and the designer it woks fine, but when i try to create it in code it does nothing, any ideas ComboEditor ComboEditor2 = new Controls. ComboEditor (); ComboEditor2.DataSource = customerListDataSet.Customer; ComboEditor2.DisplayMember = customerListDataSet.Customer.CustomerNameColumn.ToString(); ComboEditor2.Value = customerListDataSet.Customer.CustomerIdColumn; dataGrid1.Rows[0].Cells[2].Column.EditorControl = new Controls. ComboEditor (); dataGrid1.Rows[0].Cells[2].Column.EditorControl = C ...Show All
Visual Basic Crystal report & migration from Visual Studio 2003 to Visual Studio 2005
Hello, I need answers to the two below questions! 1. Can an application built in Visual Studio 2003 migrate to Visual Studio 2005 with any difficulty or major modification 2. Is the Crystal report, which comes with Visual Studio 2005 professional, complete in features as it is if purchased separately Any help is appreciated. Thanks, Maryam Applications built in 2003 can be migrated in vs 2005, Not a lengthy process.. when you will open the vs2003 applicaton in vs2005 , a migration wizard will automatically start asking you to migrate the old application innew one or not.. Just follow the wizard steps and your old application will be migrated in vs2005. more help cont ...Show All
Visual Studio 2008 (Pre-release) Accessing code behind objects
Hi, this is the XAML: < Window x:Class = "MyCompany.MyProductSpace.MyWindow " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:my = " clr-namespace:MyCompany.MyProductSpace " > < Window.Resources > < my:MyConverter x:Key = " myConverter " /> </ Window.Resources > This is the code behind: namespace MyCompany.MyProductSpace { [ ValueConversion ( typeof ( String ), typeof ( String ))] public class MyConverter : IValueConverter { ... } } And this is the error: error 4 Assembly '' was not found. The 'clr-namespace' URI refers to an assembly th ...Show All
SQL Server TRyign to extract Top 3 records using Partitioning
Hello, I have a table containing 3 columns Department Name, RiskScenario and Cost. I am trying to create a data extract that contains the top 3 Risk Scenarios (sorted by Cost) per Department. I tried using this sql statement in MSQuery but it doesn't work. Any ideas where I'm going wrong or if there is a simpler way to do this Select * from ( Select DepartmentName, `Risk Scenario`, Cost, row_number() OVER (PARTITION BY DepartmentName order by Cost) rn FROM 'Departmental Risks`) where rn <=3 Please help. Just can't figure this out! Meera Select * from ( Select DepartmentName, `Risk Scenario`, Cost, rank() OVER (PARTITION BY ...Show All
Visual Studio Express Editions Creating reports from VB
I'm completely new to Vb2005 and would like to know what reporting tool is best to use with VB and how to integrate the two to create reports that are printable and can be sent to either a word or pdf document Hi, There are currently 2 report creation tools available in VS2005. These are Crystal Reports and RDLC. Here's a FAQ Sheet to learn more about them: http://www.crystalreportsbook.com/SSRSandCR_Conclusion.asp I myself is using Crystal Reports, and yes they have an exporting to PDF, word and Excel. I preferred Crystal Reports over RDLC simply because I really liked the designing environment of Crystal. Its much friendlier to use. cheers, Paul June A. Domag ...Show All
SQL Server Mix Relative and strict dates
I am trying to write a report where I can have a drop down with values like yesterday,today,lastweek. But I also want the user to be able to select a specific range, say 7/1/2006 to 7/5/2006. Also why can't i update the value of a parameter through to an expression Like set the value to =Today(). It throws an error about the type. Can someone point me in the right direction here I think the issue is that you are passing the string '=Today()' where a DateTime is expected. Expressions are not evaluated here, so you need to specifiy the actual value, instead of an expression. E.g., DateTime.Today. Or you can place the "=Today()" expression directly in the Report for the parameter, where it will be evaluated. ...Show All
Smart Device Development sqlceDataReader.Read Error please help
Hello there, I am looking to find out if I can get some help on an issues with the sqlceDataReader.Read mehtod in Visual Studio .NET 2005 Before I give you the snippet of code, I am going to give you all the background information as needed: Platform: Symbol MC50 using Windows Mobile 2003 Programming Platform: Visual Basic .NET 2005 Server Database Platform: SQL Server 2000 (Has SQL Server 2005 Mobile Edition Server Tools installed) Mobile Database: SQL Server 2005 Mobile Edition using Merge Replication Here is the background of the project. We have a barcode application that scans UPC barcodes of products and returns the basic product infromation. So all it does is reference data within a database. We orginally developed our c ...Show All
.NET Development How to implement Undo and redo Operations in Xml file using C#.NET
Hi all, I am trying to implement Undo and Redo Operations in Xml file using C#.NET for desktop application. Can anyone of you give me an idea how I can perform this Thanks in advance Rama Krishna First you want to listen to change events on the System.Xml.XmlDocument object: XmlDocument doc = ... doc.NodeChanged += new XmlNodeChangedEventHandler (OnDocumentChanged); doc.NodeInserted += new XmlNodeChangedEventHandler (OnDocumentChanged); doc.NodeRemoved += new XmlNodeChangedEventHandler (OnDocumentChanged); Then you'll want a simple command object: public abstract class Command { public abstract string Name { get ; } public abstract void Do(); & ...Show All
Visual Studio Team System Schema Compare Problem #2
I have noticed that when I compare a Database to a Project, and as a result of the compare, objects need to be deleted out of the Project, the objects are never deleted. I can run the compare process over and over again, the same objects show up to be deleted, I will click on Write Updates button to update my project (which should delete the objects), but the objects are never removed. Is this a known issue Or am I doing something wrong Amos. Alle, In your reply you referenced a real world case where we might compare the "deployed DB to the project". This is not the way we are working. We each have our own local development database that we synch back to the project. Therefore, we could ha ...Show All
.NET Development Transaction
Hi everyone, I have a function where i make 3 updates to 3 tables, I want to use a transaction but i don't know how to write a transaction for the three update statements. can anyone help me by a transaction example Thanks I am using similar code and have run into the following problem. Say the Update Table 3 command text is missing the quote marks dbCommand.CommandText = "UPDATE Table3 SET Field3 = myvalue"; So the update does not complete and thus there is no change to Table 3 in the database. However an error is not generated. So the rollback does not occur. Any thoughts as to why an error is not generated ...Show All
Visual Studio Team System Problem with Open Selection in Microsoft Excel tool
A couple of weeks ago, I was able to succesfully use the "Open Selection in Microsoft Excel" tool in Team System to export work items to Excel for mass editing. This was working in Excel 2003. Since then, I installed Excel 2007, and now this tool no longer works. When I try to use it, Excel 2003 opens, and then I get the error message: TF84040: There was a problem creating the document. I have seen a similar error on other machines, and actually had this happen when I first installed Team System. When this first happened, I uninstalled Visual Studio and Office, and then re-installed Office and Visual Studio (in that order). This fixed the problem, but was very time consuming. There has to be an easier way to fix this. Anyon ...Show All
Internet Explorer Development Hotfix completed
Our product is suffering some pretty severe problems because of IE7. We've starting getting calls that dialog windows become hidden. We've heard this is a threading issue. We found out that the problem is actually much worse. Modal dialogs don't seem to function correctly in IE7. You can recreate the problem using VB6 by doing this: 1. Create an ActiveX UserControl project. 2. Add a form to the project (form1) 2. Put a button on the user control (usercontrol1). 3. Add this code to usercontrol1. Private Sub Command1_Click() Dim objForm As Form1 Set objForm = New Form1 Call objForm.Show(vbModal) End Sub 4. Build the project as an OCX somewhere on your hard drive. 5. Find your control's CLSID in regedit. I ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx The wide-character (Unicode) counterparts of cout and cin are wcout and wcin . Use Help | Index and look for wcin for more information. You will need to write strings differently (e.g., L"Hello, ") but you can now do input-output with Wide Characters and the Standard C++ iostreams. The standard type library datatype for wide ...Show All
.NET Development How-To (Object Class => Binary Serialization => To Memory => Encrypt => Save to File)
Hi Every body .... I have a [Serializable] Class like this ======================================================== [Serializable] class Customer { private string _CustomerName; private string _Country; public string CustomerName { get { return this._CustomerName; } set { this._CustomerName = value; } } public string Country { get { return this._Country; } set { this._Country = value; } } } ======================================================== How can i use Binary Serialization to serialize the object class temprary to Memory and Encrypt it and then save the encrypted to file. Like this 1. Object Class => Binary Serialization => To Memory => Encrypt => Save to File 2. Read file => To Memor ...Show All
Visual Studio Express Editions Using controls on Children?
I am still stuck on this topic. I have a parent form(frmMainPage) it has to toolbar and a side bar that has a couple of controls on it. The parent is a containe for some children. I have a listbox or label it does not matter what on the frmHome(child) page. I am watching serial data come in . The event SerialPort1_DataReceived is in the frmMainPage class. So when I get serial data I call another routine that interprets the data and does some work. At this point I would like to output to the listbox on frmHome(Child). But this does not work. When I try to , inside this routine to change label text (on the frmHome(Child)) it do not show up either. I have tried my.form.frmHome.ListBox1.Items.Add("Hello") also have tried making a ...Show All
