Mike Nguyen's Q&A profile
Windows Forms listView
i have a listview with 3 col i wnat to add data to each col how can i do it Here's a good code translator: http://www.carlosag.net/Tools/CodeTranslator/ I've seen more than a few of them, but so far this one seems to work the best. ...Show All
.NET Development DebuggerDisplayAttribute Behaviour
The DebuggerDisplay attribute has AttributeUsage Inherit=true and AllowMultiple=True. If a DebuggerDisplay attribute is applied to a base class, but not a derived class, would the debugger attempt to use the inherited attribute when displaying the derived class What would happen if multiple DebuggerDisplay attributes were applied to a single entity There is an article in the May 2005 (vol 20 no 5) issue of MSDN Magazine that talks about this specific thing. In summary there is property that determines whether an attribute is to be inheritable. In reference to specifying the same attribute multiple t ...Show All
SQL Server how to solve Syntax error or access violation?
Hi, any one can help me to solve this problem i run sql statement in RS to get the dataset i want. but it show me this error. below is the sql statement that having error (1). --------------------------------------- SELECT MAX(Weekday) AS Mweekday, MAX(AveScore) AS MScore FROM (SELECT DATENAME(dw, dtAnswer) AS WeekDay, AVG(bScore) AS AveScore FROM Answer WHERE (iMinutes BETWEEN 570 AND 1020) AND (dtAnswer BETWEEN @lastWeekMon AND DATEADD(dd, 7, @lastWeekMon)) GROUP BY fDiscard, fIncomplete, DATENAME(dw, dtAnswer), DATEPART(dw, dtAnswer) HAVING (fDiscard = 0) AND (fIncom ...Show All
.NET Development help with httpRequest via ISA (proxy) server.
Hi, eveyone. Here is the situation: I have a .net client app that reads file(s) into a byte array and using HttpRequest object sends the data to a webservice that sits behind a proxy (ISA) server. It works OK if I do not use chunking in the request, but when chunking is turned on, I get the following error: The ISA Server services cannot create a packet filter 216.109.126.70. T his event occurs when there is a conflict between the Local Address T able (LA T ) configuration and the Windows 2000 routing table. Check the routing table and the LA T to find the source of the conflict. Any ideas Any help is greatly appreciated. G. I ...Show All
Windows Forms It debugs.. then it won't debug?
I have spent hours today with a winform with some comboxes bound to data. And something really weird has been going on. I set some*space space*points and lately it just ignores the*space space*points.. THEN it might stop at one so I continue and I press the button again which has a breakpoint and it ignores the breakpoint Any idea what could be going o ...Show All
Windows Forms Help needed with textbox events, please.
Hi, Suppose you have a textbox on a winform. You enter a value and upon leaving the textbox you wish to perform some action on the checkbox text. This only needs to happen when the value changes. I am having a heck of a time figuring out what event to use. I have tried the textchanged event, and it works great except that it  ...Show All
Smart Device Development CCommandbar with cmenu
I try to insert a menu to ccommandbar, then delete a submenu in it. Is there any example on ccommandbar with cmenu m_cmdbar = new CCommandBar(); m_cmdbar->Create( this ); m_cmdbar->InsertMenuBar(IDR_MENU1); HMENU hMenu = m_cmdbar->GetMenu(); CMenu* pMenu = CMenu::FromHandle(hMenu); CMenu* submenu = pMenu->GetSubMenu(0); BOOL i = submenu->DeleteMenu(ID_OPTION_NEW, MF_BYCOMMAND); m_cmdbar->DrawMenuBar(IDR_MENU1); my above code does not hide the "new" menu, although I got the boolean i return as TRUE. So I suspect the problem is on the last line, which I don't know what to put in the ...Show All
Visual Studio Performance in VS vs. outside it
I have a pretty small test program using Windows Forms and one unmanaged function. When I run it in release mode inside VS 2005 it takes about 9% CPU. When I run it outside VS, it takes 2% CPU. Why would running inside VS take so much more CPU time Only a profiler can really answer your question. One possibility is that your application produces a lot of debugging events. Example of debugging events: Throwing/catching exceptions Outputting debug strings (traces) Creating/destroying threads Creating/destroying app domains Loading/unloading modules ...Show All
Visual Basic Can you have a maskedtextbox data entry go from right to left?
Can you have a maskedtextbox go from right to left I can get a normal textbox to allow data entry right to left but I can not get a masked textbox to work this way. I have a five character database field that I need to be populated in this fashion in order to get a match that I am looking for. ex... when a user types in 3 charcters lets say "222" it will store it that way. I want it to store " 222" notice the to leading blank spaces. The only way I can think to do this is by masking the text box but alas I can't seem to get the right to left feature to work as it does for a normal textbox. Any Ideas Tha ...Show All
Visual Basic Using Enter to move to next text box
This used be an issue in VB6, I'm wondering is it better in vb.net 2005. Users like to hit [Enter] (or tab) to navigate from text box to text box. Now I know I can write code to trap the pressing of [Enter] on each text box key press event, but surely theres a better way Any advice, ideas appreciated. Thanks Vayse Thanks guys. Maybe its something they should fix in future versions, have Enter=Tab as a text box property. ...Show All
.NET Development Data Adapter not generating a table
Hi, I'm having a problem with my tables. I created a data adapter, configured it and generated the dataset. The table shows up in the dataset, but when I go to bind my controls to the columns, through properties, the table is not there. I also need this table for Crystal reports and it's not showing up in that list of tables either. I've tried several things including: 1) deleteing everything and starting over. 2) deleteing everything, checking in all my changes, compiling the project, then starting over. 3) all in #2 plus rebooting then starting over. 4) whine to the boss for some help. none of this has worked. ca ...Show All
Visual Studio Team System How to Customize Existing Work Items and How to add reports in WSS?
Hi there, How do I customize existing work items, the documentation on msdn2 for this is an empty page. I would like to add new work item types, and modify the fields of existing ones. Also, how can i add new reports to the project portal From what i can tell, the redirect ASPX page is custom for TFS becasue in WSS we could use frontpage to add more links to reports. And lastly, is there a way to pull data of work items into excel, modify them and have the changes sync'd to the database Thanks! YSK HI, PTE can be downloaded from GotDotNet : http://www.gotdotnet.com/Workspaces/Workspace.aspx id=812a68af-5e74-48c6-9623-1a446 ...Show All
.NET Development Authentication while accessing webpages in different webapplications
Hi all, I have three web applications[A,B,C]. A webpage from A application accesses a webpage in B application using Response.Redirect() In web.config of A app, authentication is < authentication mode ="Forms"> < forms name ="LoginForm" loginUrl ="members/login.aspx" protection ="All" timeout ="30" slidingExpiration ="true"> </ forms > </ authentication > while in B app authentication is < authentication mode ="Windows"> App C don't have any web.config. There are various reports in A app and ...Show All
Visual Studio Team System Where to find "Network Requirements and considerations - Firewall" docs
I am installing a new TFS in dual server configuration with a dedicated build server. We run a distributed multi-tier environment with hardware firewalls between each tier. I am trying to find out what firewall requirements exist between each of the three servers and have not had any luck. The file 'TFSAdmin.chm' has a topic on firewalls but it is only a placeholder at the moment. TFSAdmin.chm - Team Foundation Server Product Overview - Team FOundation Server Requirements - Server Requirements - Network Requirements and Consideratio ...Show All
Windows Forms best practice advice for secure socket comms ..
hi guys ... Im developing a Client-Server system which will be used through regular internet. My development environment would be VB.NET 2003 & 2005. I would be communicating using regular Sockets & TCP. The client would be running on Windows Pocket PC 2003/Mobile Edition PDA's & connecting to the server through GPRS. The server would be a running on regular Windows 2k or 2k3. I want to secure my communication from prying eyes & at the same time protect my server. All this should be cost effective including time spent on development. At the moment Im not sending Credit Card information on this - so that level of secure com ...Show All
