Sarit Tamir's Q&A profile
Visual C# Calling c# assembly from Excel 2003
Hi everyone, I'm trying to write an assembly in c#, which I can then access from Excel. According to the documentation, this should be possible, as long as I run regasm on the compiled assembly. However, when I do this, I find that VBA (or VB6) can see my class, can see the enum, but cannot see or use any of the methods or properties. I thought maybe the parameterised constructor was at fault, and tried leaving this out, but still no luck. ...Show All
Visual Studio Team System Howto stop TeamBuild from deploying, if tests fail
Hi, in TFS B3r a TeamBuild gets deployed, even if tests fail. Since I am also using TB to deploy to our production environment, I would like to let it deploy only, when all tests pass. How can I achieve this thanks for the tip! I will try the OnError. If I'm correct I could set the value of a variable which I can check for in my custom-deploy target, right ...Show All
Windows Forms Dynamic generation of Datagrid template columns?
I would like to know the procedure to generate dynamic template column in vs2005. I would like to know the procedure to generate header template which has a button in it and an item template which has a check box into it. Prashanth, This forum is for questions specific to the tools in Visual Studio Team Edition for Software Developers. I'll move your thread to a WinForms forum where it can be better answered ...Show All
Visual Basic HScroll
In switching from VB6 to VB2005, the Scroll bars have apparently changed. The Scroll part works, so I can change a program parameter based on the position of the cursor of the Scrollbar (or using Mouse clicks). I then want to apply the new value, but only at the end of the Scrolling. There is no "MouseUp" available for the HScroll. The "Mouse hover" does work, but it causes unwanted events. Is there a way (after dragging the ...Show All
Windows Forms Windows Application Deployment
Hi Windows application developers :) i'm web developer guy, i just wondering if i can run a.net window application without .net framework,, mmmm for sure not without framwork ( sure we need the framework, mscorlib.dll, system.dll ...etc ) in other word ...Show All
.NET Development Convert an int in string(hexaformat)
In Visual C# I whish convert an int to a string in hexa format I mean: int test = 454 how convert this int to string showing : 01C6 ( in a textBox for example) -------------------- like in C char str[10]; int test = 454; sprintf(str,"%04X",test); Text1.Text = string.Format("{0:X}",454); Happy programming ...Show All
Windows Forms TreeView Selection
How to force treeNode selection from a treeView treeNode mynode = mytreeView.selectedNode; //some other code myTreeView.selectedNode =myNode ; this code dosn't work I just tried this and it works fine. When you do are you sure that another control doesn't have the focus If another control does have the focus, it appears that no node is selected, however if you giving focus to the TreeView show ...Show All
Visual C++ Winsock and that common external error
I've got the common "LNK2019: unresolved external symbol" error see below. socket.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function _wmain socket.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wmain These refer to the following code: #include "stdafx.h" #include <Winsock2.h> int _tmain( int argc, _TCHAR* argv[]) { WSADATA wsaData; ...Show All
Visual C# Using MS autoshapes
Is there a way to use the autoshape function provided in all MS Office programs like rectangles and connectors in a C# program I am trying to code What I would like the program to do is be able to click on a button (for rectangle) and then any where in my form, it draws a rectangle there. Then another button (for connector) and draw a connector between rectangles. Also, the rectancle would need to be moved around in the form. Any help will be ap ...Show All
Windows Forms Encoding problem
I have small windows app. that "spider" other pages, very simple but works just fine for what I need. The problem is that I always worked with pages with UTF-8 encoding, now I have to use it to work with different encoding and here is the problem: when I use it with pages that use Central European (ISO) or other encoding the "special characters" like o disappears :( here is a code : Dim strmReader As StreamReader = ...Show All
Visual Studio Express Editions Delegates & Event Handling
Here is what I am trying to do.. I am designing a general accounting program and it is set up with a MDI parent form with child forms... The child forms show Data Entries.. I want to be able to subscribe to an event so that when it is called all the child windows that are open will refresh their view.. Here is what I have: public delegate void RefreshView (); public partial class MainForm : Form { public ...Show All
SQL Server Script component and variable!!
Hi All, I have developed a simple package utilizing script component and variable. What I am trying to do is declare a variable in the parent package that can be change at run time to either 1 or 0. If 1 I want the package to succeed and branch off to run some child packages and if 0, then branch the other way and run another child package. In ether way, I want to be able to load one of the two child packages and not both. I I declare a va ...Show All
Windows Forms Button shortcuts disappear
Hi All, I have a Windows program written in C# using VS2003. The program has several dialog forms with 4, 5 buttons on each form. And I have an ampersant (&) infront of each character for the shortcut. (&Ok, &Cancel, i.e.). The weird thing is that the shortcuts (the underline character ' _') do not appear on the button until after I press the ALT key once. After the ALT is pressed once, the shortcuts will appear on each but ...Show All
SQL Server Text Qualifier {"} Not Working
I have installed Standard SQL 2005. I have a problem to import text file in db because of text qualifier {"} not working. Does anyone have the same problem Is it a problem in my installation Thanks for ant comments. Jian Try running the following line first: SET QUOTED_IDENTIFIER OFF Have a look at the following for details: http://msdn2.microsoft.com/en-US/library/ms174393(SQL.90).aspx ...Show All
.NET Development xsd.exe generated code gets error on deserialize
I used xsd.exe on my schema to generate classes for me to deserialize an xml file to. My schema imports the open gml schemas and I put them both into xsd to make the inheritance work. It seemed to work fine but when I run the Deserialize, I get the following error: (Following are the schema fragments and generated code). Is there a problem with xsd There was an error reflecting type 'GML.DirectPositionType'. ---> System.InvalidOpera ...Show All
