Computer-Desk's Q&A profile
Windows Forms (still) problem to getting the checkbox in the datagrid
---------------------1----------------------------- mTable = objDB.GetData(strquery) DGrid.DataSource = mTable PercentageStatus_Col.MappingName = "PercentageStatus" PercentageStatus_Col.HeaderText = "Percentage Status" PercentageStatus_Col.Width = 100 PercentageStatus_Col.NullValue = True TableStyle.GridColumnStyles.Add(PercentageStatus_Col) DGrid.TableStyles.Add(TableStyle) For i = 0 To mTable.Rows.Count - 1 If mTable.Rows(i).Item("PercentageStatus") = 1 Then PercentageStatus_Col.TrueValue = True End If If mTable.Rows(i).Item("PercentageStatus") = 0 Then PercentageStatus_Col.FalseValue = False End If Next ----------------------1------------------------------ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with AddService()
Hi! I have been working with XNA for about 2 weeks now and I am new to the C# language. In my game I have a TextureManager and I wanted to give every class access to it. So I thought Game Services are a great idea, but it doesn't work right. In the Texturemanager-Class constructor I add it into the Services: Services.AddService(typeof(Texturemanager), this); Then I made an instance from the Texturemanager in my MainClass and after it I wanted to get the object back. ITexturemanager texturemanager = (ITexturemanager)Services.GetService(typeof(ITexturemanager)); But the texturemanager value is always null! Why doesn't it work right thx cya, Stefan sheepsteak wrote: Not sure whether it's just ...Show All
SQL Server Keyword "Top" can't be used in SQL Mobile, is there any substitute?
I only want to select few records from table Keyword "Top" can't be used in SQL Mobile, is there any substitute Thank for your help! I have read your reply seriously But I want to have a solution which doesn't need to compare the value of the table. Just get a fixed number of rows from the SQL Mobile table in no particular order like using "Top" keyword in the Transact-SQL ...Show All
Visual Studio Help going to home page
Hey everyone. Any time I click on help. Be it through the start menu or through a app menu it skips the help file and instead navigates to my home page. So I can not access any help or documentation. Any help would be appericated. There may be a problem with those two specific collections. There first one you indicated is Patterns and Practices and the second one is WSE (Web Service Enhancements). Both of those are fairly old content and their installations may have been corrupted for some reason. Have you tried doing a repair on either one of those from Add/Remove Programs Also, when launching help from Visual Studio, can you tell me which version of VS you are working with Have you also tried doi ...Show All
Visual C# How to plot real-time graph?
Hi, Suppose I should plot a 2-D graph with XAxis the time, YAxis is a loop of integer from 1 to 500. How to realize this for(int x=1; x<501; x++) { double y; y= (doulbe)DateTime.Now; plot(x,y); } The data I received are as follows(ignore the hex numbers): 9:43:38 AM 1 1 9:43:38 AM 2 2 9:43:38 AM 3 3 9:43:38 AM 4 4 9:43:38 AM 5 5 9:43:38 AM 6 6 9:43:38 AM 7 7 9:43:38 AM 8 8 9:43:38 AM 9 9 9:43:38 AM a 10 9:43:38 AM b 11 9:43:38 AM c 12 9:43:38 AM d 13 9:43:38 AM e 14 9:43:38 AM f 15 9:43:38 AM 10 16 9:43:38 AM 11 17 9:43:38 AM 12 18 9:43:38 AM 13 19 9:43:38 AM 14 20 9:43:38 AM 15 21 9:43:38 AM 16 22 9:43:38 AM 17 23 9:43:38 AM 18 24 9:43:38 AM 19 25 9:43:38 AM 1a 26 9:43:38 AM 1b 27 9:43:38 AM 1c 28 9:4 ...Show All
Windows Live Developer Forums Html code
Hi! How can I add more than one html code to my space Here's a tutorial that says how to have a second html toy: http://markslack.spaces.live.com/blog/cns!27F804AF658456B6!1877.entry This site is not mine, but it's a friend of mine's who has a lot of great info. X http://x-evolutionist.spaces.live.com/ ...Show All
SQL Server Disable HideDuplicates from Report Builder
I have some business analysts (I guess Microsoft would call them Information Workers) using Report Builder to design reports, but also as a querying tool. They often times dump the results of their reports/queries into Excel, do some crunching, and then come back to write a better report. When the Report Builder builds groups, it inherently turns on the HideDuplicates property / element so that it only displays distinct values on the group by fields. This looks great on a report, but is impractical for Excel, where the data is going to be manipulated by row. In the .rdl, I found the element "HideDuplicates" http://msdn2.microsoft.com/en-us/library/ms152916.aspx controls this behavior of the report. However, I cannot find an ...Show All
Visual Studio Testing an Itemgroup in a Propertygroup Condition
Hi, Is it possible to test an element within an itemgroup from a property group I tried but its not evaluating and I know my systax is right there is no errors during a build. e.g. < ItemGroup > < ConfigurationToBuild Include = " Release|Any CPU " > < FlavorToBuild > Release </ FlavorToBuild > < PlatformToBuild > Any CPU </ PlatformToBuild > </ ConfigurationToBuild > </ ItemGroup > < PropertyGroup Condition = " '$(ConfigurationToBuild.FlavorToBuild)'=='Debug' " > < DeploymentServer > Radon </ DeploymentServer > < DeploymentSharePath > DeploymentTargetDEV </ DeploymentSharePath > & ...Show All
Visual C++ Unexpected namespace pollution in VC8 (bug?)
Running Visual Studio 2005 Professional, no service pack applied. Here is a code snippet distilled from some code that fails due to unexpected namespace conflicts: namespace ns1 { typedef unsigned long ns_t; struct base { ~base() {} }; } namespace ns2 { using namespace ns1; struct dummy : public base { }; } namespace ns3 { struct dummy2 { dummy2() {} ns2::dummy m_dummy; }; } ns_t ns_check; //compilation should fail here!! The above code compiles fine on my machine. The problem is that , for some reason, ns_t is visible at the global namespace when it shouldn't be. Strangely, removing base::~base will cause the behavior I expect (compilation error). I'm not sure exactly where the bug is and what a workaround ...Show All
SQL Server more membership in "master.sys.login_token" than "net group"
Hi. I'm investigating whether I can lock down a feature exclusively to only those who belong to a certain domain group. From what I understand, the master.sys.login_token view holds information on all the groups I'm a part of. However, I'm looking at the output from SELECT * FROM master.sys.login_token and see a number of groups that I can't verify I have access to. I have even run the DOS command " net group <domaingroup> /dom " and don't see myself listed in its output. Is this normal Is the output a culmination of everyone logged in at the time @@version = 9.00.2047.00 Thanks for your quick response.... I guess what's shocking me more than anything is the fact that sys.lo ...Show All
Visual Studio Team System How to display the last checked in date / time for files in the Source Control Explorer GUI
I have two questions. How can we display the last checked in date / time for files in the Source Control Explorer GUI How can we display the last label for files in the Source Control Explorer GUI If I could do those two things, I would be very very happy since I could do them in VSS, and I was very used to being able to do it. I feel as if I am missing something.... We’d like to add more columns in a future version of Team Explorer. Unfortunately I don’t think there’s an extensibility point for 3rd parties to do so. ...Show All
Visual C++ Error In MfC App
Help needed i am stuck with this error while developing MFC based application in vc++ 8. pls help me get out of this mess code: void CmfcaView::OnEnKillfocusname() { char name[15]; GetDlgItemText(IDC_name,name,15); if (strlen(name)==0) { MessageBox("The Employee Code can not be blank. Please enter an Employee Code."); CEdit *code; code=(CEdit*)GetDlgItem(IDC_name); code->SetFocus(); // TODO: Add your control notification handler code here } } Error: Error 1 error C2664: 'int CWnd::GetDlgItemTextW(int,LPTSTR,int) const' : cannot convert parameter 2 from 'char [15]' to 'LPTSTR' Error 2 error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [67]' to 'LPCTSTR' thanks Did you read FAQ: Cannot con ...Show All
Software Development for Windows Vista A generic job scheduling engine
Hi I only have a very high level familiarity with WWF. We are looking to build a load balanced generic job scheduling engine to run long running processes within our application. e.g. we can have a job to cleanse some data every night at 1:00 AM etc. Can we use WWF to build such a generic job scheduler Thanks I think this is the same issue that's in this thread - http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1243814&SiteID=1 Hope that helps Kavita ...Show All
Visual Studio Problems building documentation for generic classes with Sandcastle
Using the December CTP of Sandcastle, I'm having problems generating documentation for generic classes... No documentation is made from these classes (or their methods) at all, but it works fine for other, non-generic, classes in the same project. Example class: /// <summary> /// My generic class /// </summary> /// <typeparam name="T"> my object </typeparam> public class MyGenericClass <T> where T : MyObject , new () { //... } Is this a bug in Sandcastle, or am I doing something wrong here Oyvind, We had a bug on this issue. I tested this with the latest Sandcastle internal bits and did not see any issues with documenting generic classes. Please look for ...Show All
SQL Server creating composite primary keys via sql management studio??
Hi, How do i create a composite primary key through sql management studio I have two tables: Section : SectionID , Name Rooms : RoomID , SectionID,Cost , MaxPersons I know its unusual but i have sections in this hotel that have rooms , a section is alsmost like a seperate hotel in itself. Only the management for various sections is common. I need to store rooms that belong to a particular section , yes there can be Duplicated RoomIds. How do i make a compiste key in SQL mStudio , or is there a better solution hi , I rephrased my question. By edit i mean , once i've created the database in VS , i want to add tables etc .. in SQL management studio. But i tried and i get an error.And what about (2) my second question Thanks ...Show All
