2times's Q&A profile
Windows Forms Is there any Window Control to hold avi files other than window media player
Hi, I want to display avi files on some window control that i can put on my window form. Is there any such window control that support such property other than window media player itself. I am looking for like we have picture box for images (ex. with no borders or other ui like in window media player). Regards Chips. Here's a custom control that plays .avi files with the old Multimedia API. Add a new class to your project and paste this code: using System; using System.Drawing; using System.Windows.Forms; public class AviPanel : Panel { private bool mPlaying; private int mError; [System.Runtime.InteropServices.DllImport("winmm.dll")] private static extern int mciSendString(strin ...Show All
Visual C# ListView Project.
Hello All, I'm doing a project like the Event Viewer Form " frmViewMessages " where I have a ListView " lvMessage " that is showing me the list of X items. If you double click an item the detail form " frmMessage " open and display the information in read only Text boxes. In that form " frmMessage " I have two buttons which I intend to move the select Item in the form " frmViewMessages " to the preview or next items. Here is were I have the problem. Could some one tell me how to achieve this part. Here is the code I have so far and is working OK but only allow me to move to just one Item down. For further refernce look the Event Viewer "Application log " in your PC. and d ...Show All
Windows Forms Problem using CheckBoxField in GridView Control
Hi, I am developing an ASP.NET Web Page in Visual Basic.NET. I am displaying data in a GridView control, the fields of my table are: Number_Id Varchar(10), FirstName Varchar(15), SecondName Varchar(15), Status Bit. When I execute the web page that I developed, I can see that GridView control displays Number_Id, FirstName,SecondName and Status, but Status field has a CheckBoxFields, CheckBoxFields are checked if Status fields are 1. In executed web page, I am trying to change the status of CheckBoxField and it is imposible because CheckBoxFields are disabled. I want to know what steps or procedures or methods are necessary to change status in CheckBoxFields, if someboy knows how to do it. Its necessary mention that using o ...Show All
SQL Server Configure connection strings for deployment to different servers
Hi, We currently have a test and development environment for our data warehouse which is using SSIS packages to build (SSIS packages call stored procedures). We have multiple connections accross the different packages. The problem that we are having is when we deploy the packages to the development environment, the connection strings in the packages are still pointing to the live server! Hence, when we run these packages in the test environment, they actually execute the stored procedures in our live server. I have tried to use package configurations and the deployment utility to assist us in this regard but have still come up with a few problems: - When running the deployment utility, I still have to go and manually type ...Show All
Visual Basic open a form with only systray icon
Hello, how do i open a form so the form does not show and only an icon appears in systray I know how to make the icon but everytime I do this the form appears. I want to make the form only appear when I right click on the icon and say "appear". Thanks! i donot know this is the right techique or not. you can set the form's opaque perporty to 0 and showintaskbar perporty to false at design time. and when user click on this system try then you set the opacity to 100 and showintaskbar to true. this way way you can achive this. ...Show All
Visual C# New Window event help needed and some other stuff
Can someone please help this code below is mean to opena new window but i don't want it to open my defualt browser i just want it to opne a new window in my browser also i would like my browser to goto the users homepage automatically at startup of the program, and a progress bar that works along with when i click a link it updates in the url box. My Current code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace H2F_Browser_Beta { public partial class H2FBrowser : Form { // Updates the title bar with the current document title. private void ...Show All
Visual Studio Express Editions IDE Issue
I'm coding in unmanaged code. And the intellisense is bad for unmanaged c++. I have to close the project and open it up over and over to get the intellisense to work for like 2 times then it dies ;_;. How can I fix this issue Kiryn wrote: I wish there was a fix for this ;_; Could you provide more information on your working environment like the vc version, windows version and everything you think might be helpful for others to better understand your situation. thanks bite ...Show All
.NET Development convert xml file to arraylist
hi i need some one to make me a demo code that show me how can i convert xml file to arraylist in c# the xml file structur is <!--Sample for for exercising PFM_StateData namespace--> <states_StateDataForm_DemoForm> <Attributes> <Type>TextBox</Type> <Name>txtSummary</Name> <Width>358</Width> <Height>51</Height> <Top>16</Top> <Left>12</Left> </Attributes> <Attributes> <Type>Label</Type> <Name>lblOfText</Name> <Width>96</Width> <Height>13</Height> <Top>16</Top> <Left>70</Left> &l ...Show All
Visual C++ How do I determine the size of the MdiClient when there are scrollbars present?
I'm writing an application that places several window forms onto the mdiclient. After I place several forms on the client, the vertical scrollbar appears on the mdiclient. How do I determine the height of the mdiclient when scrollbars are present The height property of the mdiclient always remains the same no matter how many forms i add to it. There is no autoscrolloffset property for .Net 1.1, but there is for 2.0. I'm using 1.1 ...Show All
SQL Server Indexing Question
I am somewhat new to SQL and have an indexing question I have a table that consists of 60 columns of mostly numeric data. Included in the table are fields called Customerid, CustDate and CustTime. Every hour data is posted to the table with the current time and date as well as customerID. The table is about 6 million rows. I have a query that reads: SELECT CustomerID, custdate + custtime as date FROM Mytable WHERE CustID = 905 and (date between ‘1/1/7’ and ‘1/17/7). The query works but it takes longer than I would like so I am wondering if it’s an indexing issue. Currently my table is indexed as CustomerID + CustDate + CustTime. None of the fields are unique, but the combination of the 3 i ...Show All
Visual Studio Team System Version control of dbschema DBPro vs Team Explorer
Hi If I as a DBA use DBPro for doing checkin checkout operations, how should the developers that don't have DBPro do the check in check out of the files they need We are impleting Team System as the version control system. Should they use team explorer (I believe this is how it's called the free add-on to be able to check out and check in all files in Team System). Thanks jegar wrote: Hi If I as a DBA use DBPro for doing checkin checkout operations, how should the developers that don't have DBPro do the check in check out of the files they need We are impleting Team System as the version control system. Should they use team explorer (I believe this is how it's called the f ...Show All
SQL Server How to write a T-SQL script to replace Val() in MS Access?
I am converting an MS-Access DB to SQL-Server, and one of the queries I'm converting uses the VB Val() function in the ORDER BY clause. Is there any T-SQL function that can mimic this CAST and CONVERT return errors because some of the data is non-numeric. The column I am ordering is a varchar(5) with ID number 'ZZ0001', 'CC0002', 'AA0003' etc . I would like the dataset to be sorted by number only : 'ZZ0001' 'CC0002' 'AA0003' Thank you Hi, Here is the answer to your question: SELECT CONVERT(INT, LEFT(yourMixColumn,PATINDEX('%[^0-9]%'yourmixColumn+' ')-1)) OR SELECT CONVERT(FLOAT, LEFT(yourMixColumn,PATINDEX('%[^0-9,.]%'yourmixColumn+' ')-1)) By the way, all your sample data ('ZZ0001' , 'CC0002' , ...Show All
Software Development for Windows Vista Rules Editor
I must be missing something simple but I have been unable to use the "System.Workflow.Activities.Rules.RuleConditionReference" within my workflow (CAG specifically). Everytime I select this option and click the ellipse to add a New Condition , the popup closes. If I enter text manually in the ConditionName field and hit enter, it will create the worklow.rules file with RuleExpressionCondition line. Next I try to add the expression by clickin on the ellipse and I get an error "An item with the same key has already been added". I have hand coded a rules file using other examples in hopes of it being recognized but with no luck. Am I missing something Jesse Hi Jesse, I am trying to get a repro of this i ...Show All
Smart Device Development Context menu for File Explorer & iexplorer
I need a help on context menu.Please let me know any of you how to extend context menu for file explorer for Smartphone/Windows CE 5.x and Context menu for Pocket Internet Explorer Samrtphone/Windows CE 5.x. Thanks, Krishna Unfortunately on the smartphone there is no standard file explorer application. There is a 3rd party one shipped on some of them. Because it is 3rd party, you cannot extend its menu. AFAIK Poclet IE menu on the smartphone is also non-extensible (although you can take a look at BHO sample under Samples\ATL\PIE) ...Show All
Visual Studio Team System Check-in policy errors / suggestions / questions
I am trying to play with check-in policies. I installed it, then added it to the project. Everything seems to be OK. Now I delete my DLL from desired location. I have two Team Projects visible in Team Explorer and now every time I am trying to check Source Control checkin policies it throws a error that policy is missing and provides installation instructions - but it's doing it twice! I guess it'll throw addiotional exception for every added team Project... That seems like a bug to me. Now suggestion - those isntallation errors are shown when I am trying to access checkin policy setting on a source control - that's nice but wouldn't it make more sense to show installation instructions when somebody tries to check in and doesn't have poli ...Show All
