Musafir_86's Q&A profile
Visual C# Timer tick event is not calling
Hi All I have created a window service and add a timer to fire event after 1 minute. I installed service and start it then i debug its process in VS 2005 it worked fine and timer event fired automatically. But if donot use debug of VS 2005 and wait for that timer event firing it doesnot fire even after 30 minute it is not firing. Please help me. Regards Imran Zubair I haven't asked you to use any text file, If you have read my previos post that this code should work with some modification. That meant that remove that reading from file and move the Thread.Sleep to the start of the DoWork function. Anyhow, I tested the thing in your are getting problem and saw the same behaviour, It's not firing. I don't know why because I ...Show All
SQL Server Custom fields in SSAS 2005 KPI's
Hi there, What is the best way to get a custom field in a SSAS 2005 Cube KPI For example, what if the user wanted two target fields, or a budget field, or a contact person field for a KPI (mostly static data, hard coded by the user). Thanks. You can use the Annotations property of KPIs (and other AS 2005 objects) to store custom information. The annotations is a property bag of name-value pairs and can contain most anything you like (including complex XML). If you set Visibility=SchemaRowset on an annotation, then the annotation will be available in the schema rowset and can be used by client applications. The down side to this approach is that off-the-shelf clients will generally ignore annotations ...Show All
Windows Forms designer for custom webcontrol
I have posted the following in the ASP.NET forums but no one seems to have an answer and I'm hoping that someone here can help as it is more of a designer question than it is an ASP.NET question: I have the following custom server control (complete source code below) to create a very simple rollover image hyperlink and it works just fine. The problem is that when I select the images, they do not render in the designer (I am using Visual Web Developer), only the dreaded "red-x" appears. What do I need to do/add to give the control full designer support 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Text; 5 using System.Web.UI; 6 using System.Web.UI.WebControls; 7 ...Show All
.NET Development Problem with c# and Access DB
Hi, I got a strange problem, that doesn't accours all the time, it happens from time to time and that make it hard for me to debug it. The problem is that the application is looking for the DB on other location than it suppose to. In the connection string I defined only the name of the DB "Main.mdb", that define the application to search for the DB in the current location, but sometimes, it looks for it on the desktop. Any ideas Appreciate any suggestion. Jivago If you specify only the name of the database the application will look in the current directory for the database....sinnce you can not always tell what the current directory is...you should always specify the path to the database even if it is relativ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Coding DirectX with C++
Hi, I recently started coding with C++, mainly to get into game programming, but I have a few questions about DirectX (I haven't downloaded the SDK). 1. I'm using Visual C++ Express, which I downloaded off the microsoft website. Is C++, and this compiler, good for coding games in DirectX 2. I assume I need the DirectX SDK to code DirectX, but it was a bit of a turn off when I saw it's size - a whopping 500mb! Is there a 'slimmed down' version for those only wanting to code in C++. Alternatively, is the DirectX SDK actually what I need I'm a little lost here. 3. If I was to code a game and sell it commercially, would I need a license (or something similar) to use DirectX Coritani wrote: 1. I'm usin ...Show All
Visual Studio Express Editions Set Dialog box control programmatically
I hope I can ask this question so it makes sense. I create a dialog box which contains a text box. In Form1 I create it... Form myDialog; myDialog = new MyDialog(); Now, I want to set the text in the text box from Form1. when I try.. myDialog.textbox1.Text = "go"; I get an error (Form does not contain a definition of textbox1) How can I programmatically set the Text in the text box from the main form I think I need to go through myDialog.Controls.(something) but can't figure out how to do this. Thanks, Cliff Wiegand The easiest solution would be changing the text box's Modifiers property to Public, which will make the text box visible outside the form's s ...Show All
SQL Server Calendar Control issues
Hi all, When I click on a calendar control for date parameters the page will freeze or throw a java script error. This does not happen all the time, and is not isolated to one PC. It happens randomly on several PCs. Is there any known issue with this control regards, Bill There have been quite a few reports of problems with the calendar control (just search the forums) and the basic answer seems to be "we cant replicate any problem" so I think MS dont know what to fix. Certainly I have the same issue as you, the calendar controls throwing script errors and taking ages to load. ...Show All
Windows Forms Binding checkboxes and DBNULL errors
Hi, I have a SQL database that contains a bit field "DPA" that I am binding to a (vb.net 2003) checkbox "chkDPA" using the code fragment below Code: .chkDPA.DataBindings.Add("Checked", dvCustomer, "DPA") However as the value in the record in the databse is DBNULL I keep getting the error "Object cannot be cast from DBNULL to other types". What I want to do is check the value beforehand using the code fragment below Code: If IsDBNull(dvCustomer[0].Row["DPA"]).Equals(System.DBNull.Value) Then .chkDPA.CheckState = CheckState.Unchecked Else .chkDPA.DataBindings.Add("Checked", dvCustomer, "DPA") End If My problem is I am n ...Show All
Visual Studio 2008 (Pre-release) need help Accessing a WCF service from a ASP.Net Web application
We have used web services before and are trying to migrate to WCF. I am trying to use an ASP.Net application to communicate with a WCF service using a hello world example. I am able to reference the WCF service in my client. But when I invoke the WCF service, it gives me a the foll error: Exception: The request failed with HTTP status 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://tempuri.org/IMyService/MyOperation1"' was not the expected type 'text/xml; charset=utf-8'.. I tried to consume the same service using a windows app and did not have any problems. Is there some configuration i am missing Can somebody give me an example of how to achieve Thanks in advance, Abhishe ...Show All
SQL Server Failed to open malformed assembly 'mscorlib'
Hi, I was using one of features provided in Microsoft samples regarding StringUtilities.dll. It was running fine for couple of month. Suddenly I am getting the following error message when try to execute this command Select * from dbo.Split('123,25') Msg 6507, Level 16, State 2, Procedure Split, Line 1 Failed to open malformed assembly 'mscorlib' with HRESULT 0x80070008. Please Guide Thanks SqlServer process ran out of memory (HRESULT 0x80070008). I will file a DCR to make the error message better. Beysim. ...Show All
.NET Development different between IDatareader,DbDatareader and SqlDatareader.
pl explain what is the different between IDatareader,DbDatareader and SqlDatareader. and when to use, when not to use. im so confused. Hi Gala123 The IDataReader is an Interface . This means that it only contains a signature of the class structure. Every class which implements this interface need to implement the same methods. In this way you can call any class and be sure that they all support the same functionality. as MSDN states in the IDataReader, this interface provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET Framework data providers that access relational databases. If you search for t ...Show All
Visual Studio Express Editions Help regarding the learning resources
Hi, I followed the learning resources on http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx Lesson 9: Databinding Data to User Interface Controls. Here the problem I encountered: After adding the database and the data source. I selected datagridview than drag and drop the customer data source to my form. Started the program, I realise from the datagridview I could not save changes to my database. Why is this so Is the save button not programmed correctly Hi Do you use local database file If so, you might be change your database property 'Copy to Output Directory' from 'Copy always' to 'Copy if newer' or 'Do not copy'. If property value is 'Copy always' then database file was owerwr ...Show All
SQL Server Session State Management
Hi to all, if Storing my Session values in Sql Server. i want to know how the request will get the corresponding value from Server and how the response will write the value to the server. how its working. With Regards Amjath hi i want to do avoid multi login. so i store the session in sqlserver and for every login i check the particular user already logged in or not. after expire time, the job for delete get fired. so in that time i want to delete the corresponding details for that session id in my table also, how can i achieve that. i think i may edit that sp for Deleting in aspstate. is it possible. With regards Amjath. ...Show All
Visual Studio Express Editions C++ Console applications exit immediately when run
A lot of users have been asking why their console application terminates immediately after running/debugging their program in the Visual C++ IDE. Users claim to see a quick flash of the console application and then it disappears. This is due to the fact that when your program is run, it creates a temporary console session to invoke your application. Without any code to explicitly keep the console open (i.e. requiring that the user enter in a value using cin >>), the console terminates immediately after the code completes. This is why you see a quick flash of your console application. There are a few things you can do to see the output of your program. Start your application without debugging (Ctrl+F5). When doing this, th ...Show All
Visual C# How to insert a paragraph?
I'm very new to VS.NET C#. I'm creating a simple app. to launch a flash tutorial. In the form, how do I insert a paragraphc explaining what this app. is going to be I tried the Lable control but it does not give me multi-line option. What do I need to use Thanks! maybe you should set the autosize = true on the label if you have not already. you may also maybe wish to use a multiline textbox, setting it to readonly does this help ...Show All
