Shijun's Q&A profile
Visual Studio 2008 (Pre-release) Unrecognized attribute 'type'. Note that attribute names are case-sensitive.
I have built it successfully ,but run it ,it will occur some errors,error message is: "Unrecognized attribute 'type'. Note that attribute names are case-sensitive." Below is the source code, Thanks a lot !! using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; //Define a Service Contract [ServiceContract(Name = "HelloWorld")] interface HelloWorld { [OperationContract] string sayHello(string sName); } class HelloWorldImp1 : HelloWorld { #region HelloWorld Members public string sayHello(string sName) ...Show All
Windows Forms Some labels cut off at 2/3 height on some computers
Hi there, We're developing a windows app. Amongst other things, we're displaying two labels on a form. Another dev created these, and set the height of the labels to 13px. The forms display fine on his computer, but on my laptop only the top two thirds of the text is shown, and the bottom third is invisible. When I set the label height to 19px, I can see the entire label. My question is why would this be different on his computer and mine It's very frustrating. My laptop is also reasonably new (Acer Ferrari 4005 if it makes any difference) and I have experience this problem in another couple of apps I use, that ...Show All
Visual C# Runtime Button_Click event
Ok. I have created a button at runtime, the only problem is, I need it to have a click event. How do I go about doing that I tried your code above by creating a new Windows Application, adding a progress bar and a few labels to it, and creating a new timer. The code does what I expected it to; the progress bar inches forward based on the tick event. When the progress bar is full, it disappears along with a few labels and a button appears. Clicking on the button removes the remaining labels. What is the problem that you're having with it Thanks, Anson Horton [ansonh@microsoft.com] Visual C# IDE PM ...Show All
Visual C++ Cannot register my OCX with VS.Net 2005
Hello, I have an OCX that was originally written in Visual C++ 6. After upgrading to VS.Net 2003 everything worked fine and I was able to register my OCX. Recently, I tried to upgrade to VS.Net 2005 but had a lot of trouble registering my OCX. I managed to fix many problems related to the OCX registration but I ended up with the following situation: If I compile in "Debug" mode, the compile succeeds and the OCX gets registered (I can see this in the registry). However, when I try to test the OCX using ActiveX Control Test Container I get a debug assertion in File: f:\rtm\vctools\vc7libs\ship\atlmfc\include\afxwin1.inl Lin ...Show All
Windows Forms TaskVision VB.NET
YES! After a full week of dedicated work, I have ported every single line of this application to VB.NET! jc, what a butload of work. Soon as I can actually verify that all is working like it does in the C# version. I'll be happy to post my source here to anyone who is interested. I have learned a lot porting it over, and I hope you will& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to detect a 3d sub mesh where the mouse is on
I'm trying to model a application where a 3d object is loaded from a .x file and I need to get the user input specifying which part of the object the user clicked on. something like image map in 2d..... I need it in a 3d object (where it can be rotated...etc) does anyone have ideas how to map between 3d sub meshes and get on which sub msh the user clicked on Thanks in advance Yes pretty much, though in a 3rd person shooter you have to take into account the position of walls etc, to make sure you didn't succesfully shoot someone behind an object. Also using the screen coordinates is only useful for th ...Show All
Windows Forms Messaging in Windows forms
Hi there all! I'm a newbie to this forum, my first question is I'm building a windows app where I want the user to be able to fill out a form and click a button and have the forms contents saved on sql server and instantly received by any other user logged into the same app. Similar to an alert message. Any ideas on the best wa ...Show All
Visual Basic Displaying a file if hexadecimal format.
I am a beginner at BASIC and I am using Visual Basic 2005 Express. This is what I am trying to do: I want to open a file, the file can be any format or size. I want to open it kind of like a hex editor would, except I want to be able to read the values of certain addresses in decimal format. Here is an example: I have 3 textbox controls: txt1,txt2,txt3. When I open the file I want to take three values from it. The first value is from address 10 and I want it to be 8-bits. The second value is from address 14 and I want it to be 16-bits. The third value is from address 26 and I want it to be 32-bits. Value 1 will go in txt1, value ...Show All
SQL Server How to Create a Sequence Generator number in SSIS
Hi, I got 5000 rows in source and when i am sending the data to destination it has to create a sequence generator number for each row. Can any one help me which transformation do i need to take for doing this in SSIS. Row Number Transformation ( http://www.sqlis.com/default.aspx 93 ) ...Show All
Visual Studio Crystal Reports Deployment in VS 2005 Using Setup Kit
Having followed the instructions in "Thanh T. To."'s post (thanks), I am now receiving a warning about the lack of a "homesite" for Crystal Reports. It appears that the prerequisites allow me to download the (presumably latest) version of the Crystal Reports redist from the vendor's site -- except that the vendor's site is apparently blank right now. Since I can also manually enter a site, does anyone know which site I should use so my setup kit users will download the latest version of Crystal Reports 2.0 Or, does Crystal just not support this right now Could you provide a little more information What exactly ...Show All
.NET Development Could not find assembly version
Hello, Before I start I should say I'm a .Net novice so bear with me here. And please be as basic as you can in your response :) I'm trying to run one of the sample VB.Net solutions that is provided with the latest SQL Server 2005 CTP. When I attempt to build it I get the following error: "Namespace or type specified in the project-level Imports 'System.Data' cannot be found. Make sure the namespace or type is defined and it doesn't contain other aliases" Also the following warnings: "Could not resolve this reference. Could not locate the assembly "System, Version=2.0.3600.0, Culture-neutral, PublicKeyToken=b77a5c561934e089". Check to make s ...Show All
Visual Studio 2008 (Pre-release) <Enter> as Tab
How can I tab to next control with focus when I push <Enter> key . also, can i do this in markup thanks. This is how you can listen to a keystroke on a control... I'm not sure how to "tab" from code. I'll ask somebody to fill in the details on that one... Page1.xaml: <TextBox PreviewKeyDown="doPKD" Name="TextBox1" /> Page1.xaml.cs private void doPKD(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) TextBox1.Text = "enter"; //note: this isn't doing the tab yet... ...Show All
Visual Studio Team System Web test fails due to the RequiredAttribute value validation rule
Hi , In response of my web test request I get the following:- <td class="Simple"> <input name="container:Submission:contact:LastName" type="text" id="container_Sub_contact_LName" tabindex="9" class="cls1" NAME="LastName" label="LastNameLbl" /> </td> For this I have added a RequiredAttribute value validation rule as:- Tag name- input Attribute name-name Expected value-container:Submission:contact:LastName Match attribute name-type Match attribute value-text Ignorecase- False The test fails due to the above validation.As I am us ...Show All
Windows Forms ClickOnce Deployment and DMZ
I am getting the below error when deploying my application from outside our Company firewall. We have a DMZ setup that will prompt the user for a username and password and then rout the URL to the actual ClickOnce publish.htm. When I run this from outside of the company network I get the below error, can anybody please help The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string} Property: [VersionNT] = 5.1.2 {version} Running checks for package '.NET Framework 2.0', phase BuildList Running external check with command line "C:\DOCUME~ ...Show All
Visual Basic C# or VB ?
other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax Hi Ever since .NET arrived this question has stirred emotions between those developing in VB and those developing in C# (needlsessly so in my opinion). You often find the usual ramblings that C# is better than VB which I guess stems from when VB classic was an interpreted language against C++ which was a compiled language. Prior to the release of VS 2005 there were things that you could do in C# that you couldn't do in VB such as operator overloading, XML comments (although this can be achieved using third party ...Show All
