Sweeps78's Q&A profile
Windows Forms Windows Media Player 9
How do you play mediafiles using the activeX controller And how do you get and set the current position in the videoclip When I make an object AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1; I thought I could write axWindowsMediaPlayer1.Controls.Play(); but I can' ...Show All
Visual Studio Team System Suppress CA2000:DisposeObjectsBeforeLosingScope
We have an object with an embedded timer. Timer is disposed of in a custom method. I am trying to add suppression for CA2000:DisposeObjectsBeforeLosingScope message related to the timer. I was trying to add SupressMessage attribute to the entire class, variable that holds the timer and sub New. Nothing worked so far. Any suggestions wre appreciated. Sergey, There are two easy ways to go about generating a suppress message depending o ...Show All
Visual C++ Question about properties
Hi, I have some trouble with "property". I currently have a managed object with a set of properties, which acts as a layer on top of another one, in order to display some informations in a property grid. When I create a simple property, like "property float Depth;" it works fine. Then, if I write : property float Depth { float get(void) { m_Depth = 1.0f; return(m_Depth); } } It also works fine. But the following doesn't wor ...Show All
Visual Basic Updating excel files from Visual Basic
I am trying to use VB to dynamically update an excel template that I have already created. I have a windows form that the user inputs data into and all I want to do is put that data into an excel template. I can create a new excel file and export the data to a new file but I can’t figure out how to export the data to a file that already exist. The code that I am using to create a new excel file is below: Dim MyEx As New E ...Show All
Windows Forms How to install SQL Server Express as a prerequisite?
Hi, Besides just checking it in the prerequisites list, what else I have to do to properly install the SQL server. I have somehow : - specify instance name - set authenfication to "SQL" - setup users - configure network protocols - etc I have found information how to configure the server through command line, etc. But can not find anything how to do it during ClickOnce installation. Thanks One more question t ...Show All
Software Development for Windows Vista WorkflowDefinition
In SQlTrackingService - WWF Labs-03. when we run the sample, we are inserting data in "dbo.workflow" "WorkflowDefinition" field in "dbo.workflow" is populated with XML String. How do we get that data by programatically because i am developing Custom Tracking Service for oracle. Note1: user can add Workflow File as Either "Code" or "Code Separation" but the sample is storing the ...Show All
Windows Forms Second form not showing
I have a main form and a secondary form. If another program coveres them up and you press the program button in the task bar only the main form shows, the other one doesn't. In vb 6 all the forms came back when you pressed the task bar button. Right now I have placed a button on all my pages in a tab control to show the second form. I have tried the main form "GotFocus" but it doesn't fire. Where else can I place code to reshow the second form T ...Show All
Visual Studio 2008 (Pre-release) Request End Event??
Hi, Is there anyway to be notified when a request (i.e. invocation of web service) ends In my example, I need to make sure that database sessions are closed when the request ends. Thanks, Scott. Hi, If you you are using the "using" block, you know when the underlying channel is closed. using (MyServiceAgent mySA = new MyServiceAgent(...)) { Method Call; } if the proxy my ...Show All
Software Development for Windows Vista As consumers of applications
What is the best way to drag application vendors and developers into this forum so they can learn to code more securely What websites, sdk, documents and books [besides Writing Secure Code Second Edition] should be recommended to such vendors If hitting them over the head with Writing Secure Code doesn't work, remember that there's a Russian edition... in hardback. Seriously, I'm starting to think that cert ...Show All
Visual C++ App Icon for C++ project
I simply want to change the icon used by my /clr .exe. (The icon that appears in Windows Explorer with the file). My web search so far has shown that other Visual Studio users, perhaps using VB or C#, can just set the icon in their project settings. I can not find the option they describe. I added the folowing two lines to my main forms construtor: System::ComponentModel::ComponentResourceManager^ r ...Show All
SQL Server About Indexes & Where caluse
Hi, I am struggling with the sequence of parameters in my where clause. In my databse table i have index on Broadcast_Date(some table field).The Index also include some other parameters which might become part of where clause. The first field of the index is broadcast date. So I want to know whether it is always compoulsory to have broadcast date as my first field of where clause. Will it not scan the index if my where clause is ...Show All
.NET Development Permissions required to Use System.Diagnostiscs namespace
Hi, In ASP.NET 1.1, we have developed a module which includes a call to GetProcessById() function of System.Diagnostics.Process. This works fine if the ASP.NET is running under System context or if the ASPNET user is an administrator. The problem is, in the user's machine, the user context under which the ASP.NET is going to run should not have adminstrative privileges. At that time, this shows an exception with the ...Show All
Windows Forms How to get all mouse clicks in child controls
I have a parent user control. I want to capture all mouse clicks within the control, even if the mouse click is on a control within my parent control. How do I do this You can try and look for WM_PARENTNOTIFY and WM_MOUSEACTIVATE event. What I suggest you do is,create a WinForms Application and then change the property of the project to Console App,so that you can see the Console Window. In your user ...Show All
SQL Server Reg questions!!
Hello all, I am doing my project for my university, The project is about making a registration in the university for students and also for tutors, I want for help on this question: how could I translate the fact that a student have registered for many courses, I mean how could I make this implemented using MS Access Any suggestion, even if it is not related to this question. Thanks for supporting. ...Show All
Smart Device Development Using hardware buttons
Hi, i want my application to do a certain job when the user presses the up or down hardware buttons, or any other hardware button as general case, can anybody help Thanks There is the HardwareButton component in the CF v2. If you're targeting V1 SDF includes similar functionality: http://www.opennetcf.org/sdf ...Show All
