smithalovesdotnet's Q&A profile
Visual Basic Open and Run a MP3 stored in resource files.
Hi. I want my form to be able to play a short (5 seconds) mp3 when the user clicks a label. So i added the mp3 to a resource file: id: 101 ("Custom") But i cant figure out how to get the mp3 to play. I think i have to use "LoadResCustom, 101, "Custom"" but i just don't know. ...Show All
.NET Development Forcing an overriden method to call it's base implementation
When designing a base class I wish to be able to 'force' an overriden method call to also call the base implementation. Is there a way to make the runtime call first the base.method() and only then the derived.method() OR force the programmer implementing the derived to do this OR even to throw a compile time warning that will alert the programmer to do so Cheers, Kind of an oxymoron isn't it Do you want to override a method or not Quick answer is: no, you can't "force" a call to the base implementation; whatever "force" means. Since we're not in a language forum, I'm assuming you don't mean c ...Show All
Windows Forms Custom TreeView background and flicker
I'm trying to write a custom tree view control as none of the third party controls I could find do exactly what I want. Most of them lack some feature in one way or another, so I've decided to bite the bullet. 1) Drawing a background for my treeview Currently, I would like the background the treeview to go away entirely. If that is not an option, then I would like to be able to place an image in the background so that it appears to not have a background (blending in with the image that my form will have). I'm not sure of the best way to go about this. If I try to display an image in my OnDrawNode method, the image below ...Show All
Visual Basic Migrating usage of VB6 control arrays to 2005. How do I do this?
Hi again. Need some advice and I'm new to VB2005. In VB6 I used control arrays a lot, and there are no control arrays in 2005. I found out how I can do the same thing by referencing the handles in a sub, but I have another scenario not covered in MS's migration page. To make it simple, let's say I have 10 labels and I want to pick one randomly and display text in it. In VB6 I could have all these labels in an array and do this (quazi code) I = (random number generated between 1 and 10) Labels(I).text = "i was randomly picked!" I need to do the same thing in VB2005, but don't know how because each control has to have a different name, I don't ...Show All
SQL Server Getting Started
hey, I am 100% new to useing SQL server 2005 express/SQL server, and when I installed it I only had 3 options I could chose from in my start menue for this program: Server configuration manager, SQL server and error usage reporting, and SQL server serfuace area configuration. And what I want to do is make a database for a website I am making, with files that can be downloaded and user account info(passwords and usernames) but I dont know what to do, what can I do to do this progames25 wrote: ok, you are making this very hard, first you say goto that download link, then you say click on easy to use, but I dont h ...Show All
.NET Development Marshal unmanage pointer to array of structure
Hi, I've been struggling with this problem for quite some time now and i think i deserve a bit of help ! I got this C++ tool that calls a C# service. To communicate together i got an IDL with defined structures in it THAT I CANNOT CHANGE. This is a problem because i can't tell the compiler the layout information about how to marchal each parameter. Anyways, let's continue. This is the structure in IDL: typedef struct { DWORD id; DWORD nDetailLevel; BYTE descr[ 256 ]; } TRACE_INFO; As i said, i cant play with this. The C++ to ...Show All
Windows Forms Auto-update feature does not seem to work on all machines.
Hi there, I have recently created a Windows application that was deployed using ClickOnce and thst runs on +- 20 PCs on the network. The first 3 updates / patches to this application were detected and installed automatically on all the machines. Since then however, only some of the machines have been detecting that a new version of the software is available. I have already tried uninstalling the application from one of the affected client PCs, deleting the contents of the /Local Settings/Apps/ folder and re-installing the application again from the publish.htm page with no luck. The publish page definately displays the most recent vers ...Show All
Visual Studio Team System Web Service XML Testing
This is bar none the best help available on the internet. I have a problem, maybe you can point me in the right direction I am testing a webservice that accepts a changes to a data table. The soap request description indicates it is looking for a schema (not sure if this is a bad choice by the developer). < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <UploadStationData xmlns="http://radio.clearchannel.com/"> <station_data> ...Show All
Visual Studio Express Editions Are many MSDN Help links broken/invalid? or is it me?
Just as I am honing in on the solution to a VB 2005 Express problem which has brick-walled me for days, I find in over 50% of cases that the final link to what I am searching for presents an "Information not found" page. This is soooo frustrating. The latest occurrence is that all of the links in the following do just this: How to: Manage Local Data Files in Your Project See Also Tasks How to: Connect to Data in a SQL Server Express Database How to: Connect to Data in an Access Database Walkthrough: Connecting to Data in a SQL Server Express Database Walkthrough: Connecting to Data in an Access Database Concepts Displ ...Show All
Software Development for Windows Vista Automation element for PasswordBox
I cannot obtain an AutomationElement for a PasswordBox control neither via AtomationElement.FromPoint nor via TreeWalker. Is it restricted by design or is there any way to get this Automation Element Thanks, Vlad. If the PasswordBox implements the UIAutomation Provider interfaces you should be able to access it. Password controls have ControlType.Edit and have IsPasswordProperty set to true. You cannot obtain the textual contents from the Password control using UI Automation. You can SetFocus to the control, Set the value, and find out its screen location for example. ...Show All
Smart Device Development TCPClient Connection Emulator vs. Device
Hello, I am working on a project which enables a Pocket PC device (Pocket PC 2003) to connect to a server via a TCP/IP connection. Running the program from the emulator displays an error message about not being able to connect. The errror code is 10065. The error message is: System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host If I run the same program on the device itself then it works as expected. I am using Visual Studio 2005. Here is the sample I am trying to get to work: Try Dim Message As String = "SOME MESSAGE" Dim client As New System.Net.Sockets.TcpClient( ...Show All
Visual Studio 2008 (Pre-release) AnimationEffects...?
What are they used for and how does it work Is there any sample available on how to use AnimationEffects or animation composition thx Florian It's all about writing custom animation algorithms that can't be done by subclassing the standard animation classes. By overriding DoWorkForFrame you can use whatever algorithm you want behind the scenes to animate the element for the current frame of animation. HTH, Drew ...Show All
Visual Studio Problem to display report from SSRS
Hi, I want to display report from SSRS in my VB.net application (winform). I have set the report path,report server,display name. What's the HistoryId for When i run my application the report viewer did't display mt report and show msg "The source of the report definition has not been specified" What else i have do Please help me! It sounds like you want to use server mode. By default, the control is set to local mode. Be sure to set ReportViewer.ProcessingMode. The HistoryId property allows you to view history snapshots on the server. ...Show All
SQL Server Measure Group ID
Hi, What is the thinking behind not allowing us to change the default value of the ID property of a measure group I really don't like the default - I'd like to choose my own. (If thjere is a way to change it in BIDS then plesae let me know!) This wouldn't be a problem except that the XML/A process command references the ID and I would rather have something in there that is intuitive - somehing that represents what the measure group is for. Can I enter this as a feature request (i.e. allow us to change the ID property) at Microsoft Connect Thanks -Jamie OK, this was initially a minor irritat ...Show All
Visual Studio Team System Navigation around Project Portal hindered by repeated display of Domain Login Prompt
Help please! I am a project manager and seem to be the only person afflicted with this problem in my organisation and my SysAdmin doesn't know what to do to overcome it. When I am in VSTS explorer, I can right click and select to show Show Project Portal. The project portal home page is displayed, and a few moments later, the login prompt is displayed. If I 'cancel' or re-enter my password three times I can generally navigate round the portal. (But am increasingly frustrated by the hindrance caused by dealing with the all the extra popup screens!) The login prompt is also requested for each project portal home page that I visit, and f ...Show All
