Software Development Network Logo
  • .NET Development
  • Visual Studio
  • Game Technologies
  • IE Development
  • Audio and Video
  • Windows Forms
  • Microsoft ISV
  • Visual C#
  • SharePoint Products
  • Windows Vista
  • Visual FoxPro
  • Visual C++
  • Smart Devicet
  • VS Team System
  • Visual Basic

Software Development Network >> Zhou Yong's Q&A profile

Zhou Yong

Member List

Michael_317
enric vives
DarthCoder
SOTY_Programmer
djehmli
HowardRichards
kbenny
jdwilliams543
Matt47517
Hamann Heinz
Liam64
Whoisit
Thomas LEBRUN
hidme
Ather.
Terry Smith
Jademobile
Link9228
pnp
CodeButcher
Only Title

Zhou Yong's Q&A profile

  • Visual Basic Moving a form

    Hi there, Currently in my application I have made it so I have no form border. I have put in my application.exit and minimize code but I'm wondering what the code is to move the form around ONLY when pressing down on a button/control. Thanks, AliQ Hi, I've been playing with this which moves the FORM to 250,250 on button1 being clicked. The second Sub will move the FORM around when you click a mouse button on it, but i'm still working on doing this while a button is down. Me.DragDrop may be the way to go ahead with this, i'm not sure. Regards, S_DS Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim mouseEventArg As ...Show All

  • Visual Studio Tools for Office Microsoft.Office.Tools.Word.XMLNode.ContextLeave: Problems with selections?

    Hi all I have a small problem. I'll try to explain it the best I can. The situation is this: I have an XMLNode in a table cell in Word. On the ContextLeave event for this node, I investigate the text in the node, and perhaps changes the text. In my case, to help user write e.g. N/A, by just typing 'na'. But... When the user tabs out of this cell, the selection get's out of sync. Let me try to explain. Normal behaviour when tabbin' from cell to cell in a Word table is that the text in the cell you enter is selected. When I change the text in the previous cell on ContextLeave the selection is off by the number of characters the new text is different than the original. It's a bit hard to explain. My guess is that Word when i pr ...Show All

  • Visual C# Formatting Textboxes

    Hi there. I have several textboxes on a Windows form that are currency values. Is there an easy way to format them as such Meaning I want $1,200.00 instead of 1200. Thanks, Mike you maybe better using a MaskedTextBox to do your custom formatting. Here is the doc for it with some samples: http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx I hope it gets you started However with limited experience personally with the maskedtextbox, still not sure it would hit your area. Perhaps you would need to do some validation on the input whilst they type to only accept certain characters and then finally add say, the currency symbol. I'll investigate also... ...Show All

  • .NET Development Registry access problem

    I would like to write some application information to the registry 'HKEY_LOCAL_MACHINE\Software'. There is no problem to do that by a Windows application, but when I try to do the same thing with my Windows SERVICE, I get the message; "Access to the registry key 'HKEY_LOCAL_MACHINE\Software' is denied." Why is that and how to solve the problem Thanx.... Apparently the user account under which your service runs does not have the permission to read the key in the registry. Either give the account the appropiate permission or change the service to run under an account that does have the permissions. ...Show All

  • Windows Forms Help with listview

    How would I go about getting my listview like this http://channellist.aresunlimited.net/listview.png Hi, have you tried searching for ListView OwnerDraw as I think you will find the answer here. Some other info on this here: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.ownerdraw.aspx ...Show All

  • Visual C++ Is there any good tool which can easily get the call graph of one project of vc? Please give the steps to do that.

    Is there any good tool which can easily get the call graph of one project of vc Please give the steps to do that. I appreciate your help. There are no ones that I am aware of. You suggested some that might help. Also, try posting on http://msdn.microsoft.com/newsgroups in case others know of such tools. Thanks, Ayman Shoukry VC++ Team ...Show All

  • SQL Server Reliability? [What the heck?]

    One of the MVPs prised SSIS for being on the enterprise-level. I tend to disagree. Here we have - enterprise system for one of blue chips. The package is invoked every minute through SQL Agent. It runs three days or three weeks and then reports: Executed as user: EUR\user04. ...9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 13:11:01 Error: 2007-01-22 13:11:08.14 Code: 0xC0014005 Source: Description: The connection type "OLEDB" specified for connection manager "Reporting" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connecti ...Show All

  • Visual Studio Team System Consistent rules across multiple projects in VS2K5 solution

    Hi there, This might seem like a very simple question and I apologize if I've missed it, but how do you apply the same Code Analysis template across multiple projects in the same solution Sure I can go to each project, and set the properties manually, but is there a way to set it at the solution level For example I wish to disable warnings associated with strong names across a solution with about 20 projects in it. Manually this is quite time consuming. Cheers Hi Jeffery, Thanks for this. TFS isn't yet an approved product where I'm working (the wheels of big companies sometimes turn slowly), but it's handy to know that it's there for future reference. I'll look at your other suggestion as i ...Show All

  • SQL Server What's the best way to deploy CLR Extensions to SQL Express?

    The project I'm working on has been developed using SQL 2005 Developer Edition and VS 2005, so up until now VS has been handling the task of deploying my C# managed code stored procedures to the database. Now it's time to deploy a beta of the product, and we want to use SQL 2005 Express, and take advantage of it's new XCOPY deployment mode which in turn means we can also take full advantage of Click Once for our software updates. The idea here is that we can deploy new or updated stored procedures in a managed DLL using Click Once, making updates presumably more simple and robust. So the steps we need to complete at runtime are: 1. Dynamically load and access the database MDF file using SQL Express (done). 2. Enable CLR Integra ...Show All

  • Visual Studio Team System Display a static text on Work Item Form

    Hi! I want to put a static text (e.g. help text) on a work item form. Is this possible, and how do I do it Regards, /Tomas Scott Yes, almost. I did not quite get the last variant, where do I write my text I want to put a text on the form that is not connected to a field, kind of a label without a field... Actually I have moved the field Finish Date from the tab Details to the top pane and wanted to have it on Details av well together with Start Date. However you could not put the same field on the form twice so I thougt I should put a text like "Finish Date can be seen above, right next to State" where Finish Date used to be... Thanks for your quick answer, I hope you could h ...Show All

  • Windows Forms Open close save

    Hi i realy need help i want to create a alternative to word but my save featcher dose not save the things in my text box how do i set it to save the text box please help me Giggig guy Hi, You're right, JWesley, but if it's an altenative to MS Word, you'd also need a dialogue box too. I'm sure that you know, Giggig guy, how to create a dialogue box, but if you don't, I've stated it below: Firstly, add this in your "Save" or "Save As" button code: DialogResult buttonClicked = saveFileDialog.ShowDialog(); if (buttonClicked.Equals( DialogResult .OK)) { // Your block of code will go here. } I hope that this helps, and I hope you succeed making your application. Eragon. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. BoundingBox

    Thanks to XNA, my fragile vision of 3D space is completely mangled. This -1 forward thing has really whacked my ability to determine coords in 3D space. I'm making a bounding box for a ray test, and I want my minimum to be (-1, -1, -1) and max to be (1, 1, 1). In MDX 1.0, that would have been fine. Do I have to reverse the z coords for this to work in XNA I have no idea what you are talking about. XNA has a BoundingBox structure and a Ray structure, and the Ray structure has an Intersect method to check for an intersection with a BoundingBox. Reference: http://msdn2.microsoft.com/en-us/microsoft.xna.framework.ray.intersects.aspx ...Show All

  • Visual C# C# - How powerful?

    I know C# is sort of like C++, but is it as powerful as C++ I agree with most of the arguments on here. I started with Java because it was really easy to learn, and fun! But seeing the power of C# and the growing number of developers and the syntax similarity to Java, I decided to switch over. I'm glad I did, I LOVE C#, it really is fun once you get in it. The .NET 2.0 classes are great to work with. Now that i've had some time in C# I'm trying to get a grasp on C++. I like the way Jesse Liberty explains things so I bought Sam's Teach Yourself C++ in 21 Days.. maybe not the best, and it has a lot of repetitive info, but i'm getting the hang of it. So far.. I still think C# is my #1, but who knows later ...Show All

  • SQL Server Stored Procedure that return Dataset(Select Query)

    Hi all, I have a SP that return a dataset and I was thinking to execute that SP inside of other SP then catch the dataset to put into a variable or put into a temp table. What I know is you can not use recordset on output and input parameter in SP correct me if im wrong. I'm just wondering if I there is a work around in this scenario. Thanks and have a nice day to all. Teo: If I understand you correctly (1) you have a pre-existing stored procedure that you want to use as an internal component of another stored procedure. If your first stored procedure returns a record set then you can use a temp table inside of your new stored procedure to capture the output of your existing stored procedure ...Show All

  • Visual Studio Express Editions the break operation

    hello there, am trying to figure out how can i operate my brake command inside a nested loop, but i like that the break would also affect the outer loop. her is some example of waht am asking: private void button1_Click( object sender, EventArgs e) { //loop india for ( int i = 0; i < 30; i++) { //loop juliet for ( int j = 0; j < 30; j++) { if (j == 3 & i == 0) { // how can it be applied both on juliet and india break ; } //MessageBox.Show("I is now equle " + i.ToString() + " J is now equle " + j.ToString()); } any advise would be apriciated. thanks in advance Bad news… break only breaks you out of the nearest loop and ...Show All

©2008 Software Development Network