sawer's Q&A profile
Smart Device Development Crash when hosting Windows Media Player ver 10.3 ActiveX control (T-Mobile DASH)
I am using Alex Feinman's Compact Framework ActiveX host (as described in this MSDN article ). It works great when hosting Media Player versions 10.1 and 10.2, that are available on most WM5 Pocket PCs and Smartphones. For some reason, when trying to instantiate the WMP control on a T-Mobile DASH smartphone, the device UI hangs (every single running application including the home screen). The only difference that I found is that DASH uses a newer version of Media Player -10.3 (mine is build 15097). I was able to trace the problem to a call to InPlaceActivate() -> DoVerb( -5 ....) during the control creation process ( called from TransitionUpTo(..) in AxHost.cs) . Oddly enough, commenting the call to InPlaceActivate(), allows the ...Show All
.NET Development Invoke exe from Windows Service
I want to invoke an exe from Windows Service. I had tried using system.diagnostics.process.start but it is not woking. Is that any idea..to do this......... Please help me...... Thanks in Advance... Regards, C.Babu. what my problem is, IN my webpage i have one button and if i click that button then in my client machine i have to invoke an exe eg(Media player). Main thing is we should not change any security settings in my browser or any where in cleint system...... We have a service running in my client machine to monitor the files ie.,Media files for uploading and downloading...... Please help me in this regard. ...Show All
Visual Studio Express Editions Building a Dropdown list with SQL statement
How do I build my own dropdown list by hand Dim connectionString = "Data Source=localhost;Initial Catalog=TESIS;User ID=sa;Password=mypass" Dim queryString As String = "INSERT INTO [FR-DEVICE-TABLE] (DE_DATE_COUNTY_FIRST_USED, DE_associated_vender)VALUES(@p1,@p2)" ''DROP DOWN LIST CONFIG command.Connection.Open() command.ExecuteNonQuery() command.Connection.Close() good one, I can't remember but I think to show the Name only, set the DisplayMember property to the column/field name that shows the name and for the Value Member, set it to the ID field name. Then when passing the value from here to wherever, just get the SelectedValue property (since this will be the ID selected) ...Show All
SQL Server select
Hi, I have a table which has values like caseID Substance 2000 Ethanol 2000 Colgate 2001 Vodka 2001 gas 2002 Paxil now i want write a Slect query which display result like this: CaseID Substance 2000 Ethanol,Colgate 2001 Vodka,Gas 2002 Paxil How to achieve this Thank you. I created the User defined function Like this: rptGetTradeName] ( @CaseID bigint ) returns nvarchar ( 4000 ) as begin declare @TradeNa NvarChar ( 4000 ) select @TradeNa = COALESCE ( @TradeNa + '' , '' )+ TradeName + ',' from cacase c lEFT join exExposureSubstance es on es . caCaseID = c . caCaseID left join adPoisIndexCode ap ...Show All
SQL Server Hr=80004005 ERR:OpenDB failed getting pub version 28627
I am getting the error " Hr=80004005 ERR:OpenDB failed getting pub version 28627 " in the SQLCESA30.LOG log file in the "C:\Program Files\Microsoft SQL Server 2005 Mobile Edition\Server\SqlMobileReplication" directory - the directory set up as the Virtual Directory in Internet Explorer. This occurs when I try to set up a .sdf file to be replicated to a SQL Server 2005 Mobile database (I'm following the instructions from the Microsoft Tutorial - http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/med302_msdn_sql_mobile.asp ). In the UI, when I attempt to set up a new Subscription (setting up my publication goes without any problems), I get an error. It occurs at the last step of the "New Subscription" step on ...Show All
Windows Forms Bindingnavigator replacing
Hi all I have application with 20+forms generated using visual studio 2005 with bindingnavigator in each form. I want to replace bindingnavigator with a new bindingnavigator user control that i developed at runtime. Is there is a way to replace the bindingnavigator with mine at runtime. the only way i know is drop it and placing mine at design time. thanks Hi Ken Tucker pls , Can you explain how to do that with sample of code- and what event do i write it (constructor , load event or elsewhere). I want to minimize changes. thanks ...Show All
Windows Forms Find the type of a Control
I have a GroupBox that I have dynamically added controls to. (Label, textbox, etc.). I need to itterate through all the controls, so I was going to do a simple for loop... However, how do I tell the "type" of control that I have foreach(control C in GroupBox1.Controls) { //HOw do I tell /check to see if C is a Label, TextBox, DataGridView etc. } Any help would rock, thanks. if ( C is TextBox ) { Console . WriteLine ( "The control is a textbox." ); } ...Show All
SQL Server Limiting the Records in SELECT Statement
Hi.. As everyone knows that there's a keyword in MySQL that is used to limit the records in SELECT statement as SELECT * FROM Table LIMIT 40,10 means that select from record 40 to onward 10 records. In SQL Server it is a long way with nested select ... can someone provide an alternate or we have to use the Nested SELECT Thanks Nested select (technically called a derived table) is the best way to go in SQL. Here are a few articles that cover the subject. http://www.sqlmag.com/Article/ArticleID/43922/sql_server_43922.html http://sqljunkies.com/WebLog/amachanic/archive/2004/11/03/4945.aspx http://davidhayden.com/blog/dave/archive/2005/12/30/2652.aspx ...Show All
Audio and Video Development Side Scrolling Chapter Menu
I'm trying to create a side scrolling chapter menu and was wondering if anyone has solved this riddle script side. Basically I want to scroll through chapter images using left and right arrow buttons, so the menu would start like this: < #1 #2 #3 > Then by clicking on the right arrow button it would then look like this: < #4 #5 #6 > And so on. The version I have built simply replaces the images (#1 replaced with #4, #2 replaced with #5 and so on). But I would love to make them scroll so the new images come in as if they are all on the track moving left and right. I did try to solve the problem be creating on long block of all the chapter images, masked behind a div that was only big enough to show th ...Show All
Visual Studio Express Editions Project Version Details
Each time I do a publish build of my application it is given a "automatic increment revision with each build". How can I automatically set the "version information" in the standard about box to match this publish version build imformation. In the about box the version number is obtained with the following code Me .LabelVersion.Text = String .Format( "Version {0}" , My .Application.Info.Version.ToString) if you want to show the publish version in your label, use the following code: If My .Application.IsNetworkDeployed Then Me .LabelVersion.Text = String .Format( "Version {0}" , My .Application.Deployment.CurrentVersion.ToString()) End ...Show All
.NET Development Delayed Datareader column error
In a live application which i created, i noticed that after a day or two, i get a datareader error, specifically the error which returns a column name as it's message. i.e if i had written reader["col_name"] i get col_name as the error message. The problem is that i read 5 column names in a single read, and the messages vary, it not always the same column name. However, whenever i restart the server, the problem goes away for another day or two. Recently i increased my max pool size because i was having pooling issues, this had an effect on the datareader error in that it now occurs every 2-3 hours instead of the 1-2 days. pls i need help on this one Thanks Nothing really stands out as ...Show All
SQL Server Will SQL server 2005 failover clustering still work when the database level is set to 80?
We want to use sql 2005 failover clustering feature, so that upgrade sql 2000 is necessary. But some of the stored procedures built in 2000 are not working directly in 2005, set the compatibility level to 80 could make them work. In this case, can somebody here tell me if down grade the database level will affect failover clustering running properly e.g. will data still be synchronized properly Thanks in advance. Failover clustering has been in the product for a long time. It's not new to SQL 2005. Also, failover clustering uses shared storage - one copy for all nodes in the cluster - so there's no issue of keeping data in sync. If, on the other hand, you meant Database Mirroring, that is a new feature. ...Show All
Windows Forms attaching image to Picture Box
hi i have PictureBox inside TableLayoutPanel and i would to attach to it a picture when i click on button.i tryed this this ->tableLayoutPanel1->Controls[1]->BackgroundImage = System::Drawing::Image( "C:\Documents and Settings\me\Mes documents\Mes images\nature\color.gif" ); but that didn't work,can tell me why Try this ->tableLayoutPanel1->Controls[1]->BackgroundImage = System::Drawing::Image ::FromFile ( "C:\Documents and Settings\me\Mes documents\Mes images\nature\color.gif" ); ...Show All
Visual Studio Catastrophic Failu Visual Studio Crashing like crazy!!! WHAT IS GOING ON!!!
I reinstalled my whole damn operating system thinking that I had broken visual studio somehow... it turns out that was a collosal waste of time... I have a fresh clean windows xp pro sp2 install, and a clean Visual Studio Professional... and whenever I add a dataset to a project, and right-click the designer and hit "View Code", I get this horrifying error: Failed to view the validation code because of the following error: Catastrophic failure (Exception from HRESULT: 0x80000FFFF (E_UNEXPECTED) and it gives me a blank document. If I click the button to Save All open documents, the whole damn program just crashes!! I've submitted the error reports, but that's not going to help me fix the problem... what is goi ...Show All
Visual Studio 2008 (Pre-release) Microsoft.VisualStudio.Shell.WindowPane.OnCreate() error
I get this error when I try to look at Project properties. Anyone with ideas Chris This is noted in the readme that the properties page won't work if installed side-by-side with either VS 2005 or SQL 2005 (due to it being based on VS 2005). The problem is that because the VPC image has TFS installed, it has the SQL Management Studio installed, which causes the conflict. It would be really nice if there was a workaround for this as it's likely to be a few more months (end of april at MIX ) before we see another drop (beta 1 ). --Oren ...Show All
