Brades's Q&A profile
Visual Studio 2008 (Pre-release) MouseEnter + grid row + animation problem
Hello. I've a little problem and may be you can help me. I've a grid and in the last row there's a part of an Image, when the mouse is over than the Image goes up, like a bar that appear and disappear. The problem is that the mouse enter and leave events only occurs in the small grid part and not in all the image taht I move. So the quiestion is: Is there any form to set the grid row height by a trigger : I have a trigger like this to the animation, can I attach some code to set the grid height < EventTrigger RoutedEvent = " Mouse.MouseLeave " SourceName = " foot_Bar " > < BeginStoryboard Storyboard = " {StaticResource Anim_Foot_Bar_Close} " /> </ EventTrigger > I ...Show All
Visual Studio 2008 (Pre-release) apply Aero style upon custom class button
when i create a new custom button control like the following public class MyButton : Button { } and i am using the Aero theme like the following public partial class App : System.Windows. Application { public App() { Uri uri = new Uri ( "PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component\\themes/aero.normalcolor.xaml" , UriKind .Relative); this .Resources.MergedDictionaries.Add( Application .LoadComponent(uri) as ResourceDictionary ); } } and when i used my custom control , the Aero style dosn't applied on the control < Window x:Class = " WindowsApplication1.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/p ...Show All
Visual C++ Can you tell me how to convert long to BYTE?
when i upgrading vc6.0 project to vc2005 project it has the following warning: Warning 233 warning C4244: '=' : conversion from 'long' to 'BYTE', possible loss of data e:\ooltip.cpp 1884 the code is as follows: BYTE *iDst ,*posDst; iDst =255*(i%2); //hard Can you tell me how to convert long to BYTE I appreciate your help. The compiler isn't smart enough to know this expression can't overflow. Just help it along: iDst[ i ] = (BYTE)(255 * (i % 2)); or less efficient but more readable: iDst[ i ] = (i % 2) 255 : 0; ...Show All
SQL Server Job Fails on Linked Server
I've got a job running on a SQL2005 box (server07) that modifies data on a SQL2000 box (server05). The databases on the 2005 were imported from an older box running SQL2000. The step that is failing is: update server05.xtender.sysop.ae_rf4 set field3 = sname from server05.xtender.sysop.ae_rf4 x inner join allscholarships..studentsindb_table s on x.field1 = s.ssn where x.field3 is null or len(field3) = 0 The history shows this for the failed step: Message Executed as user: Domain\Administrator. Access to the remote server is denied because the current security context is not trusted. [SQLSTATE 42000] (Error 15274)Unable to open Step output file. The step failed. Domain\Administrator is a sysadmin on both boxes. This job had been running ...Show All
Visual C# Searching in a text file
Hello I have a text file with a list of numbers and names.For example 345623 John 234800 Jim 298756 Maria with about 40000 such entries. I would like to search the text file for a specific number and display the associated name. How can i search fast the text file I dont want to use any kind of collection if possible. regards. This should do the job: string filename = // ... TextReader r = new FileInfo (filename).OpenText(); try { string line; while ((line = r.ReadLine()) != null ) { string [] row = line.Split( ' ' ); if (row[0] == "012345" ) { Console .WriteLine(row[1]); break ; ...Show All
Visual Studio Which APIs should be used with VSTS to do web test automation ?
Hi, IWhich APIs will be useful for web test automation using VSTS Please write if there is some useful document for using VSTS for webtest automation. Regards, tambe Hi tambe, Please try the VS extensibility forum at: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=57&SiteID=1 which is more focused on the type of question you're asking. thanks, -Victor. ...Show All
Visual Studio Team System Team Build fails
Hi, we have a problem with team builds. I think we already came to the ground of the problem, but we don’t know how to fix the problem. Our desktop build works fine. But from Team Build we get: Solution: , Project: ClientSideComponents.sln, Configuration: Release, Any CPU D:\DataSwiss\DotNet\Deploy\SC\SC\mz workspace\Sources\ClientSideSolution\ClientSideComponents\ClientSideComponents.sln(0,0): error MSB3202: Die Projektdatei ..\..\..\..\Anwendungsdaten\Microsoft\SCV10\ClientSideSolution\ClientSideForms\rmc\rmc_block_src\rmc_block\rmc_block.vbproj was not found. We think the core of the problem is our Solution-file. That’s a part of solution file which works fine at team build compile time: Project("{F184B08F-C81C- ...Show All
Visual C++ Multiple Compilation
I have a class defined in a header, for example Node root;, but when I compile and link I recieve a link error, saying it has already been defined. To get rid of this I placed #pragma once at the top of the header, to no effect. I then replaced it with #ifndef DIRECTXSCENE #define DIRECTXSCENE 10 and then at the bottom: #endif This did nothing either. Any suggestions Mike For the actual class I have: class Node { public: Node(); } in the header, and then the actual code for Node::Node() in the cpp file. I did this so the class could be accessed by other cpp files. I also have in it an instance of the class Node, Node main. It is this that is causing the error ...Show All
Visual C# Character into bytes
Hi, I need help with turning a characters into ASCII bytes. Here is the code that I have worked on so far my problem is that I can't get to covert. using System; using System.Collections.Generic; using System.Text; namespace KyawPaineW4A1 { public class Crypto { public string getInput() { string getInput; Console .Write( "Please enter a single Character >" ); getInput = Console .ReadLine(); return getInput; } public char convertData( string input) { char convertData; char letter = char .Parse( Console .ReadLine()); convertData = letter; return convertData; } public void displayMessage( char letter) { ...Show All
SQL Server Free Tutorial Source with from A to Z examples
Hi I read alot of theoretical explanation of Notification Services. I need a source for examples that explain Notification Services from A to Z. Thank you. Bishoy Hi Bishoy - Here's a copy/paste from my reply to your newsgroup posting. I'd defiinitely suggest going through the walkthrough example included in BOL as a good starting point. Additionally, examining the other sample apps included in would be beneficial. Beyond that, Shyam Pather has a book on the subject that is really quite comprehensive. I've got one out there as well; mine is designed to get you up to speed on SQLNS very quickly. As for other resources, I haven't found anything specifically devoted to SQLNS, only a few article h ...Show All
Visual Basic Lesson 9: Databinding Data to User Interface Controls
I'm about to loose my mind...I've watched the video and created a test application by following the steps in the video and have the following code generated by draging the Registration table of the dataset onto the VB Form like they do in the video and also added a message box to show that the row actually got updated. Because I'm using details view I always get a 1 saying that a row was updated but when I restart the application there is nothing in the database. What am I doing wrong Please help!!!!!!!!! Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'TODO: This line of code loads data into the 'MembershipDataSet.Registration' table. You can move, or remove i ...Show All
SQL Server MSAccess 2003 Linked Tables to SQL Server 2005 Express not working
My customer has SQL Server Express 2005 installed with SP1. They also use Microsoft Access 2003. They would like to link to the SQL Server Express database thru Access and use Access to run queries. We can link SQL Server tables to Access just fine. The problem however is that every record shows #DELETED#. The number of rows in each table does correspond to the number of rows in the SQL Server Tables. Anyone have any ideas on how to resolve this Thanks -- Val If you don’t use an ADP project SQL Server won’t be able to keep track of the row location. If you add a primary key on the tables in Access this should work for you. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions How can I detect a Row Change event in DataGridView?
Visual Basic 2005 Express: When entering data into an SQL table DataGridView, is there any way to detect the event where the user clicks on the next row to add another record without clicking UPDATE for the row that he finished adding data to When adding customers to the table, when UPDATE is clicked the program assigns the customer number (First customer is "000001". Next customer is "000002", etc. CustomerNbr = Me .CustomerBindingSource.Count CustomerNbr = CustomerNbr.PadLeft(6, "0" ) But, if the user just clicks on the next row and adds another customer without first updating the last customer, the customer number does not get entered into the table. If I could detect the Row Change event, I c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Create an image with Direct3D
Hi.. I create some objects in my scene with using Direct3D. How can I convert this to an image Thanks OK that’s not that hard. Depending if you want to grab the image from the back or front buffer it’s a little bit different. First you have to create an off screen surface in the system memory pool. It need to be same size and format as your back and front buffer. If you want the front buffer you have to use GetFrontBufferData. The back buffer content can be copyed with GetBackBuffer and GetRenderTargetData. Next you can use D3DXSaveSurfaceToFile to save the surface. The last step is to release the system memory surface. ...Show All
Microsoft ISV Community Center Forums Autofilter criteria's
Hello everyone, This might be really simple but I couldn't find the answer for it.What I'm trying to achieve is that I need to find all the possible autofilter criteria's of a single Excel list field (Column) from VBA. I know I could just iterate over the column's cells and distnictly find the values and store them into an array, but I'd really be intrested to know if there is a property which already gives me that. thanks, Mohamed Hello, Something like the following is probably what you are looking for: A1 should have a header for the columns A2 downwards is your data. [code] Sub test() Range("A1").Select Selection.AutoFilter srchStr = "test5" Worksheets("Sheet1&q ...Show All
