DanInNewWest's Q&A profile
Visual Basic R
Hi All, I am having soem weird problems trying to create classes that inherit the base control classes that allow me to set (and then subsequently change) the colors of text boxes and other controls. This may be simple, but im new to .net and I cant find a solution to this on any of the forums..... Below is the full code for our sTextBox class, which inherits from the TextBox cvlass supplies with VB.net. I am using VS 2005. There are two halves to what we want… We want the test box to ‘behave’ in the designer – i.e. inherit the backcolor we set but not store it in the designer code. The test for this is the BackColor property should not be bold in the designer when adding a new text box, and if you change th ...Show All
Visual Studio Express Editions how to retrieve data from a database and put it into a variable
Hi all... I am trying to retrieve data from a database and put it into a variable. If the data in the databasetable looks as follows: Number Kredit 1 10000 2 99998 3 99996 4 99994 How do I retrieve the data "in red font", and put it into a variable Dim Variable as integer Private Sub Form1_Load Vaiable = (Last entry into collumn "Kredit") End sub Im sure this is fairly simple, but I just cant figure it out... so any help will be greatly appreciated.. I just started looking at sql-databases today, so if any of you have some links to good beginners guides, those would be appreciated too... Thanks... At the very top of your s ...Show All
Visual Studio Express Editions Have I choose the right programming language for my project?
Dear all, First of all, I'm a total beginner who wished to create a software for my own small company. I read around about VB Express and SQL Express, and being free and supposedly easy, it caught my attention. Not to mention excellent forum support as well. I would like to ask for advices from the VB seniors here at Microsoft forum. I just want to make sure that VB Express will be sufficient to make a program that fulfill my desired feature: 1.Compiled as a standalone installation file. 2.Multi user capable. The program is to be run by several person in my company (probably 2 - 3 person) through local network 3.Password protected some specified table, so that only admin that can alter them. For example: item price in Item Table can only b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem creating a render target.
I'm just having issues because I'm trying to create a render target with a surface format of RGBA5551 is it unsupported With SurfaceFormat.Color it doesn't raise an exception, so I'm guessing it has to do with that. Surface renderTarget = this.graphics.GraphicsDevice.CreateRenderTarget( 1024, 512, SurfaceFormat.Bgra5551, MultiSampleType.FourSamples, 0, true); Am I doing something wrong here do I need to prepare the device first I don't think it's that my vidcard doesn't support it since it's a Geforce 7800GT... Well, any answer would be greatly appreciated. I forgot to mention that I'm using XNA. BRGA is the only one with a 5551 config. Either ...Show All
Visual Studio VS2005 and VS2003 coexistence
After installing VS2005 B2 from the Team System disk, I receive the following error when loading a 2003 project in my VS2003: The following two files are marked as incompatible: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vspackages\cslangsvc.dll (Version 7.10.3077 [2]) C:\Windows\Microsoft.NET\Framework\v2.0.50215\cscomp.dll (Version 8.0.50215.44(beta2.050215-4400)[4b000050]) Then compiler cannot be used in this configuration. This is usually caused by installing different flavors of VS and NDP, and not specifying the VS version for the /CompilerSourcePath and /NonNdpSourcePath options when running NdpSetup. I thought VS2003 and VS2005 (Beta 2) can both exist on the same machine. What is NdpSet ...Show All
Visual C# Only support "DateTime.Now.ToLongDateString()" in file name?
using (StreamWriter sw = new StreamWriter((@"C:\" + DateTime.Now.ToLongDateString() + ".txt"),true)) I tried to use "DateTime.Now.ToShortDateString" and "DateTime.Now.ToString()" and "DateTime.Now.ToLongTimeString()"....however, the program will encounter problems when running... It seems the format for file name only accept "DateTime.Now.ToLongDateString()", is there any way to add the current time in the file name Or maybe I can use the log file to record the applications However, I know nothing about the log file... non - just ToString(): DateTime.Now.Millisecond.ToString() the formatting is applied when you do: DateTime.Now.ToString( for ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Asteroids game in the Channel 9 XNA launch video
Any idea if this is going to be released to the community It looks like it would be a blast to play. I'd ask about the font support that was shown too, but I'm guessing that'll come in the first patch. There are some decisions in life that you'll regret forever... ...now if I can just find another game development contest where I'm the only person that enters and the prize is an XBox360... ...Show All
Visual Studio Tools for Office How to: Call native PowerPoint functionalities from my own commandbar?
I had created a custom commandbar, and I would like to create some commandbar buttons which have the same functionalities as the buttons in PowerPoint toolbar, such as 'Format Painter' in 'Standard' toolbar. Thanks in advance Kenneth Hi Kenneth As mentioned in my reply to your other question, the best place to get help with this is the PowerPoint newsgroup. ...Show All
Gadgets Need Help Refreshing My Gadget.
Hi, I'm almost finished with a gadget that shows a new "game of the hour" every 60 seconds. The thing is, is that I don't have a way to get it to refresh the gadget every 60 seconds. I've tried Meta tag refresh tags, java-script refresh tags, and a solution I found on these forums a little while ago, and nothing seems to be working. Any help would be appreciated. I'd also be very wary of your " window.setInterval(updateData, 5);" That means you are calling updateData every 5 milliseconds, i.e. 200 times PER SECOND! I'm guessing you want to call it every 5 seconds Use window.setInterval(updateData, 5000); ...Show All
SQL Server Getting SQL result in a variable
Hi there I have a global variable say cnt in SSIS package, now I want to get total number of rows from a table say emp in that variable cnt. how do we achieve that thanks and regards Rahul Kuamr Hi, To get the result of a query into a variable first you have to declare a variable of the same type which is returned by the query, and use an execute sql task in the control flow, Double click the execute sql task and click on the general tab and make the result set property to "Single Row" and write the query in this way: "Select name as empname from emp where empid = '234'. " Now you can assign the name alias "empname" used in the query to a result set. To do ...Show All
.NET Development PPPOE auto redial
I have a little complicated situation, I always loose connection (PPPOE) , and i want to write small application, which reconnects, is there possibility to do this in .Net framework, sample code would be great, thanks. Yes this is possible. See this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=737123&SiteID=1 Best Regards, ...Show All
Windows Forms Microsoft Browser Component INCOMPATIBLE with Internet Explorer 7 In Certain Cases
I have a discovered another bug :( . Microsoft Browser COM component does not work with .swf files with IE7 installed. Two users of my program have complained that it hasn't work, they both have Internet Explorer 7. I don't use webbrowser becuase...ITS BUGGED TOO (stupid Windows bugs)....flash buttons dont work in webbrowser so I am forced to use Microsoft Browser... What can I do to fix the problem Embedded swf files do work, but the the swf file directly does not work... But it's not embedded! The .swf file is direct ex. www.microsoft.com/something.swf Going directly to a swf file works in the .NET browser but the buttons don't work, and going directly to a .swf file in Microsoft Browser works with IE6 installed but NOT with IE7 i ...Show All
.NET Development FileWatcher Service doesnt watch outiside of debugger!
I created a FileWatcher Service. There is too much code to paste. When I start the service, then start the debugger, it works perfectly. However when I just run the service, it doesnt do anything! Why would it work when debugging but not on its own If you need to see some code, just let me know what portion you would want to view... thanks all. Here is the code... This part is in my Service1.Designer.cs private void InitializeComponent() { // Start the Directory Watcher DirectoryWatcher .XmlWatcher(); } This is in another .cs file public static void XmlWatcher() { watcher = new FileSystemWatcher (); watcher.Path = WatcherDir; watcher.Filter ...Show All
Software Development for Windows Vista Windows elevates randomly named .msi file in %windows%\installer
There is an issue setting execution level to asInvoker in an installation bootstrapper. The first thing Windows does when msiexec is called is to copy the msi to %windows%\Installer\{some random letters and numbers}.msi. When windows prompts for elevation to installation, it states something like this: A program needs your permission to continue. If you started this program, continue: 181920.msi Well, obviously, the user clicked setup.exe, not “181920.msi” as the dialog shows. A very security conscious user would likely not allow this installation to continue, despite it being the most secure way for the application to install. This phenomenon also happens if the user just clicks the msi directly. Setting the setup.exe ...Show All
Visual Studio 2008 (Pre-release) Usage of INotifyCollectionChanged
I have a need to implement INotifyCollectionChanged myself, and cannot seem to get it working. With INotifyPropertyChanged it is a matter of implementing the event and making sure the binding has UpdateSourceTrigger=PropertyChanged set. I believe I have correctly implemented the event properly for INotifyCollectionChanged , but am missing a flag that needs set. What is the proper way to go about implementing INotifyCollectionChanged (Any links to examples would be appreciated, the SDK seems to not have much on this subject). Thanks. Hi Bill, Not sure exactly what you're after from your question. I think it would help if you explained why you need to re-implement INotifyCollectionChanged, as this is provided by the ObservableColle ...Show All
