Jackey Cheung's Q&A profile
Visual C++ Please Help Me! Please...Please...!
Hi. I want design Line in a StaticControl.(or any function.like sin(x)) Please Help me. Nishes reply to this question previously will allow you to do a line on your form. If you want the line to follow a function like sin(x), then you need to write your own control, no built in control does this. ...Show All
Visual Studio Express Editions SQL database
hey guys, im just learing how to program...im working through bob tabors tutorials for visual basic 2005 express edition. im on lesson 8 which starts to deal with SQL databases. the problem comes when ive added a new database and when i add a new table and start uptting in information, i cant set a "primary key". the button for doing this is greyed out, as are all the other buttons in the "table designer" toolbar. does anyone have any ideas why all the buttons are greyed out thanks for any help! If you have set focus inside the table designer, then, the icons should be enabled. I'm not exactly sure ...Show All
Visual Basic HardMarginX & HardMarginY Problems
Hi, I'm trying to print to a HP DeskJet printer. Using PrintPreview the output is properly centered on the page, but when I print the page, the output is shifted down and to the right. After a lot of head-scratching, I determined that the printed image is shifted right by an amount equal to HardMarginX and shifted down by an amount equal to HardMarginY. I then subtracted HardMarginX from Margin.Left and HardMarginY from Margin.Top. With this adjustment the printed page is perfectly centered, but the PrintPreview is now shifted up and to the left. The values for the margins are: Margins=[Margins Left=50 Right=50 Top=100 Bottom=100] [Ha ...Show All
Visual Basic Uneditable combobox
I want combobox1 to be uneditable while the program is running, so people can only choose things that are in the list, not be able to write in it as well Very easy... Just set the dropdownstyle property to DropDownList and this should give you what you want. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pixel and vertex shaders
hi, im wanting to learn how to use common framework inorder to show off my own vertex and pixel shaders. does anyone know where there might be a tuttorial for creating an evironment using programable shaders thanks in advance Hi, A "Common Framework" is a bit of a holy grail at the moment - it's fuel for an endless number of discussions online Seems that not everyone agrees on all the same things, some standards aren't considered ready (e.g. not everyone is happy with DXSAS yet) and then theres a whole bunch of tools that simply bend the standards to their own interpretations... Anyway, you ...Show All
Visual Basic How to get Stings of 8 bit Chars from Comm Port
I am using an MSDN RS232 sample VB code in VSTS2005 to read and write from/to the Com1 port. But the example uses System.Text.ASCIIEncoding.GetString which only handles 7-bit ASCII characters, not 8-bit. I don't see any Encoding format that will return strings of simple 8 bit bytes of characters from the Serial port unmodified. What Encoding code can I use for simple strings of 8-bit bytes so that I can handle 8-bit binary data from the COM1 port properly How can I convert Byte Array into Strings of 8 bit characters Thanks for your Help. No, that's not quite what I need. I don't want to convert th ...Show All
Visual C# App.Config
The following connectionString is present in App.Config <configuration> <appSettings> <add key="ConnectionString" value="Data Source=machine1;Initial Catalog=database1;User Id=user1;Password=password1;"/> </appSettings> </configuration> Now I would like to retrieve it using the following code public static string GetConnectionString { get { return ConfigurationManager.AppSettings["ConnectionString"]; } } Is this correct Thanks Hussein.Zahran wrote: Well the ConfigurationSettings works fin ...Show All
Windows Live Developer Forums My Contact Card in WLM
I recently changed my email address in my .Net account so I could use it with WLM. The problem I am having is that the new email address does not show up in the top tool bar where is say that I am online or in My Contact Card, the area there still shows my old Yahoo mail address and is greyed out so I can edit it. Can someone please help me fix this annoyance. THANKS The purpose of this forum is to discuss MSN and Windows Live application development using the Messenger Activity API, and Windows Live Bots. If you have technical support questions about using MSN Messenger or Windows Live Messenger, ...Show All
SQL Server Newbie: what kind of "cube" is this?
1. In sql 2005 Analysis services how can I tell what kind of "cube" I'm viewing -- ROLAP, HOLAP, or MOLAP 2. During cube creation where do I specify the type of "cube" I want to create TIA, Barkingdog The cube wizard will not ask you for the storage settings that you want to use. After you have run the wizard and created the cube, go to the "Partitions" tab of the cube editor. You will then see information for your partitions. You can click on a partition and then click on the "Storage Settings..." link to specify MOLAP, HOLAP or ROLAP. HTH, - ...Show All
Visual FoxPro Create a Directory
How can i create a directory when the app begins but validating if the directory exists avoiding an error code thanks a lot! Hi Eric, found it. MD fails to create a directory of more than one level, when the parent directory is either hidden or a system directory: Md (Addbs(GetEnv("APPDATA"))+Sys(2015)+"\"+Sys(2015)) Creating the directory one level at a time works, though. ...Show All
Visual Studio 2008 (Pre-release) How to get Application Startup Path?
Is there an equivilent to the Windows.Forms.Applicatiion.StartupPath for a WPF app (i.e. the directory containing the application exe) You might try looking in the AppDomain, such as: AppDomain .CurrentDomain.BaseDirectory ...Show All
Visual Basic PropertyInfo.SetValue Argument Exception
An argument exception is thrown when attempting to use PropertyInfo.SetValue to set the value of a property in my business objects. The argument is thrown because of wrong data type, even though a valid cast could be made. Is there a way to dynamically cast the object type into the underlying PropertyType of the PropertyInfo object without having to test the FullName property explicitly as show below Select Case prop.PropertyType.FullName Case "System.String" prop.SetValue(obj, tbx.Text, Nothing ) I'm not sure I explained myself very well. All the objects do exist in the same assembly. What I'm att ...Show All
SQL Server Thread was being aborted
I receive the following errors while browsing the http://server/reports page.Please help me to resolve the issue. Error1. Thread was being aborted. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Threading.ThreadAbortException: Thread was being aborted. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace ...Show All
.NET Development difference between Web Site and Project
Hi, I am new to the Visual Studio 2005. Could somebody tell me what is the difference between a Web Site and a Project in Visual Studio 2005 Thanks Hi, In a way a website is also a project. It'ss called a website project.. If you want to create a webbased applicaiton, then you must start in the WebSite. Or else find the appropriate project in the Projects dialog... cheers, Paul June A. Domag ...Show All
Visual Studio Team System language packs
hello all, are there or will there be language packs for FxCop I would love to read the rules in german ;-) greetz Sascha We don't currently have a plan to localize the standalone version of FxCop. The version that is integrated in VS2005 Team System will be localized, however. I'll put it on the list to discuss localizing the free version. This work item wouldn't be scheduled until the version of the .NET Framework that follows v2.0 (which is currently being finalized). ...Show All
