jcz1's Q&A profile
Visual C++ Is the /GS switch working as expected in Beta 2?
Something appears a little broken in VS 2005 Beta 2. The code below will produce the expected buffer overrun dialog box when compiled retail in VS 2003 but does not in VS 2005 unless I set optimization to /Od. void causeAnOverrun( _TCHAR *badName ) { _TCHAR myNameBuffer[5] = {0}; _tcscpy( myNameBuffer, badName ); } int _tmain( int argc, _TCHAR* argv[]) { _TCHAR *name = _T("Long Name"); causeAnOverrun( name ); _tprintf( _T("I got ...Show All
Visual Studio Express Editions Where's the "e-book"?
As one of my "Registration Benifits" listed, I see: E-book - Download an electronic version of MicrosoftR Visual C#R 2005 Express Edition: Build a Program Now! from Microsoft Press I've searched High and low -- Where do I find this hi, if you registered your product you can check this link https://connect.microsoft.com/downloads/downloads.aspx SiteID=40 hope this helps ...Show All
.NET Development How to deliver message to client without client call with remoting?
I am developping a message reminding system.I want to send message to the client through client IP address initiatively.But I don't know how to make it.Please tell me how! jibotang , To send messages to your client, you need to open up a channel in your client for input. Depending on the type of channel you are using, there are diffrent ways this should be done. After you've opened up the incoming channel, y ...Show All
.NET Development Why do I get Parameter ? has no default value
Why do I get Parameter has no default value Here is part of the form_load event Why isn't Dim ID As Integer = 207 the default value My intention is to set ID's value to the selected value of a comboboxes' selected item. I'm trying to get this right first. dennist Dim ID As Integer = 207 Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLE ...Show All
Visual Basic still handling events after dispose
Hi, Say I have three forms: Main, Dialog1, and Dialog2. An object is declared in Main, and passed to both Dialog1 and Dialog2. Both Dialogs handle the same event on that object, but they are never running at the same time. Say I call ShowDialog() on Dialog1, then call Dispose(). Now I call ShowDialog() on Dialog2. The event is now being handled by both Dialog1 and Dialog2, even though I disposed Dialog1. Why is this What else can I do to unregi ...Show All
Visual Studio 2008 (Pre-release) Blog based on WPF - updated for Beta 2
http://www.valil.com/Valil.Blog/Valil.Blog.xbap I'm always impressionned by seeing your work Valentin :) Thank you very much ;) BTW, do you planned to share the source ...Show All
Visual Studio 2008 (Pre-release) Message queueing problem with January CTP
I have problem with message queuing. I wrote simple service and client that communicate through endpoint that works with netMsmqBinding. Exception occurs when client sends message to server, and error is: There was an error sending to the queue: No internal Message Queuing certificate exists for the user. I edited security on msmq, and also tried to create queue in runtime from service, but had no success. This is config of the service. ...Show All
Visual Studio Express Editions event handling
I m trying to work with c# event handling and this is my code: // void TextChanged1( object sender, EventArgs e) //text change event { foreach ( RichTextBox rtf in pbxContainer.Controls) { if (rtf.Height > 984) { rtf.Height = 984; rtf.Text = "HELLO!!!!" ; } } } // and my error is below: //creates a picturebox and a richtextbox from form load private void newRtfDocument( ...Show All
Visual Studio Team System Moving from one TFS to another
I've been running TFS and VSTS for one very large project, and it's been great, except for the fact that our server was a free workstation that really wasn't up to the task. So, we got a new server. Now, I need to move the project from the old server to the new server. It seems like there is no tool, which I'm OK with - if I need to do a lot of manual steps, that is fine. I was just hoping someone had done this, and could ...Show All
Windows Forms Default padding of TextBox control
Is it possible to change the default padding (internal spacing, in pixels) of the contents of a TextBox control I want some space (internal margins) around my text in the TextBox. The MSDN library says that this is a Protected Overridable ReadOnly Property. I doubt it, the Windows control doesn't support it. The property is new for .NET 2.0 and documented everywhere as "...not i ...Show All
Smart Device Development How can I tell if the user clicked the OK on a form
Hello, Is there a way to tell if the user clicked the "OK" of a form opposed to a button on the form that forced the close of them form, in vb.net I would like to disable the ability to click the "OK" button if possible. Thanks in advance. John What sort of form are you using If you're writing it, you can just remove the OK button. The form returns DialogResult.OK if the OK button ...Show All
Software Development for Windows Vista What is the purpose of RegisterAttached method?
I am having some problems with the RegisterAttached method. In the SDK documentation it is said "In certain cases you need an activity to register a property that can be used by other activities in a workflow. You register such a property, an attached property, by using the RegisterAttached method of the DependencyProperty class. An attached property is a type of a dependency property that other classes declare that can then be applie ...Show All
Windows Forms Added unbound grid rows are blank
Added unbound grid rows are blank I have a master-child relationship. The master are unbound controls, and the two children are grids. The column names and types I created in the columncollection. When I save the master, values automatically go into the grid columns and saved. They appear in the grid and are updated correctly to the database. If I add another row, it's values appear in the second row. However, the first row ...Show All
Windows Forms [C#]DataGridView howto sum cells
For example, in my grid cells, i write some numeric value: col1 col2 col3 col4 Total 1.5 5.5 6 7 How can i obtain the sum of that values in column "Total" considering that my rows and my column are generated at runtime ...Show All
Smart Device Development rotating my app
Hi In the designer I've rotated my form 90 degrees - but when I run in on my iPaq - it's not rotated - what do I need to do thanks Bruce You will have to rotate the screen on the device. On the device go to Settings - Screen and select landscape mode either right or left handed. ...Show All
