Jamaz's Q&A profile
Windows Forms Textbox control
Hi There, I am displaying amount in Textbox. Amount is getting refreshed every 5 seconds. I need to change the background color every 5 sec. If amount becomes less than zero then I need to set the background color of Textbox to red otherwise set it to Green. What kind of event I need to raise and how can I access the value of Texbox's text. Please let me know. Thanks NBaig Hi, I found it. Its a textBox1_TextChanged( object sender, EventArgs e) event...... For reference....... public void textBox1_TextChanged(object sender, EventArgs e) { if (tBox.Text != "") { double value = Double.Parse(tBox.Text); if (value < 0) tBox.BackColor ...Show All
Visual Studio Team System application designer - how to deal with custom return types?
Hi, I have been using the application designer for a few days, and I want to design a web service to return objects of a custom class to a web application. My problem is that if I define an operation in the webservice "GetStaff", and specify the return type to be a bindinglist of Staff objects "System.ComponentModel.BindingList(Of Staff)", I get exceptions when I generate all applications because my Staff class doesn't yet exist. Is there a way to have the Staff class generated along with the webservice, webapp etc Many thanks in advance, Gordon Doherty Hi Gordon, What kind of exceptions are you seeing Are they occurring when Visual Studio is attempting to generate the projects and so ...Show All
.NET Development Is there any way to tell if a Process has been Killed?
If I've got a Process object, is there any way to tell whether it exited normally or was Killed ( I believe the answer to my question is "no", but just wanted to verify that.) Thanks...Rick The ExitCode property of the process is automatically set by the operating system when a process exits, if it is killed (terminated abnormally) then this value will not be equal to zero. This is also set to a non zero value when the Kill method is invoked. Hope this helps tribal ...Show All
SQL Server Order by clause in View doesn't order.
I have created view by jaoining two table and have order by clause. The sql generated is as follows SELECT TOP (100) PERCENT dbo.UWYearDetail.*, dbo.UWYearGroup.* FROM dbo.UWYearDetail INNER JOIN dbo.UWYearGroup ON dbo.UWYearDetail.UWYearGroupId = dbo.UWYearGroup.UWYearGroupId ORDER BY dbo.UWYearDetail.PlanVersionId, dbo.UWYearGroup.UWFinancialPlanSegmentId, dbo.UWYearGroup.UWYear, dbo.UWYearGroup.MandDFlag, dbo.UWYearGroup.EarningsMethod, dbo.UWYearGroup.EffectiveMonth If I run sql the results are displayed in proper order but the view only order by first item in order by clause. Has somebody experience same thing How to fix this issue Thanks, This still ...Show All
SQL Server i am unable to trieve the date in ms-access
hi friends, I am trying to create alert system in which i can able to retrieve the date while configure the OleDbDataAdapter1 itself the problem occurs this is the code i tired select * from table name (username= ) and (date=) after entering this error occurs You haven't mentioned about SQL Server version you are using, refer to this http://www.aspfree.com/c/a/Microsoft-Access/Configuring-a-Linked-Microsoft-Access-Server-on-SQL-2005-Server/ link in this case where it explains how you can achieve from SQL Server side. IN SQL Server 2000 you can use DTS to get (import) the data from any other data provider and you can schedule the DTS package too. ...Show All
Visual Studio 2008 (Pre-release) complete Xbap applications
please i want complete samples of xbap applications that contain common controls feature such as GridView with paging and sorting Are you having trouble using common controls like GridView in your XBAP In general, using a common control in an XBAP should be no different from using a common control in a standalone WPF application. You should be able to convert most of the common control samples in the SDK to XBAPs without having to do anything special. Please let us know if there is anything specific that is not working for you. ...Show All
Internet Explorer Development Internet Explorer Toolbar (Menu Bar) disappeared after installing IE 7
I use yahoo as my homepage, when the "Get IE7 now!" appeared in the toolbar, I clicked on it and installed it. Big Mistake so far...Here's the problem, after installing my IE menu bar (toolbar) containing "File, Edit, View, tools, help" vanished and I can't figure out how to retrieve it or get it back. I have checked and it is not hidden behind another toolbar. Along with that, The IE blue bar at the top & small bars at the bottom contain no information of the URL (webpage) when pages are loaded. In the Yahoo toolbar, under the pencil icon- there is no standard toolbar listed anymore. Also my tabs disappeared from yahoo and under the toolbar options there no longer is a check box to "Enable Tabbed Browsin ...Show All
Visual C++ set<String> in Visual C++ .NET
How do you use a set of Strings If I say set<String> *st; String *s = S"FOO"; st->insert(*s); I get an "illegal use of managed type" message. thanks Well it comes down to this: is a set of String (NOT string) a valid concept, or not If it is, how is it used JK ...Show All
Windows Forms Tray icon
Hi.. how can i add an icon of my app. to the tray and hide it there when i click the minize button! thnx Hi! Do you really need to put your app into tray Yes, you can do it. But tray is the place for some monitoring icons, not the place for resident apps or minimized windows. It was designed for monitoring purpose. Just check that you are creating right thing! ...Show All
SQL Server Can i add a back button on report view ?
Hi all: I have a asp.net webpage , which has a button to point to a report (by using URL) Now what i want is another way around , having a back button on report view page, so that user can click back button to vew the web page. Is that possible to do it in Report Service Thanks Nick Hi Nick, While I would say using the back button in IE is the easy way, there is another way to add a button to a report. Take a look at the custom report item functionality of RS. Informative link: http://msdn.microsoft.com/msdnmag/issues/06/10/SQLServer2005/default.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. animating textures
Hi there - this is probably a very simple problem but I've not stumbled over the answer yet. My Art Monkey has just sent me a model with an animated gif file attached. XNA complains about this texture so presumably gifs are not yet supported. Is there a way round this For instance a simple way to apply a texture to a model, or change the UV coordinates a model is using, so I could have a big bitmap with the necessary graphics on it and just change the UV Or even some way to load a bitmap into another structure, perhaps a Texture3D, which I've just noticed, and apply it to a model. Apologies if this is painfully simple or has been covered elsewhere. Cheers Robin. Do You have some programs to ...Show All
Visual C++ Shallow Copy , Deep Copy , Memberwise Copy ,Bitwise copy
hello ppl, i searched thru google but i didnt find the exact explanation for constructors. Shallow Copy , Deep Copy , Memberwise Copy ,Bitwise copy i got some conflicting answers.. and what is the difference between them.. .pls help me.. manish Just to be pedantic the compiler actually doesn't generate code that copies the object one bit at a time - it is at least one byte at a time. But the underlying meaning is the same: the way I think of it is a shallow/bitwise copy can be done using memcpy while a deep/member wise copy requires calling copy constructor/assignment operators for user-defined types. Note: for built in types, like int, char, etc., there is only one way to copy ...Show All
SQL Server Caption: 'ms_sqlce_se_notification' on reopen application window
Hello, another problem i couldn't figure out myself: I have limited my application to one instance. So i call SetForegroundWindow() upon other in InitInstance() of the application when there is already an instance of the same application running. This works fine most of the time. But sometimes it only shows the title bar(incl. OK-button) of the application with the caption 'ms_sqlce_se_notification'. Then i have to manually activate it within the list of running programs. Could it be a notification i don't handle Or what could be the reason for such a behaviour I've already searched the web for it and found almost no resource for this issue. So it would be lovely if someone already solved this problem and could tell me the solution. Kind ...Show All
SQL Server accessing two databases from a single Stored Procedure
Is it possible to access another database from a single stored procedure of another database. If it is possible, please show how. create procedure Proc_name as begin select * from database1..Tablename left join select * from database2..Tablename end ...Show All
Visual C# public get, protected set
How can I declare a property with a public get and a protected set accessor Since what you really get from the base class is one virtual method called get_MyProp there will not be any setter to override which you try to do. Unfortunatly the compiler only makes that distinction for overrides, if you try to just add the setter and ignore the getter, it hides the original property get method, which is really silly :) ...Show All
