araujox2002's Q&A profile
Visual Basic Failed to import ActiveX control
I am using VB2005 express and VC#2005 express. With my old friend VS2003, whenever i needed to add flash to my WInforms, all i needed to do was to add the control as a com component and drag it on the stage from the toolbar. Now, when i did the same in new express version, althogh it is added in the toolbars and the references list, but still, whenever i try to drag a shockwave flash instance on my win form, i get the error: Failed to import ActiveX control, please ensure it is properly registered. does some one have any idea how to add flash comntrol as we used to do in earlier versions Please reply this ASAP. Thanks and regards. Syed Mazhar Hasan I have alwats the same problem , i ...Show All
Windows Forms Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Some body help me I have a problem in binding the two dropdowns in form view control in VWD2005 express edition, i was trying to do this with out writing single line of code. I have two drop downs in form view control, ddName1 gets the value from datasource1, and ddName2 gets the values from datasource2 depending upon the selection of ddName1 , if i try this directly with out binding to the the datasource field that works , but i want to bind the dropdowns to the datasource fields. If i try this i get the error message as ////////////////////// Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Description: An unhandled exception occurred during the exec ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting the Fullscreen Resolution
Hello all, I have a very simple question that I can't seem to find a direct answer to. My Game's GraphicsComponent's backfuffer is set to 320 x 240. The game window is also 320 x 240. When I swtich to fullscreen by setting the GraphicsComponent's IsFullscreen property to true the fullscreen resolution seems to be 640 x 480. My graphics appear up in the top-left corner. How can I set the fullscreen resolution to 320 x 240 I have also been suggessted to possibly use a camera to achieve this effect. I am having problems identifying how to change the view settings at all! Do I need to use an effect just to change the view around Would this event work for my 2d situation ...Show All
SQL Server Primary Key Violation
Dear Friends, I am a DBA and I am getting a lot of table locks due to unhandled errors in front-end developed by Power Builder, 5 years back. The backend is SQL Server 2000 Enterprise edition. Below I will explain the problem in detail. The Big Problem. { O Users enter sales data into rm_salehdr (docid,..,..,..) table (LOCKED) O The rm_salehdr table need a new docid O The new docid will be generated by a function called as docnogen O The docnogen function o will select the last docid from ps_docno table o add 1 to last value o return docid to rm_salehdr o update the last docid with the new value. o ps_docno table will hold the lock till the insert transa ...Show All
Smart Device Development light pen detection event
Hello, I am newbie. I want to listen and perform certain action. When light pen touches the screen of Pocket PC 2005 which API i use to detect that light pen touch the screen.I want to create the simple application like, messagebox will display (contain co-ordinate of the screen ) when i click on screen. I am using C++ for development purpose. Pocket PC 2005. Any event listening or API for that Thanks, -Salman This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati ...Show All
Visual C# Running two services in same VSTS project
Hello... I have created two c# windows services in the same VSTS project. They each have their own installers, and installs fine in the windows service list. I have attached a debugger to the main(), here is the code: static void Main(string[] args) { ServiceBase[] ServicesToRun; // More than one user Service may run within the same process. To add // another service to this process, change the following line to // create a second service object. For example, // // ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()}; // ServicesToRun = new ServiceBase[] { new NetworkWatcher(), new LocalRunner() }; Debugger.Launch(); ServiceBase.Run( ...Show All
Visual C# Returning Type[] of inherited types
Does anyone know of a quick and painless way of returning an array of all the inherited Types of a given base class For instance, I have the following: Type myType = typeof(Motors.Motor); Type[] t = myType.GetNestedTypes(); Motor contains many different types of Motors. I understand that GetNestedTypes only returns the classes nested inside of Motor. All I need is a basic method that returns an array of the types which inherit from Motor. I can write this method myself with very little coding, but I figured there had to be something out there that already did this. I'm a little confused.... how does having a method to do this for us go against OO design Either way, I'm not too worried about the speed, beca ...Show All
Windows Forms Sorted DataGridView when OleDbDataReader is used in C#
I'm using this code to populate a grid, but once filled if I click on the columns heading it doesn't sort even if I enabled the reordering column feature. Why is that and how can I sort my columns please. thanks OleDbDataReader OleDbDr = null ; dbRecordsHolder = new ArrayList (); using ( OleDbConnection Connection = new OleDbConnection (connectionString)) { OleDbCommand Command = Connection.CreateCommand(); Connection.Open(); Command.CommandText = "SELECT * FROM CLIENTS " ; try { OleDbDr = Command.ExecuteReader(); if (OleDbDr.HasRows) { foreach ( DbDataRecord rec in OleDbDr) { dbRecordsHolder.Add(rec); } } } finally { OleDbDr.Close(); Con ...Show All
Visual Studio Send value from ASPX to a textbox in RDLC file.
Dear Friend, I have e report file and an aspx file. I have a textbox created inside the report file, and I want to send the value of this textbox from the aspx page. How can I do it And how can I format a field in EURO Thanks!! Dear friends, I found the answer! Thanks. Dim params(0) As Microsoft.Reporting.WebForms.ReportParameter params(0) = New Microsoft.Reporting.WebForms.ReportParameter("rptParam_DirNomeCompleto", "TESTE DIR COMPLETO") ReportViewer1.LocalReport.SetParameters(params) ReportViewer1.LocalReport.Refresh() ...Show All
Visual C# Button Madness (one of many posts to come)
I know I should have been more descriptive in the subject, but the question is too long to fit. I'm trying to make a charicter creation application for a RPG. I want to have it so that when a person clicks the + button (button2), it will subtract one for the remaining points which is displayed in label20, add it to the Strength score (int Str) and then display the modified Strength in label11. Next, I have a subtract button (button10) that does the same but adds one to the remaining points and subtracts 1 from the Strength score (int Str) and displayes the remaining points and Strength in thier appropriate label boxes. To complicate matters worse, I have to 1: have to do this for 7 other stats, which none of them can go lower than ...Show All
Visual Studio Express Editions HELP - Lost default browser
Please Help. Running Visual Studio 2005 Express - and it's great. All was running fine. It was using Mozilla as the default browser. I have replaced Mozilla - the Debugger still tries to start Mozilla and gets in trouble (can't find the file - it's gone). I have used the new browser FireFox to re-set the system default browser to FireFox -but- the VWD-2005-Express still tries to start the old Mozilla browser..... How can I tell Visual Studio 2005 Express to start the now current default browser FireFox Thanks in advance, Paul Since you've renamed your browser, etc in your previous post, this may or may not work for you. You may have to (and I would recommend) reversing the steps you took. I can post scree ...Show All
Windows Forms User control with some parts drawn translucent
Hi, everyone! I'd really like to hear (or read ;)) some help on solving my problem. I want to create a custom user control. I'd probably derive it from Control class, I want to draw everything on the control by myself (it's actually not going to be really complicated). The problem is that I want to draw some kind of a shadow that drops onto the background of this control. Obviously, it has to be translucent. And I would maybe make some other parts of the control translucent. So I tried to draw the shadow using brush colored as Color.FromArgb(100, Color.Gray), for example. I do my drawing in overridden OnPaint method. This did NOT work. I started to look for the solution on the web. Everything I found was one method of creating such a beha ...Show All
SQL Server XML Datatype to rowset conversion
I have an XML field in my table, and it contains XML data in this format: <T> <RT> <TE A="b4ddf60c-ddde-4a44-9c4f-845a3c9a6909" R="2a37112f-d042-477b-80ef-922539165846" V="11" /> </RT> <DT> <DE A="b4ddf60c-ddde-4a44-9c4f-845a3c9a6909" R="2a37112f-d042-477b-80ef-922539165846" V="11" PL="Sys" IT="D" /> </DT> </T> I need to return this data using a SQL statement into these results: TE Query A R V b4ddf60c-ddde-4a44-9c4f-845a3c9a6909 2a37112f-d042-477b-80ef-9 ...Show All
Windows Forms Sorting DataGridViewComboBoxColumn depending the text
Hi everybody, I have DataGridView bounded to datasource. I want to be able to sort the combo columns depending on their text and not the value. I know that i have to switch the sort mode of the column to Programmatic but how i should make the rest Thanks, Tamir. Here is a link to an example on how I do it. ...Show All
SQL Server Basic business rules question
How do you represent business rules in SQL Server I need the database to return an error to a .net app if a business rule fails. Thank you! :) If you can use constraints then you should because they're more optimal in performance (I think) - and you can use user-defined functions in the constraints to have fairly complex logic. But if not (because the rules are elaborate) I don't see what's wrong with triggers - they are a standard way of enforcing business rules. What negative things did you hear ...Show All
