.NET Developer's Q&A profile
Visual C# Create a .swf file from a C# application
Hi, I know its possible to embed a .swf file in a C# application but I need to create a .swf file from scratch based on the user's choices in the application. I have code to do this in visual basic, but when I convert it to C# I get a .swf file that seems to hang the application when it is run. I've posted my code below; I'd appreciate it if someone could take a look at it and see where I'm going wrong. Thanks. Maurice Cosgrave You should contact the developers the library, ByteSCOUT for support: Support and help . ...Show All
Visual Studio 2008 (Pre-release) ADO.NET vNext problem
We have started developing with .Net 3.0 and now we use the ADO.NET vNext august CTP. I have installed: LinQ CTP - May 2006 ADO.NET vNext August CTP Whe I try use the "var" keyword in c# I recieve this error: Error 25 The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference ) [... the file name and the line of var keyword..] The code is: using (dbObject = new DBSICOP_DEV("name=DBSICOP_DEVConnectionString")) { var iaRighe = from ia in ImpegnoAccertamento where iaRighe.Id = this._dbId select ia; } I have this using directive (added to the default): using System.Data.Mapping; using System.Data.Objects; using System.Query; using DBSICOP_DEVMo ...Show All
SQL Server Clustering of SQL Server 2000 SE
We are looking at clustering of SQL Server 2000 [standard Edition] using third party software, any inputs in this regard would be of great help Please post your question to the right forum: SQL Server Disaster Recovery and Availability ...Show All
Visual Studio Express Editions How to permenantly delete all data in my .mdb database?
Hi, How to permenantly delete all data in my .mdb database through a button click event Thanks. Can the primary key of my table be reset to 0 when all data are deleted Thanks. ------------------------------------------------------------------------------------------------ Heres the C# code for deleting all data: string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\FYP\FYP.mdb;User Id=admin;Password=;" ; string queryString = "DELETE FROM Pump1" ; using ( OleDbConnection connection = new OleDbConnection (connectionString)) { OleDbCommand command = new OleDbCommand (queryString, connection); connection.Open(); int theRowsAffected = command.ExecuteNonQuery(); ...Show All
Visual Basic How to format a HTML MailMessage ????
Hi, I have an application which sends an email after certain process, How can I format the html part like using css styles for fonts families, sizes, colors, etc , I have tried to concatenate the hole tags without any success because but they need "". Any idea Thanks in advance George Thanks for your replay, this is my code, is a simple code but it works Private Function SendMailTo( ByVal xSmtpServer As String , _ ByVal xFrom A ...Show All
Visual C++ C++/CLI Link C#DLL
I have a VC6 Project,and I update it with VS2005; then I want to Use a C# dll in my project; so i add the command /clr in a parse.CPP File and change some other items; that's looks like very cool until i receive a Exception; The dll reference a COM component and i have been register the COM but my project can't find it now; this is the exception: [System::TypeInitializationException^] 0x0012a4a4 { _typeName="KNSUserAPI.UserMngr" } System::TypeInitializationException^ and the innerException is:(The name of the COM is CjnDesEncrypt) can't load- “Interop.CjnDesEncrypt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”(this is the COM reference by the DLL) and then i make a test in a C# project and a ...Show All
Visual C# How to decrypt encrypted information
Hello, I need the ability to encrypt and decrypt information. I have a database with customer demographic information (First name, Last name, Address etc) that we want to encrypt. We need to be able to later decrypt this information if a CSR or, Tech Support agent pulls the customers account records. How can this be accomplished Thanks, Quilnux This how-to is for .NET 1.1, but it should get you started... http://msdn2.microsoft.com/en-us/library/aa302405.aspx ...Show All
Visual Studio Express Editions My first project with VB express and imediately an ODBC problem
Dear all, I'm triyng to start working with this VB version and I need to connect to an ODBC data source. It seems that only SQL and Access are allowed. In the help file says the following: Add/Modify Connection (ODBC) This dialog box allows you specify settings, such as data source name and passwords, for this connection. This dialog box is available when <unspecified> is selected under Data Source and .NET Framework Data Provider for ODBC is selected under Data provider in the Choose/Change Data Source dialog. To use a different provider, click the Change button and select a different data source of provider in the Change Data Source dialog box. What the hell is the <unspecified> data source... I do ...Show All
.NET Development i dont have idea what is wrong in my project - plz help
hello please look at my 'project'...i dont have any idea what is wrong, Im just starting in programing... here he is ttp://rapidshare.com/files/13127386/baza_pracownikow4.rar private void button1_Click(object sender, EventArgs e) { if (db.State == ConnectionState.Open) { using (SqlCommand sql = db.CreateCommand()) { sql.CommandText = @"INSERT INTO pracownicy(imie, drugie_imie, nazwisko, data_urodzenia, miejsce_urodzenia, pesel, nip, nr_dowodu, urzad_skarbowy, numer_konta, ulica, nr_domu, nr_mieszkania, kod_pocztowy, miejscowosc, ulicak, nr_domuk, nr_mieszkaniak, kod_pocztowyk, miejscowosck, wyksztalcenie, data_zatrudnienia, rodzaj_umowy, umowa_do, stanowisk ...Show All
Visual Studio Visual Studio Hangs - Need to restart IIS
We have installed Visual Studio 2005 Professional on a development server. Occasionally VS hangs. The only quick fix we have found is to restart IIS. Obviously we do not want to have to do this each time it hangs. Any idea what is causing the problem VS hangs when I open an .aspx file. By default it opens in source mode. It always seems to hang when first opening the first file in VS. If it opens and does not hang, VS will run fine. TRU ...Show All
Windows Forms How to fire data validation when enter data to special cell?
datagridview control has a lot events for data enter and data validation , i don't know how to use them exectally. How to fire data validation when enter data to special cell here is an example for datagridview data validation public class Form1 : System.Windows.Forms. Form { private DataGridView dataGridView1 = new DataGridView (); private BindingSource bindingSource1 = new BindingSource (); public Form1() { // Initialize the form. this .dataGridView1.Dock = DockStyle .Fill; this .Controls.Add(dataGridView1); this .Load += new EventHandler (Form1_Load); this .Text = "DataGridView validation demo (disallows empty CompanyName)" ; } ... [ STAThread ] stat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. IT'S ALIVE!!! But now what?
Ok after several hours of coding i have my mesh loaded into the screen and it rotates and its cool right Now I realize how do I move my mesh to postitions in the given matrices I am not sure cause the mesh itself doesn't seem to have any coordinates to alter to get it to move. Ok example of my code: if FAILED(D3DXLoadMeshFromX( "ship.x" , D3DXMESH_SYSTEMMEM, pDevice, NULL, &mymodel, NULL, &dnumofMats, &oglla)) { MessageBox(hWnd, "D3DXLoadMeshFromX" , "Failed to Load" , MB_OK); } So I have loaded my mesh into my program and I have it all rendered. but how do I alter where my mesh is positioned in the given world space Do I completely rotate the entire world around my obje ...Show All
SQL Server Is there a quick way to convert Xml into a Table?
Hello, I have an Xml column containing some Xml downloaded off the web (which comes from a Sql Server 2000 FOR XML query). I want to quickly convert the Xml back into a table with the relevant columns. Is there a quick way to do this Many thanks! Ben S. I did it this way in the end (using SQL Server 2005): DECLARE @xmlDoc XML , @xmlDocHandle INT --Get xml off the web and put it into the @xmlDoc variable here EXEC sp_xml_preparedocument @xmlDocHandle OUTPUT , @xmlDoc ; SELECT * INTO #temp_table FROM OPENXML ( @xmlDocHandle , N '/root/element' , 2 ) WITH myTable ; EXEC sp_xml_removedocument @xmlDocHandle ; This will put the contents of the @x ...Show All
Visual Basic Print contents of picturebox
In my application lines and text are drawn in a picturebox. My problem is that I struggle to print the contents of the picturebox. The picturebox doesnt contain an image, only text and drawn shapes. INFO: I am using Visual Studio2005 to create the application (VB.Net) Operating System: XP Pro Christie You're not saying what kind of problem you have trying to print the PictureBox image. You'd print its contents with e.Graphics.DrawImage(PictureBox1.Image, ...) in the PrintPage event handler... ...Show All
Visual Basic Where are the Explorer Form Template Images Stored?
VB.Net Winform application: when I add a new item, using the Explorer Form Template, some of the default menu items and toolbar items have images. Where exactly are these images stored How can I access these to assign to different menu items or toolbar items Thanks. ...Show All
