hfrmobile's Q&A profile
Visual C++ Using Visual Styles in VC++ 6
Can anybody give me a sample code for using visual styles in VC++ 6. I wanted to display texts using XP's font and style. Urgent. Hello Re: Using Visual Styles in VC++ 6 Such questions (on VC++ 6.0) are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Studio Express Editions Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
I have the following structure 2 combos, the 2nd dependant on the first - and when I change the first combo the pages refreshes with error Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Which i assume has something to do with the 2nd combo rebinding and breaking the binding of the FormView. Have seen this prob around but can find a solution.. Any ideas Nik < asp : FormView ID ="frm" runat ="server" DataSourceID ="SqlDataSource1" DefaultMode ="Edit" > < EditItemTemplate > < tr >< td > Level1 </ td >< td >< asp : DropDownList runat ="server" id ="cmbEntity" DataSourceID ="sqlLevel1" DataTextField ="Level1" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Meshes not rendering correctly
When I load meshes onto my form, they don't seem to render correctly. Like if I load the tiger.x mesh (in the sdk), it will only draw like half of his face. Then If I rotate it will only render some other parts. Does anybody know what I'm talking about and how to fix it It sounds like the mesh is being clipped against the near clipping plane, as David suggests. This may be caused by not setting a view matrix that locates the view a suficient distance from the mesh. Try something like this: Vector3 vCamera=new Vector3(0.0f,0.0f,-10.0f); Vector3 vLookAt=new Vector3(0.0f,0.0f,0.0f); Vector3 vUp=new Vector3(0.0f,1.0f,0.0f); Matrix mView=Matrix.LookAtLH(vCamera,vLookAt,vUp); device.Transform.View=mView; ...Show All
SQL Server Need help with a sp
Hello, I am writing a stored procedure that is supposed to get info out of a table. E.g TABLE FRUITS Id Value1 Value2 1 Apple Banana 1 Apple null 1 grape null 2 Plum Melon 2 Plum null 3 berry null As you see there are six items with three ids but different info. If I select * From fruits WHere id =1 I get three rows. 1 Apple Banana 1 Apple null 1 grape null But In this case I just want to return two rows, namely: 1 Apple Banana 1 grape null Thankful for any suggestions, preferably in codeexamples. Best Regards, L Hi Geert and ...Show All
Visual Studio Team System Unit tests not run when building ASP.NET site
Hey. I just created a team build for an ASP.NET site with unit tests. However, the tests are not run and I'm not sure where to begin looking. Could anyone help me out The BuildLog.txt states: Target CoreTest: Creating directory "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\..\Sources\..\TestResults". __________________________________________________ Project "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\TFSBuild.proj" is building "C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\TFSBuild.proj" (RunTestWithConfiguration target(s)): Target RunTestWithConfiguration: TestToolsTask MetadataFile="C:\DailyBuilds\Tove\ToveDailyBuild\BuildType\..\Sources\Ebutik\Ebutik.vsmdi" TestLists=& ...Show All
Visual Studio 2008 (Pre-release) It is too difficult to start a new WCF service
I am starting to get really frustrated. I have been using the an old CTP of .net 3.0 and been developing fine. It is nice and quick and simple 1. file->new web site 2. choose C# WCF website 3. hit compile. and all the WSDL etc. is auto generated 4. tell my client to add a new service reference Now that i've installed on the latest September CTP there are a thousand steps 1. file->new web site 2. choose C# WCF website 3. hit compile. and nothing is setup. 4. read a few websites about how to enable WSDL. 5. Realise that you then have to setup some endpoints 6. realise that none of it works 7. post on MSDN Any help would be great. I was half way through a project but can't continue any further until i can actually create a new serv ...Show All
Visual Studio Express Editions SendKeys in Visual Basic Express Edition 2005
Does anyone have any idea how to use sendkeys in vb express 2005 i try, but it says "SendKeys is a type and cannot be used as an expression" help me! i will be forever grateful... ...Show All
Smart Device Development SQLClient and Pocket PC 2003
Hi again!! I'm developing an application in Pocket PC 2003 to conect into a DB in SQL Server. Im using SQLClient class. when i create a conection string an instances a sqlconnection to connect to my DB it returns me an "SQLException: The source doesn't exists or cannot be accesed" or something like that. The case is that, I use that connection in so many others application and it's not possible it doesn't exist. I use the same Connection String in other application and works perfectly, Someone knows what can be My connection and the string Private sqlcon As SqlConnection Dim cs As String = "Data Source=1 0.0.1.0; Initial Catalog=Prueba;User Id=fadmin;Password=;" sqlcon = New SqlConnec ...Show All
Windows Forms Typed Dataset Generator is ignoring DateTimeMode on date columns!?
Hi everyone, Is anyone else experiencing this Create a new dataset with the Dataset Designer and just add a table with a DateTime column. Set the DateTimeMode to anything besides the default of UnspecifiedLocal, like Unspecified or Local. Click save to generate the designer file. Now the problem.. the DateTimeMode property on the column is not generated in the designer file at all. And at runtime the mode is the default -- UnspecifiedLocal. If I open the xsd in the xml editor it is correct and showing msdata:DateTimeMode="Unspecified" it's just not generating the line of code that sets the DateTimeMode. What gives Thanks in advance, -Beth Ok, I'll enter a bug but I don't think you un ...Show All
Windows Forms Updating an unbound DataGridView at Runtime
I am a beginner programmer, so please bear with me. Say you have a DataGridView. You dock it to a Window Form. You set some properties such as AllowUserToAddRows and AllowUserToDeleteRows. So far, so good. Now, according to MSDN, a DataGridView can be eighter bound to a Data source, or it can be used as is. If it's not bound, you simply add rows, fill them with data and it should work just fine. My problem is this. I build the solution, add a Setup project to it and then I deploy it ( that is, install it ) on my machine. Now, I open the application and start populating the rows with data. Everything is fine. I close the application. When I open it again, bingo! All the data is gone. There must be some king ...Show All
SQL Server How to justify text
Hi, How can I fully justify text against both left and right edges of text box in SSRS 2005 The full justify icon doesn't seem to work. Thanks. Alan Robert, Will it be implemented There is already an icon for it on format toolbar. Do you know of any third-party controls that would do it I already have a table column with the text and RTF codes.to populate the control. Thanks. Alan Alan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. UI Development with XNA?
I'm interested in building a "windows" user interface into my XNA game, however, I'm not finding a whole lot of tutorials or code samples on how best to do this. I want to draw a sprite on the screen, say one that mimics a window, and allow the user to drag it around the screen and resize it when they are on the borders. I've got the dragging feature working by simply polling the mouse coordinates inside the Update method and checking if it's within the bounds of my sprite's rectangle, but I'm not sure if this is a good method or not I figure this is something that has been done many times before so there is probably a "best practice", but I can't seem to find anything on it for XNA. I'm really just looking for confirm ...Show All
Visual Studio Express Editions Help with retrieving code
To make a long story short, I made a huge mistake that not only destroyed my main hard drive....It killed my backup hard drive that made me lose the entire code for a program I was working on. It's easily a few months worth of work. I do have the most recent version of the published code. Is there a way that I can retreive the code from that Please help. Thanks. Eric You may want to look into the .NET Reflector and Reflector.FileDisassembler . ...Show All
Community Chat Kyro KidSafe Browser (alpha)
Hello all, I am making a "KidSafe" browser for kids. Please download my program and post any noticed bugs,etc. It takes only minutes to set up. I am 10 years old, so who can make a browser for kids better than a kid Progress: Final will be started in January Thanks you everyone for your contributions and encouragement. *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. Beta Features: *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. *Talking Help guide *A new install program Updates in final version: *Button text replaced with graphics. *A game room with games, and fun KidSafe software (suc ...Show All
Visual Studio Team System WScript.Exec + tf get /all hangs?
I am having issues with TF GET using it under a WScript.Exec command. The get just seems to stop mid-retrevial. The code snipet I am using is below. It just seems to never finish. The TF executable just sits waiting for something it seems that I can't figure out. The command works fine without the script launching it. Any ideas as to what would cause it to just stop getting the files It also seems to always stop at the same spot. -Ed Abshire -- Code -- Sub GetTFSCode(workspace) Dim tfsExec wshFSO.CreateFolder "c:\source\tfsworkspace\" + workspace WScript.Echo "--- Getting latest " + workspace + " to " + wshShell.CurrentDirectory wshShell.CurrentDirectory = "c:\sour ...Show All
