GS80's Q&A profile
Visual Studio Express Editions Refresh Calculated TextBoxes on a Form?
I'm not sure if my Subject line properly describes my problem, but here it goes. I have a form with several textboxes that are used to enter data. One of the textboxes is bound to a table field that performs a calculation based on the data entered to other textboxes. For example: Textbox1 - The user enters the value '1' Textbox2 - The user enters the value '2' Textbox3 has the formula: Textbox1 + Textbox2 On my form, when the user enters '1' in the first textbox, then '2' in the second textbox, nothing appears in the third textbox. What code can I use so that when the user either enters data in the second textbox, or gives focus to the third textbox, or whatever, that runs the calculation and gives the result, in this case, '3' ...Show All
Windows Forms DesignerHosting C# Sample as VB Solution
On http://msdn.microsoft.com/msdnmag/issues/06/03/DesignerHosting/default.aspx is a C# Solution downloadable. Is the DesignerHosting Sample as VB Solution available Or how has converted it to VB In order to convert it to VB you've got two easy options. One is to take .NET Reflector and Reflector.FileDisassembler use them to load the compiled example and then output VB source code from it. Another way would be to use one of the many C# to VB.NET converters in their online or downloadable form. ...Show All
SQL Server There is no direct equivalent to Oracle's rownum or row id in SQL Server
hi, There is no direct equivalent to Oracle's rownum or row id in SQL Server there is any possiblity are alternate thing is exist then please reply regards santosh I want to add SQL SERVER i) Having uniqueidentifier datatype, which we need to add manually as ROWID uniqueidentifier NOT NULL DEFAULT newid() this is unique in the whole database as of GUID. II) Having timestamp datatype, which we need to add manually as ROWID timestamp in the first option the GUID remains constant, but in the second case the timestamp changed whenever the update command is executed for that row. ORACLE i) ORACLE dont need these things, it having Pseudo coloumn called ROWID. this is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Points
Hi everyone, I am working on my Direct3D project and I have question about drawing 3D points in Direct3D. I want to draw 3D points that have more than one pixel. Just like SetWidth() in Line class. Any hints would be appreciated. Hi Wessam, Thank you very much for your info. With SetWidth() in Line class, I can make lines thicker and these thickness is not change when I zoom in and out the screen. I want 3D points to be the same. Will the vertex shaders provide what I need thanks ...Show All
SQL Server Security Settings
I want some users to see some reports on RS, but not see other reports. Is this possible From what I can see, if you are a Browser role you can see ALL reports. Tell me this isn't so... Pete On any RS catalog item you can define the security for that item. If you give a user the Browser role on a report they will be able to see that report. You can map users to roles on a per item basis. There is not concept of a user being a Browser for all items in RS, only for each item as that item is configured. It is perfectly fine for a user to have Browser role on one folder but not on another, enabling them to see all the reports in that folder but not the later. Please see the following article for more c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scaling down a sprite seems to crop?
Here's what I've got: One sprite sheet texture (512x512) with an assortment of sprites on it. My sprites are generally 64x64 pixels wide and padded between to prevent filtering artifacts. So, the first sprite starts at (4, 4) and is 64x64 in size. ...Show All
Visual C# How to post to a new aspx page
Hi all, I had a log in screen where by I will validate the user name and password. Once the username and password is validated, I would like to post to a new page "test.aspx" May I know what is the method to use Thanks NpgsqlCommand command = new NpgsqlCommand ( "select UserName from employee where UserName = '" +UserName+ "' and Password = '" +Password+ "'" , conn); try { NpgsqlDataReader dr = command.ExecuteReader(); if (dr.Read()) { lblErrMsg.Text = "success" ; // how to redirect to a new page } else { lblErrMsg.Text = "failure" ; } } catch ( NpgsqlException NplSqlEx) { lblErrMsg.Text = NplSqlEx.Me ...Show All
Visual Studio Unmovable Controls in ASP / VS2005-Sp1
I am moving a project from VS2003 to VS2005. I created a new Web Site from scratch under 2005 and brought over the ASP pages etc from the 2003 solution. The Web Site runs fine under 2005 but I can not add any new controls to any of the pages. I can put a new control, i.e. textbox on the page but it can not be moved from the upper lefthand corner of the page. What magic property of the Web Site controls this Thanks Al Although this is not the correct forum to ask this question I can tell you that that's is one of the changes between VS.NET 2003 and VS 2005. http://www.mikepope.com/blog/DisplayBlog.aspx permalink=1367 ...Show All
Smart Device Development Get window handle from process id
Hi, does anybody know how to get a window handle by knowing its process id thanks for your help Hi, this is the api call i used [ DllImport ( "coredll" )] public static extern uint GetWindowThreadProcessId( IntPtr hwnd); but strangely returned IDs that doesn't match with any of the running processes!! even when i try to kill the processes using these strange ids using System.Diagnostics. Process .GetProcessById( the obtained id ).Kill(); i recieve and exception saying that this process is not running!!!! do you have any suggestions thanks alot ...Show All
Internet Explorer Development How can I track or detect the download/upload events of Internet Explorer?
I'm looking for ways to track the download/upload events of IExplorer. We currently can track Navigate, New, Close, and other events with our IEAddin, however it does not allow for the tracking of download/upload and possibly other provenance events. Please post if you know any ways to accomplish this task. Any suggestions or comments are welcomed. Thanks in advanced. ...Show All
Visual Studio Need to 'buy' Report Controls
Hi I've just started a new job. I used the report controls in my previous job, and my new employers have agreed to buy whatever software I require. Thing is, I'm not sure what I need! I had MSDN in the previous job, so I just installed all the Visual Studio and SQL stuff. I'm planning on using the report controls to design reports based on the existing SQL Server 2000, and some third party access databases. Which version of Visual Studio will get me the report controls Do I need some type of developer edition of SQL 2005 as well I tried asking the local MS vendor, but they weren't sure. Of course, I don't want to buy the wrong thing, and tell my new employers that I wasted their money! Any guidance appreciated Thanks ...Show All
SQL Server Error message
Hello, When I try to run a query on a server, I get the following error: "Cannot resolve collation conflict for equal to operation." The same query, but on another server works without any problems. Any idea how I can resolve this You are joining two different coallations which each other. To solve the collation conflict you will have to either change the collation on the server / database / table / or expression server you are using (whereas the latter is the quickfix for your problem. It has be to implemented whereever you are joining different collations: select ca.account_status, cs.code from customer as ca inner join v_customer_status as cs on ca.account_status = cs.descr ...Show All
Visual Studio 2008 (Pre-release) Please explain the difference between Orcas and VS 2005 beta 1
I am completely confused about what is going on with Visual Studio or even with .net 2.0. Is Orcas VS 2005 sp 1 When are we finally going to see fixes for the bugs in .net 2.0 (some of which I've personally reported on) Why are we seeing such a huge lag in between the release of .net 2.0 and a service pack Why is orcas released only as a virtual image Personally I find this to be useless in that I can not test anything in a real world scenario. Could someone please post a single point for information on the future of Visual Studio… i.e. what is coming out next, what is Orcas, what is in Orcas, what does the beta service pack 1 mean etc etc. The link below says that this is service pack ...Show All
.NET Development Drawing Graphs in .Net
Hi, I have a log table with me and also I have a database table containing the same log entries.For this I have already made windowsservicelog and also webservicelog applications. I need to create a simple Graph(in C#.Net) in which X-axis will show the time and the Y-axis will show the success or failure.....success will be on positive Y-axisand in green colour and Failure should be on negative Y-axis and in Red colour. Kindly help me with this. Here are a few GDI+ resources: Bob's GDI+ FAQ: http://www.bobpowell.net/gdiplus_faq.htm This is a pretty good one for beginners. http://www.dotnetonweb.com/8_SubCat_Graphics_and_GDIplus.html Some decent articles here as well. Scroll down for chart&graph exampl ...Show All
Audio and Video Development Playing H.264 files on Windows Media PLayer 11 on Vista
I am not sure if this is the right forum for this question. I would like to play a H.264 video file on Vista. I have installed PowerDVD 7.0 on the system. In XP, Windows Media PLayer 10 uses the PowerDVD to play the video file. On Vista Windows Media PLayer 11 shows an error message that the correct codec is not found, but still plays the video. But it does not seem to be using DirectX as I am not able to create a graph using Graphedit. I want to be able to play the H.264 through DirectX on Vista. Or is there any other way to do this Thanks, CACUSer Questions about WMP belong in the WMP newsgroup: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.pla ...Show All
