yeos_lee's Q&A profile
Windows Live Developer Forums Where can i get the Windows Live ID SDK
Hi, Do you know where can i get the Windows Live ID SDK Windows Live ID = http://account.live.com . Passport = http://accountservices.msn.com ...Show All
Windows Forms Generic User Controls?
After working on a windows forms project I realized many of my screens do very similar tasks on completely different types of data. I then decided to create a generics based user control to make reuse of all of this common work based on the Type of object the specific instance of the control is using. After I build my control I realized I no longer get any design-time support for my class. It doesn't even show up as a user control available in the tool bar. This makes sense, since an instance of a generic type needs the type defined in order for it to be rendered on the screen, however is there any way I can add this generic type to my windows form and specify its type and then be able to use the design-time support of modifying this co ...Show All
Visual C++ Error when trying to destroy a group of items in a vector...
I am getting the error: error C2248: 'std::vector<_Ty>::_Destroy' : cannot access protected member declared in class 'std::vector<_Ty>' This occurs on the second last line of code here. I have put the definitions of the variables that are not in this function so that you can see what types they are. The aim of this code is to delete a group of items in the vector. Is there perhaps some better way of doing it so that I don't have to get the pointers of the start and end indexes of where I want deleted. Thanks in advance... :-D PeteJM01 wrote: // get the pointers to the start and end indexes beepr *start, *end; *start = beep[startindex]; *end = beep[endindex]; beep._Destroy(start, end); ...Show All
Windows Forms How do I animate a button click from code?
This code preforms the button2 operation with button2.PerformClick(), but the user has no indication that button 2 has been clicked. How do I get button2 to go down and back up public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { Console.WriteLine("button 2 was clicked."); } private void button1_Click(object sender, EventArgs e) { button2.PerformClick(); } } Thank you B14 The only way I know to do this would be to send the WM_LBUTTONDOWN and WM_LBUTTONUP messages to the button using the Win32 API. WM_LBUTTONDOWN WM_LBUTTONUP SendMessage ...Show All
Windows Forms Form size - odd behaviour
I have a number of forms (I'm using VB by the way) that have identical layouts, a certain size with a centered Rich Text Box and a Back button - very simple. However, one of the forms, always displays larger than the others despite having the same Size properties. In the designer, it looks fine. There is no code whatsoever that could be changing the size - the only line of code added is the Me.close() in the Button's click event. There are no other hidden controls anywhere that are causing it to appear larger. It is not set to be maximised, in fact, apart from the specific text contained and the form name, it is identical to all the others. Yet somehow, it appears about 25% wider and about 33% taller than it should! The content ...Show All
Visual Studio Express Editions Changing a text feild value
When a user clicking a button, how do i make it so that a certain value is added to a text feild System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { textBox1->Text += "howdy"; } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BackBufferHeight and BackBufferWidth
The properties BackBufferHeight and BackBufferWidth have the value 0 until I set theses properties to another value and call graphics.ApplyChanges(). Do I have to set values at the beginning of my application. Or should I determinate the size of the backbuffer using Window.ClientHeight and Window.ClientWidth-Methods But don't these values simply default to something when you first start the application, if you haven't explicitly set them I don't recall setting them explicitly when I first started coding with XNA and I never got a zero sized screen. ZMan what exactly makes this a bug ...Show All
SQL Server How to add a calcualted field in Matrix???
Hello.. I would like to know how this can be done in RS (SQL2000)... In the dataset I have... sales, company, and year. What I want to display is such... 2005 2006 Growth companyA $1,000,000 $500,000 100% companyB $50,000 $100,000 -50% How do I add a column in a Matrix to calculate the growth based on the sales Thanks! -Joseph ...Show All
Windows Forms Arrow Keys on a User Control in .Net 2.0
If I have a form and want to trap keyss, I can use the KeyDown event to trap and detect which keys are used. This includes the arrow keys. However when I want to do the same with a UserControl placed on the form, all keys are detected except the arrow keys. 1.Why do the arrow keys not generate the even on a UserControl 2 Is there a way to make arrow keys generate an a KeyDown or KeyPress event on a UserControl 3. If not, what event if any is generated by the arrow keys on a USerControl Thanks Steve Further Info I've overriden the OnMouseDown event in my control and when this occurs I grab the focus using this.Focus(); If I click with the mouse into my control after an ALT TAB ...Show All
Visual Basic EMAIL
I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's I kept it like this SmtpClient.Host = "localhost" and it is still telli ...Show All
Visual Basic VB6 documentation
I am a licensed, registered user of Visual Studio 6 Enterprise Edition (.Net also, but that's another story). I had to reinstall the product because of hardware issues, but I no longer have a functional MSDN/Help Files. Is there some way I can acquire the CD for Visual Basic 6 or download it I understand that it can be no more recent than the Oct 2001 version. Try asking this in one of the vb6 newsgroups . This forum is for vb.net questions ...Show All
Community Chat Is the new java goin to nail down .net ???
hello guys , One of my frnds told me that the new java is goin to nail down .net.Is this true Regards jr Web Developer www.iitjobs.com magicalclick wrote: I don't know how ulgy Java can be, but .Net is extremely beautiful. Try the MS Expression Blend Beta2. OMG, they can make some very very fancy GUI. XAML seems to be a lot easier to define a GUI. A lot of features are build-in. Like Docking, Stack Docking, Grid Panel, and many other cool stuff. You don't need a 3rd party library to make a decent GUI. Of course, you can do better using 3rd party editor =) or 1st party editor like Expression Blend. And it separates logic code and visual code very well. It may feel weird at first, but it ...Show All
SQL Server Verifying MergeSynchronizationAgent no longer requires STA threading model
I've seen a few posts in the MSDN documentation (see links below) stating that the MergeSynchronizationAgent no longer requires the STA threading model in SQL Server 2005 SP1. However, I'm still receiving the following exception message in my synchronization code (where it attempts to access the SynchronizationAgent property): The MergeSynchronizationAgent class must be instantiated on a Single-Threaded Apartment (STA) thread. I have Service Pack 1 for SQL Server 2005 installed on both my server as well as my local client (the client is running SQL Server 2005 Express). How can I verify the correct files are there (e.g. are the some specific date/time values for the RMO/COM objects Here's the list of MSDN links mentioned above ...Show All
SQL Server MDX query help !
Hi, I have the following query : WITH // get "5 period average sales" MEMBER [Measures].[Sales_5Pavg] AS 'AVG({[Timeofday].[Dt].CURRENTMEMBER.LAG(3):[Timeofday].[Dt].CURRENTMEMBER},[Measures].[Sales])',FORMAT_STRING="#,##0.000" // get the % which "Latest Sales > (Average of 5 periods Sales) " MEMBER [Measures].[%up] AS '([Measures].[Sales]-[Measures].[Sales_5Pavg])/[Measures].[C_5Pavg]',FORMAT_STRING="PERCENT" SELECT { [Measures].[Sales] , [Measures].[Sales_5Pavg] , [Measures].[%up] } on 0, ORDER ( FILTER ( [Product].[Product].CHILDREN, ([Measures].[Sales] > [Measures].[Sales_5Pavg]) ), [%up], BDESC ) on 1 from SalesCube where ( [Timeofda ...Show All
Smart Device Development Installation of NetCFv2.wce5.amr4i.cab was unsuccessful
I am using palm treo 750. My client has the same. I could drop cab file and install successfully, but when my client tried the same on an cab file he is getting error, for cf 2 example: Installation of NetCFv2.wce5.amr4i.cab was unsuccessful Any thing blocking the cab install I don't see the same issue on my palm, may be i used to deploy from VS 2005 directly in the begining and then to try with cabs i uninstalled everything from device add/remove programs and tested by installing through only cab file which never gave me such error. Appreciate if you comment or suggest anything on this matter. Thanks. You're trying to install incorrect CAB. Use CAB with 'wm' (as in Windows Mobile) in the ...Show All
