S.Jan's Q&A profile
Visual Studio Express Editions render a textbox
Gooday Is it possible to set the wording in a textbox as a hyperlink in vb 2005 express. Thanks Rob The LinkLabel control was designed to act as a hyperlink. You can make a TextBox contents look like a hyperlink by using a blue, underlined font and implementing the Click event. ...Show All
Smart Device Development change the vmid and mac address in a state-save file
Hi All i assumed a state-save file has a vmid and mac inside, right then if load a state-save file on another machine, there will be some problems. so can i change the vmid and mac address of a state-save file or is there some other way to fix that Thanks in advance Terry Thanks! yes, the best way is to making a save-state without checking the NE2000. but does that mean if i launch emulator with this savestate, then the emulator will look up the MAC list in the registry i.e HKEY_CURRENT_USER\Software\Microsoft\Device Emulator\MAC Addresses what's more, if i start emulator with vmid value in the registry, it will also select a MAC address from the rigistry, right TerryPeng ...Show All
Visual C++ Odd pre-compiled header question
Hi folks, I suspect this is an easy one but I can't seem to solve it. A week ago, I decided to reset my VC++ environment settings to the default values. Now, I'm getting errors related to the PCH whenever I try to build a file that's either creating or using precompiled headers. The error if I try to use a pre-compiled header ("/Yustdafx.h") is C2857 -- included file not found in source. If I try to create one ("/Ycstdafx.h") I get C1010 -- end of file while looking for PCH. The compiler helpfully suggests that perhaps I forgot to include #include "stdafx.h" in my source; I didn't. Figuring maybe I'd screwed something up, I reset to default settings once again, created a brand new Windows Forms app and a ...Show All
SQL Server fill up spaces with dots in a column
Hi, I currently have a column in a table with data type char and length 500. However, not every column fills up the entire 500 length, and I would like to fill up the rest of the spaces with dots. Is there a setting in SQL to do this I do not want to use varchar since I want a fixed length with dots at the end. Any ideas Thanks, Alan I can't really imagine why you would have that requirement, it is kinda backwards. If your goal is to display the data padded with dots up to a total length of 500, then I'd suggest that you do use a varchar for storage of your data (without dots). When you want to retrieve it, then you pad it. Something like this; create table #x (mystring varchar(50) not null) inser ...Show All
.NET Development VS 2005 & SOL2000 security permissions lost during web publishing
we installed studio2005 connected to SQl2000 on same machine. everything works great but....... we let users to upload images to DB, we must security setting to the directory where the images are stored and permit "evrybody" otherwise they will get error uploading on the client side. The problem: everytime that we are doing new web publishing, the directory is being overwritten by the compiller engine and we need to issue new permissions again. any trick to go around it ...Show All
Windows Forms Handling control non-client area in the designer
I have created a control derived from UserControl, where I am drawing a border in the non-client area. The designer for this control is derived from ControlDesigner. I have two problems when dragging/moving this control around the design surface. 1) I don't receive any WM_NCPAINT message while the control is being dragged, so my border is not painted. 2) When the mouse down to start the drag is in the non-client area, it is ignored by the designer. Is there any way to get around these problems other than re-implementing dragging in the designer or moving my border into the client area 1. i think it's better that you paste your wndproc override here for your control which is the way to provide ...Show All
Visual C++ Problems with my project
I have 3 problems I am unable to resolve regarding operating visual studio .net 2005 I created an MFC application project using VC++ using the wizard. 1. My project got messed up in the solution explorer panel somehow. Now, instead of having folders called Source Files, Header Files, etc it is saying Release, Debug, res, and hlp. Its just a listing of the directory structure now, and the folder contents shown include intermediate build files like the precompiled headers, obj files, exe file, etc. How can I get it back to regular again without having to totally recreate the project again And, more importantly, what causes this change to happen in the first place 2. Even though I changed my project's .ico file in the resources, m ...Show All
Visual C++ Associating an HotKey
I'm working on a program to take screen shots. What I want to do is to make my program respond when the key "Print Screen" is pressed, even if my program doesn't have the focus. I searched the Internet for hours but didn't managed this, probably because I'm a newbie in C++. Can anybody help me I'll greatly appreciate it! Thanks And another thing: how can I make the program wait indefinitely without displaying that MessageBox This would be really all :) ...Show All
.NET Development Missing DWMAPI.dll causes problem with COM interop in c#
I have recently installed IE7, and am now experiencing a problem with COM interop in one of my c# projects. It seems that there is a dependency on a dll called DWMAPI.dll from the COM dll. I have read a bunch of posts about similar problems, and it seems this dll comes with Vista, but is missing on XP machines. For some reason, installing IE7 makes it become a dependency for things like .NET interop. The only solution I have been able to find in the forums and posts is to uninstall IE7. Microsoft has not yet posted anything that I could find in regards to this issue. Does anyone know something I don't Any help is greatly appreciated. Thanks, Dan I sure would like to understand what you saying her ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Requirements Checker
Well, I finally decided to write a little utility that checks for the required components of XNA (excluding .Net2.0 because i wrote it using .net 2.0 ) because I've seen just too many threads about the game not working on non-dev pcs. This program lets the user know if they have an outdated graphics card, installs the latest directx using directx webinstall, and installs the xna framework redist 1.0. I bundled it together inside a NSIS installer package because it was the easiest method i knew of. Not the most elegant way, i know. If anyone has a better solution, please let me know. I included the license for both directx and xna, and if i missed any legal issues with redistributing the packages in my own way, please let me know. I ...Show All
Visual Studio Express Editions Visual Basic Problems Using DirectX 8.0
ok, What I really would like is to download visual basic 6.0, but I cant find anywhere to do that.. My problem with visual Basic express edition, is I cant seem to get my reference to Directx 8 to work, I have reinstalled directx 8 and VB but it still wont work for me, any ideas> I am programming in BASIC and am very new at it... if anybody could help me I'd be very thankfull, you can contact me by emailing me at Lukeskiwalker@bellsouth.net , or posting here... Thank you very much, Wesly OK VB6 is not available to download. Its an old product which is probably 8 years old and was replaced with VB.Net 2002,2003 and 2005 It is also a chargeable product, unlike VB Express which is fr ...Show All
Software Development for Windows Vista application compatibility testing
hi, what steps need to be taken care of to completely test an application to be compatible on vista platform thanx in advance divya Markand, A related screencast may be viewed at https://vsd.powertogether.com/ "Designing Software Installations for Windows Vista Using Windows Installer 4.0" Presenter: Tyler Robinson , Lead Program Manager, Microsoft Corporation In this webcast, we cover the new software installation features of Microsoft Windows Installer 4.0 in the Windows Vista operating system. Windows Installer 4.0 offers innovations that are important to software developers, such as integration with User Account Control (UAC), the ability to mitigate system re ...Show All
Windows Forms Do I need a Binding Source? Why?
This has always kind of confused me. usualy, when I want to bind a DataTable to a DataGridView, I just say: somDataGridView.DataSource = dtSomeDataTable; that's it... works great. So my question is, why would I want to complicate things and bind my Datatable to a BindingSource, then Bind that to the DataGridView Thanks... This article will give you more information ...Show All
Visual Studio 2008 (Pre-release) Storing & Displaying Images
This questions kind of spans multiple areas, so I hope I'm not overstepping the forum bounds by asking it here! I'm working on a WPF app that displays images in a WrapPanel. Currently the images are stored on a web server and accessed through their URL paths. I'd like to store some information about each image in a SQL Server database. I'm considering storing the binary images and thumbnails in the database as well. Then I would use a web service to pull the images from the database and return the binary data to the WPF app. My primary question is whether this scenario is flawed or just a bad idea It is very simple to refer to an image through its URL. Am I creating a situation that will be hard to main ...Show All
Visual Studio Express Editions Whats wrong with this code
I am trying to display random images using this code and vs studio 2005 I am getting a name 'Directory' is not declared whats the reason. DKB Sub DisplayDie( ByVal picDie As PictureBox, _ ByVal face As Integer ) ' assign die image to picture box ' picDie.Image = _ Image.FromFile(Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) did you import the System.IO namespace import it then you should be ok, otherwise you can do this: picDie.Image = _ Image.FromFile(System.IO.Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) you could also... picDie.Image = _ Image.FromFil ...Show All
