Joey2006's Q&A profile
Visual Studio 2008 (Pre-release) date picker not available, someone already working on it?
Okay, so I'll be the first to whine about this: it's been said in some video's and a few blog posts that there will not be a datetimepicker for avalon provided by microsoft. Is that true If so, is someone working on this / planning on going to work on it I'm probably going to need this pretty soon, and I think it's a bit too involved to just do myself. Regards Kevin made it available a few months ago. The latest build is here: http://blogs.msdn.com/okoboji/archive/2006/09/20/764019.aspx ...Show All
Visual C# Something similar to VB's With Block?
Hi, Does C# have a similar block statement as Visual Basic's With...End With block Thanks Yes and no: http://www.tangiblesoftwaresolutions.com/Articles/CSharp%20Equivalent%20to%20VB%20With.htm David Anton www.tangiblesoftwaresolutions.com Instant C#: VB to C# converter Instant VB: C# to VB converter Instant C++: C# to C++ converter and VB to C++ converter Instant J#: VB to J# converter Clear VB: Cleans up VB.NET code Clear C#: Cleans up C# code ...Show All
Windows Forms Need practical examples of row validation and error handling on DataGridView
I need a practical example of row validating and error handling for the DataGridView. My DataGridView is bound and some cells are required. None of the examples I've seen on MSDN show 1) how to determine which required fields were not supplied and 2) how to give the user an intelligent message informing them of all the rows they need to enter and 3) keep the user on the row so they don't loose their edits. It seems the row validation event and other row/cell events fire even when the grid is not fully populated (such as when the grid is loading) and thus some columns that usually exist don't and exception ...Show All
Visual Basic ComboBox
Hi folks, maybe you could help me a little. If I understand right the idea behind Object oriented is that I can use the same object in different forms. I've created and used the ComboBox in one form and now I want to use it in two more. Can I do this How thanks a billion, Chris Hi Randy, I agree, I am not for hard coding - what I provided was a simple example to convey the concept of having a utility method for loading a combo. In fact if the data was available in a Table then it maybe a good idea to bind a Dataset to the combo. Regards, Vikram ...Show All
Visual C++ Console Applications only work on computer with the IDE
I'm using a text book to learn C++ and am writing my first programs. They compile fine and work the way I want them to, from Visual Studio or Windows Explorer. However, if I move them to another computer (with a disk), they don't work. Something about the configuration of the application. I've tried CLR console apps and Win 32 console apps (with header). I move the entire project, not just the .exe I would really like to be able to give other people my programs, please help me out!! PLEASE! You may need to give people the .NET framework ( for CLR apps ), and you almost certainly need to deploy the ...Show All
Visual Studio Class designer causes keyboard input to be ignored
In Beta 2 if the class designer is open and I try to edit the code file, all keyboard control keys input is ignored in the editor. For example the Tab, Delete, Space keys. Is this by design Brad Raulston It is very disconcerting to hear that keyboard input is ignored after using Class Diagram. Unfortunately we have not encountered this issue. Any information you may have with regard to what you were doing while this occured will be helpful - for example, language you are using, the profile (development) settings, any operations you performed in the class designer etc. We will tr ...Show All
SQL Server Generate Scripts option in SQL 2005 Management Studio
Did anyone even bother to test the Generate Scripts option for a database I changed the following options from their default setting: "Include Descriptive Headers" = True "Include if NOT EXISTS" = True "Script for Server Version" = SQL Server 2000 "Script Indexes" = True and scripted all Stored Procedures, Tables, User-defined functions, and Views Problems: 1. Generates IF NOT EXISTS (SELECT * FROM sys.objects ... should be ...SELECT * FROM dbo.sysobjects ... 2. Generates WITH (IGNORE_DUP_KEY = OFF) ... on the indexes. That portion is incompatible with SQL 2000 3.Generates EXEC sys.sp_addextendedproperty ... ...Show All
Visual Studio Team System SqlException Error converting data type nvarchar to float when inserting work items in Project 2003
Hi, the eventlog of the server shows the following error when i try to insert MS-Project 2003 Work Items . --- Exception: SqlException Message: Error converting data type nvarchar to float. SQL Exception Class: 16 SQL Exception Number: 8114 SQL Exception Server: XXXXX SQL Exception Source: .Net SqlClient Data Provider SQL Exception State: 5 SQL Exception Procedure: SQL Exception Line Number: 41 ---- I'm still unable to store my project work items into TFS. Any suggestions Here the complete message: Ereignistyp: Fehler Ereignisquelle: TFS WorkItem Tracking Ereigniskategorie: Keine Ereigniskennung: 3017 Datum:   ...Show All
Windows Forms class Constructor help - passing arguements
Need a little help here, syntax wise for trying to pass arguments. Here is the code and the problem is the number of arguements, ususally easy to do, but can't find the correct syntax this time to use same code for a window form.... namespace Homes { public class Form1 : System.Windows.Forms.Form { ArrayList myAL = new ArrayList(); public Form1() { InitializeComponent(); } if&nbs ...Show All
Software Development for Windows Vista How to Obtain Fault from child activity in FaultHandler?
How does a child activity obtain access to the Fault captured by a FaultHandler I have a code activity as a child of the FaultHandler. I simply want to spit out the message from the exception that was caught. I tried using the Parent property, expecting that to give me back a reference to the containing FaultHandler, but it was null. The only way I can figure is to add a property to the workflow to store the Fault in through a binding so that it is still accessible to the child code activity. This seems like a really kludgy/indirect way of handling things though. Is there some way more direct, for this specific situation, and hopefu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting rendered graphics (quickly) from the card
I had a thread about thins some days back, but for some reason I can not write into it now. I am faced with the task of rendering some graphics with directx and then copying that graphics into another card which generates a video signal. I need to feed it a new frame 25 times a second. The size is 720*576 The rendering does not have to be any faster that this. I have tried two methods of geting the pixels, and both are much too slow. One takes 500ms for a frame and the other 1800ms. I need a time below 40 for this to work. I post the two methods below. Perhaps someone can provide input as to what I need to do. I might add that ot ...Show All
Visual C++ Compiler error - HELP
Hi all So I just converted a huge project from MetroWerks CodeWarrior to Visual Studio 2005. The project converted fine and ran... ran I said, since now I cant run anymore. What did I change, well, I was changing some setting with 'struct member alignment' and trying some #pragma pack(1). After some tests I changed it back to default, and removed the pragma's. Now the code runs, but not very well, since some members of structs are not being read correctly anymore. example: class CA_QueryObj { public : CA_QueryObj( char *inFunc, char *inQuery, long inType,Boolean inAutoDelete); ~CA_QueryObj(); char function[1024]; char query[4096]; ...Show All
.NET Development How do I open an existing Excel file and display the information in a form using VB.NET
http://support.microsoft.com/default.aspx scid=kb;en-us;311731 Try this - I don't know exactly what it is you are after, but this is a good start. ...Show All
Windows Forms setting datanavigator position for newly added row
I have a dataview bound to a datasource (with some individual controls and a datanavigator bound to it). I want to add a complete new record and am adding it to the underlying datatable as such: DataRow newrow = dataTableXXX.NewRow(); newrow["ID"] = 42; newrow["Description"] = "test"; dataTableXXX.Rows.Add(newrow); I want my datanavigator to then navigate to the newly added control. I was using: bindingSource1.Position = bindingSource1.Count - 1; but I now realise that if the dataview is sorted, this will not work. How do I get the new position of the added row You' ...Show All
SQL Server Cannot get Stored Procedure parameters in SMO
Hi , I have tried it all and I cannot seem to get the stored Procedure parameters StoredProcedure sp= new StoredProcedure (mActiveDatabase,spName); foreach ( StoredProcedureParameter spParam in sp.Parameters) { string fldName = spParam.Name; } Now I can see in the Debug Visualizer the spName and other properties however the parameter.count is 0 even though I know for a fact i have 3 parameters. Why is not getting them Bug in SMO or AM I missing something. Using reflection I get them!! thanks in advance for your replies. I modified procedure AfterSelect of smoBrowse ...Show All
