MariaD's Q&A profile
Visual C# List view and icons
How to display icons next to items in a Details listview using VS.NET 2003 did you mean some thing like http://www.codeproject.com/cs/miscctrl/EXListView.asp http://www.codeproject.com/cs/miscctrl/XPTable.asp ...Show All
Visual Studio Team System Load test- username and password
Hi there, Do I need to create usernames and passwords for each virtual user to be used for executing Load tests That depends completely on the site you're testing. If you want to stress test something like a new user registration process and your db won't allow duplicates, then yes you would have to create usernames and passwords for each virtual user/test iteration. If you don't want to pregenerate all that data, you could use a WebTestPlugin or coded web test and write some code that would auto generate unique user data. It really depends on whether your site is going to require unique data for every test iteration. Josh ...Show All
Windows Forms Does WinForms 2.0 support floating and docking menu/toolstrips like Office 2003 or Visual Studio 2005? [Question only for MS
I had high hopes for the ToolStripContainer but it appears that it only allows a ToolStrip or MenuStrip to be moved from one of its edges to another. If I start dragging a ToolStrip and try to release it anywhere except one of the four edges—for example, in the content panel or outside the window—nothing happens. Question: Is there some existing mechanism that I can use or is it necessary to build this from scratch I know about third party controls, but I'm looking for standard solution (in WinForms 2.0 from Microsoft)! PS: My question is only for MSFT! ...Show All
Visual C++ x64 application (VS 2005): error LNK2019: unresolved external symbol...
Hi: I am writing an 32 bit application using VS 6.0, compile and running successfully. However, when I open the same application with VS 2005 (Team Suite), compile the same application as x64 application for target running on x64 platform, it give me some error messages related to error LNK2019. I have changed the project properties -> configuration manager as x64, updated my own .lib files path at Additional Library Directories, but I get some error messages when i tried compile it. The error messages (LNK2019) show that it can't find the function that i am calling from my .lib files even though I already included .lib path on my project properties. I feel wierd because my application can compile very well in 32bit with VS 6.0 ...Show All
Visual Studio Express Editions Is the '?' in this code a typo: public virtual long? SiteId { get; set; }
Does the question mark in ‘long ’ mean something I'm using a third party library. The VisualStudio 2005 C# compiler is complaining about this conversion. Argument '3': cannot convert from 'long ' to 'long' (NOTE: if I do an explicit cast to long my code builds); VisualStudio displayed the class definition Metadata, I’ve extracted these two lines. public class ControllerEntity : EntityBase2, ISerializable public virtual long SiteId { get; set; } I could not find anything in the Visual Studio documentation to indicate that the symbol ' ' means anything but then I recently found that '^' has a special meaning to the garbage collector. So I thought I'd ask. Here is my code snipit: ControllerEntity TestController = ...Show All
Software Development for Windows Vista Save As / Open File function in all programs crashes
I've been having a problem lately in that every time I attempt to save a file or open a new file (from the "Open File" menu), whatever program I'm using at the time crashes. This has happened in Office 2007, Firefox, Notepad, etc. Anything that uses the built-in Vista filepicker. Any suggestions as to fixes for this issue Thanks a lot in advance for your help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Brand new to XNA
I've used Visual Basic before and have done some developing in Visual C# 2005 Express and found many beginner tutorials for that, but not all of the information can be appied to XNA, more specifically the design ability. Are there any completely basic video tutorials for XNA Like just something 2d and making a box move or something. Xbox 360 would be prefered if possible. I've found some text ones online but they weren't easy to follow. Thanx -Joe In initialization, put Pong pong = new Pong(); in update, put pong.update(gametime); and in draw, put pong.draw(graphics.GraphicsDevice); That should do it! ...Show All
Visual Studio Express Editions constraint exception when add new row in table
I've set up a table and have a form that generates data based on user input to create new rows. I've set the primary key in the table as a field that is the "Begin Time" of a task (the time that the user performs a task as datetime). So, when my data is put together to create a row, it is then put into the datatable. My problem is in the second row. I keep getting a constraintexception when I run the tableadapter.update and it says that my Begin Time from my second row already exists. However, when I do a Console.writeline for each field in my row (both first and second row), everything is fine for both rows (Begin Times are different). Does anyone know why when running the tableadapter.update, this exception would be thrown It' ...Show All
.NET Development vb.net and access
I have set up an access database and am trying to pull data from it. Everything was going fine until I closed out the program and tried to reopen it. I got the following error: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. What have I done wrong. There shouldn't be any type of security on this drive. Larry I have a sneaky feeling that you have the db open in Access or Access was not properly shut down and the lock file is keeping the db from being initialized.....Make sure the db is not opened exclusively by you or another user. If the db is closed make sure the idb (locking file) has been closed and dele ...Show All
Visual C++ hangman project
Hello, I'm somewhat new to C++. I am taking a class on it in college, but the teacher doesnt like to explain things very well. Basically her idea of helping us learn C++ is this: "this is how you start all your programs in this class: #include <iostream> using namespace std; int main() { } " She never explainted even what "#include <iostream>" or "using namespace std;" ment. So, this brings us to my question. I'm trying to write a c++ program *for a project in class* that is a hang man game. The hangman is stored in a character array. The user is able to input a word into a 25 character array "char word[25];". There are a couple of things I need to do. the first thing is, I need to know h ...Show All
Windows Forms How to set scrollable TextBox into bottom position if it has multiple lines.
I use a multi-line scrollable (vertical) Textbox to display some error messages during processing. I append error message into Textbox one by one. But the Textbox always display the top 10 messages when error messages are more than 10 lines. How can I set to the button line Thank you very much~ I guess you could do something like : TextBox1.SelectionStart = TextBox1.TextLength TextBox1.ScrollToCaret() ...Show All
Software Development for Windows Vista Internal Statement Parser
In spelunking the WorkFlow dll's I have noticed a Parser (System.Workflow.Activities.Rules.Parser to be exact) class that is used by the RuleSetDialog and RuleConditionDialog to parse the rule condtions/action text into CodeDom expressions. It is also used to provide Intellisense support etc... Is there plans to make this class public It would allow developers to more easily write custom rule editors, as well as write in-code rules easier then handcrafting the CodeDom expressions by hand. BTW: I have created a wrapper using relection that exposes the internals of this class, which I could post in case anyone was having similar thoughts/issues. Regards, Sandy Hi, I'm curently trying to create a Rules ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Go to the next character
This sounds like a simple enough thing to do, but I can't seem to figure it out. Say you have a char 'a' and you want it to go to 'b' if you push right. How do you do that If you're doing this to allow people to enter their names/initials onto a leaderboard you may actually want to keep the permitted characters in an array and simply update an index to it. The reason for all this weirdness is that it allows you to more easily localise your game for areas which may have different allowable character sets etc., you simply replace the character array with a different array of characters and you're away. ...Show All
.NET Development Can you pls Demystify Debug.Assert, Debug.Write and Trace.Assert for me
1-When I use Debug.write() I see the Output window with tons of code there, how do we take advantage of debug.write, debug.assert and so on with all that code in the Output window at the same time. And in what contest and which development need we need it pls. 2-Also, they say we can use Trace.Assert to halt execution. I put that in my page_Load but the execution didn t halt, it continued, is there any thing else I need to put in my code. Thank you So I guess we use debug while developing and trace while releasing the application. For debug statements for ex, do you put them in code before any problem occurs, or do you generally anticipate locations in code that you want to monitor and you put your debug statement ...Show All
.NET Development using ActiveX in WebBrowser
I wannt to parse the xml document by using javascript in a web page,I use the ActiveXObject to parse it,and then add the Html page to the WebBrowser control which is in a windowsApplication,everything works fine,but when it is used in a plug-in project, at the top of the html page,a security waring is prompted,I HAVE TO cilck the prompted bar and allowed blocked content,then all the data can be displayed, if not ,nothing can be seen on the page, so Can anyone help me to let the prompt bar not displayed and all the data can be well shown thanks!! So why are you parsing the XML using javascript Would it not be easier to take the XML, put it through an XSL that creates the HTML you want, then load that HTML i ...Show All
