Garutyunyan's Q&A profile
Visual Studio Express Editions 8007007B failure when creating first application
The good person at my customer site who has to decide after the first of the year which edition of VS 2005 to buy (I'm urging the MSDN subscription route) wanted to play over the holidays so he could get a feel for it. He is running an up to date XP SP 2 system. He has had the same behavior with both VB Express and VS 2005 Standard Edition. When he tries to creat a new windows application he gets an 0x800700B (File name... syntax is incorrect) error after clicking on windows application. The project is created but the form is not. I cannot reproduce this in my environment with standard edition. He has done the limited thin ...Show All
SQL Server Displaying processing time in reports
Hi can i display processing time in reports developed using SQl Server reporting services (I do not mean Execution time) What i mean by processing time is that the time that is displayed at rightmost side on Google search result page , which is usually some fraction of second. Can i display such processing time on my reports If yes plz tell me hoe to do it ...Show All
Visual Studio 2008 (Pre-release) DLinq and null values and defaults
Is there any way to specify how DLinq handles null values - for example: [Table] public class Thing { string name; [Column] public string Name { get { return name; } set { name = value; } } } CREATE TABLE Thing ( Name NVARCHAR(120) NOT NULL CONSTRAINT DF_Thing_Name DEFAULT(N'No Name') ) ... results in an INSERT command that specifies NULL for [Name] when it would be helpful to indicate DEFAULT. Using stored procedures will handle it, but something like [Column(NullValueUpdate = NullValueUpdate.SetDefault)] would be handy... Thanks. Looking a bit further, it appears that ...Show All
.NET Development System.Threading.Monitor.Enter (under the hood)
What do the threads that are locked out do when they are locked out And does the Sleep call help get { if(dsUsers == null) { if(IsdsUsersLocked) System.Threading.Thread.Sleep(50); lock(UsersPadlock) { if(dsUsers == null) { IsdsUsersLocked = true; dsUsers = (3 sec call to the database server accross heavy network traffic); IsdsUsersLocked = false; } } } return dsUsers; } The sleep call appears to help when dealing with 100 or more threads but i don't know what really happends to the thread that are locked out. According to some thread states they say they are [sleepwaitjoin] when the sleep is on and [running] when t ...Show All
Visual C++ VS2003 to VS2005: locked files, cannot build
Hello, We have a large C++ product consisting of about 40 components (COM and otherwise) as projects in a single VS2003 solution. I am now trying to make it compile under VS2005. The problem is that VS2005 locks one of the generated TLB files and does not allow me to modify it, so I cannot build (or even "clean") this component and a large number of components that depend on it. Process Explorer shows that the file is held by "devenv.exe". The only way to "release" the locked file is to exit Visual Studio but this is no way to develop... I suspect intellisense but there may be a different reason. ...Show All
Visual C# SendKeys error
internal int i; private void timer1_Tick(object sender, EventArgs e) { i = this.textBox1.Text; SendKeys.Send(i); //send password i =i+1; //password +1 SendKeys.Send("{enter}"); SendKeys.Send("{enter}"); this.textBox2.Text = i; } ========================== //SendKeys.Send () function Must be string ,But I need to send (int) number ??? hi, first of all i variable is int type and textbox.text is string type so how can you do this i = this.textBox1.Text; doesn't this give you error , what you want to do exa ...Show All
Visual Studio Express Editions Can a number of RadioButtons be accessed with a for..next loop?
I am working with RadioButton1 thru RadioButton12. Can they be accessed with a for..next loop instead of 12 separate if..then..else statements Same Principle different collection: For each ctrl as control in Me . GroupBox1 . Controls ...Show All
SQL Server How to change data Dynamically in report services
Hi, Please help me. I created a report and works fine but I am wondering how to change data dynamically. For example I have different data base and want to run the same report in different places I can't go and change the report each time. Any suggestion please Thanks in advance. You should change the query so that instead of returning one column per day you "denormalize" it to return one day per row: Day Count ----- -------- Mon 2 Tue 2 Wed 4 ... In the report, you could then just group by the Day field (in a matrix), or use conditional aggregation if you choose a table ...Show All
Windows Forms Terrarium Help.
Hi, I need help. I am a newbe to terrarium and it looks interesting. But All what I can read on the internet concerning Terrarium looks a long time ago. No recent post I mean, or at the farm... or I look at the wrong place. (Where is everybody ) I see 10 peers, All LED's are green, but I never receive a creature from other peers. I can't introduce my own creature, I get a message "Terrarium is experience some server problems. Please try again later.". I connect to http://www.terrariumgame.net/Terrarium, it is the only server I know. Are their other servers ...Show All
Visual C# How are Delegates used?
Hi All, What is the purpose of delegate Can't we call the methods directly instead of assigning to the AddressOf (refer my example). Please tell me the real trime implementation of delegate. EX: Private Delegate Sub MyDelSub() Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim del As MyDelSub del = New MyDelSub( AddressOf DisplayMessage) del.Invoke() End Sub Private Sub DisplayMessage() MessageBox.Show("Delegate - Demo") End Sub Thanks & Regards, Sriram S Delegates are used to guarantee that any meth ...Show All
Windows Forms Simple Data Binding to a CheckBox Control
I must be missing something. I am writing an application in VB.NET and have been using the following code to bind textbox controls on my form to columns in my dataset (gdsBookList): txtBookName.DataBindings.Add("Text", gdsBookList.Tables(0), "Book_Name") I have a datagrid listing the records that is also bound to gdsBookList and as the user clicks a row the&nbs ...Show All
Visual Studio Express Editions partitial template specialization for template-class methodes
Hi there, I have a problem with partitial template specialization for template-class methodes. I would like to have two specialized methods for a template class with more than one template parameter. I tried it like this: template < typename T_Type , typename T_Precision > class ClassName { void method (); }; template < typename T_Type > void ClassName < T_Type , double >:: method () { //do something } template < typename T_Type > void ClassName < T_Type , float >:: method () { //do something } but only got the following ...Show All
SQL Server Checking that an object is not empty
Hi, Does anyone know the correct syntax to check the contents of an object variable. I want to do this as part of a constraint, TIA R Variables of type Object are not support in expressions - "The data type of variable "User::Variable" is not supported in an expression." ...Show All
Visual Studio Designer Issues
Hi Jon, We are glad you like the Class Designer. You can create a custom collection class that inherits from the collection class by doing the following: Go to class view. In the search control, type in the name of the base collection class you want to inherit from (make sure your project has a reference to the assembly containing the definition of the collection class). For example, ArrayList. You will see all the classes containing the string expression ArrayList. Drag and drop the one you want to inherit from into your class diagram. Go to Toolbox (available from the View menu). Drag and drop a class. Speci ...Show All
.NET Development WSE 3.0 - PolicyAssertion and Attachments
Hello, I'm starting using WSE 3.0 and I'm having trouble in finding solution to these 2 problems: - I have created a PolicyAssertion and I want my WebService to use it without using a policy file. I've managed to do this on the client side, but on the service side I'm out of ideas. The documentation on the subject only gives examples with a policy file, but I wanted to do this without one. - In WSE 2.0 we had SoapEnvelope.Context.Attachments where I would put binary attachments. In WSE 3.0, can we just add binary data to the body Thanks in advance for any help given. Regards, paulo Hello Mark, It works ...Show All
