psiegers's Q&A profile
Visual Basic Using HTML code with Visual Basic 2005
The HTML codes creates a basic web page... can I use this code to display the page with the web browser Any ideas Thanks. Okay, I have a problem, how do I specify this line that already has " quotes in the document.text line Thanks. <input type="hidden" name="cmd" value="_xclick"> ...Show All
Visual Studio Generate documentation under .Net 2.0?
I really need to generate some documentation under .Net 2.0. I know that this issue has been raised in a previous post few month ago, but no explicit solution has been provided. Also the NDoc project seems dead (as suggest the broken wiki). Does anyone has a practical (even minimal) solution to generate documentation for .Net 2.0 Thanks in advance, Joannes Hi Joannes, There is an option to create an XML file based on the comments entered. You probably can generate that and apply an XSL to that to get an HTML appearance to the XML. Regards, Vikram ...Show All
Visual Basic Windows Control Library Issues
I am developing my first windows control library. It is fairly simple and just opens a serial port and when data comes in raises an event with the data. It seems to work ok but I cannot find how to make the control appear in the bottom bar when it is added to a from (similar to the timer control) it always appears on the form. Can someone point me in the right direction Thanks I tried to replace Inherits System.Windows.Control.UserControl with Inherits System.Windows.Control.Component but this is not defined! ...Show All
SQL Server Database Summary Reports
I'm not sure this is the correct forum for this, but it seemed to be the best place to start. I have been trying to manage my SQL 2000 Databases using Microsoft SQL Server Management Studio. It works well for most everything. The problem is, however, that there is no equivalent to the SQL 2000 Taskpad View in SQL Server Management Sudio. In the Summary screen when connected to a 2000 Database the Reports button is disabled. If I restore a 2000 Database into a 2005 DBE then I get the message that the compatibilty Mode is 80 and I must set it to 90 to get this report. I could switch this to a 90 compatibility mode, but I don't think ...Show All
Visual C++ Using <gcroot>
The idea of the class is controlling some text data: #include "stdafx.h" #include "gcroot.h" using namespace System; class rCurrency{ public : gcroot<System::String * > txtContent; void connectToInet( void ){ txtContent= "s" ; Console::WriteLine(txtContent); } }; int main() { rCurrency* s; s->connectToInet(); } But this doesn't work: A first chance exception of type 'System.NullReferenceException' occurred in VIP.exe An unhandled exception of type 'System.NullReferenceException' occurred in VIP.exe What shall I do How can I make this idea working You used a pointer to rCurrency that was never iniializ ...Show All
SQL Server SQLInfoMessageEventHandler and PRINT statement in SQL Express
I have a stored procedure contains a few PRINT statement that return the status to the client. On the client side, I am using vb.net to add handler for it, as follow: '-------------------------------------------------------------------------------- con = New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=IntranetMaster;Integrated Security=True;Persist Security Info=False;Connect Timeout=0") AddHandler con.InfoMessage, New SqlInfoMessageEventHandler(AddressOf ShowSQLMessage) Sub ShowSQLMessage(ByVal o As Object, ByVal e As SqlInfoMessageEventArgs) Dim err As SqlError For Each err In e.Errors &n ...Show All
Architecture General business object requirements
For those of you who have worked on medium to large sized projects, or anyone who has an opinion , I would like to know what types of logic an application needs in the business layer. If the objects expose properties and collections, is a simple validation on write all that's needed I guess the objects also have methods that do various things. If anyone feels like offering any insight into the kinds of things their business objects do besides store bits of information that would be greatly appreciated. I'd also like to know what types of exceptions are generally thrown when persisting to a database. What about errors in the middle of bat ...Show All
SQL Server Hierarchy
Hi to All! Is there a perfect method to implement a hierarchy structure with different types as a table in Sql server 2005 Currently I am thinking of this way: [Node | ParentId | ParentType | ChildId | ChildType] But there is this nagging little voice saying it can be better Cheers! Nele Can you share some additional information What do the "types" represent Most of the time when I see the need for typing, it means that a table for that type should be created, and through key relationships this forms a natural hierarchy. In your s ...Show All
Visual Studio Class Designer with VS2005 C++
Hi, I have VS2005, is the class designer supported with projects written in C++ Cheers, Robs Pierre Hi Robs, Unfortunately class designer in VS 2005 does not support C++. You may want to look at other tools such as Visio for Enterprise Architect for C++ support. Regards, Ramesh Rajagopal. ...Show All
Visual C# Byte Array
does anyone know how to empty an array what i mean by that is clear it so that it has no values. i know Array.Clear is supposed to do this but i cant get that option with a Byte Array Hi Do you mean emptying as in removing all items coz the initialize method only initializes every item in an array (not removing them)... But if you want to really remove all items then you'll have to redeclare it: byte[] myByte = new byte[30]; Console.WriteLine(myByte.Length.ToString()); myByte = new byte[]{}; Console.WriteLine(myByte.Length.ToString()); cheers, Paul June A. Domag ...Show All
Windows Forms Date Time Picker
Hi everyone, I am using a windows application where I use a date time picker. what is the event raised when I click on the date time picker so I see the calendar. thanks Thx Rosanna, two years later and you solved another desparate programmer's unsolvable problem, it works GREAT Rgds Christo ...Show All
SQL Server Adding datetime fields
Hi I'm learning SQL, stuck on a problem, and would be very grateful if someone could point me in the right direction please. I have a table that contains employee overtime data. The table contains the employee ID number, the work week ID, basic hours, and overtime hours worked. What i want to do is SUM(OThrs) for a particular employee to get the total OT hours worked in a given workweek. However, as I understand it the datetime datatype stores its value as a value measured from a base date of Dec-30-1899. As it wouldn't make sense to add the datetime fields due to this, is there any way around it The OThrs is brought in f ...Show All
Visual C++ Programs freeze when starting, IDE crashes.
Hi all, I've been having alot of problems with the IDE. The most annoying one, is i go to debug a project, (or build & run), and the IDE will compile, but then doesn't run the project. It looks like it should be going (IE, stop button available), but nothing shows up. I have to stop it, and start it again. 2nd, when working with some of my larger projects (50,000 lines +), i notice that the IDE itseld will just freeze, then i get a bug report. And that almost seems random, but still happens once a day or so. I've done full re-installs, and tried on other computers, and have the same issue. Anyone else h ...Show All
SQL Server Programmatically create data sources
Is there a way to do this It does not appear as part of the standard SSIS API. Thanks. The DataSource and DataSourceCollection are part of the SSAS API with the latter having Add and AddNew methods. Not quite sure how to get the project context to create them, but never looked either. They are the same data sources in SSIS and SSAS projects, just do a View Code on them for each project, they are the same XSD etc. ...Show All
Visual C# Storing Two Data Types in a List
Hi everyone, I'm trying to add two types of data to a list object. For example, let's say I want to add a Node object and a String object: private static List< Node , String > nodeList = new List< Node , String >(); The above code returns an error. What is the best way to handle a situation where two data types need to exist as the contents of a list Thanks! Kirupa struct myStruct { public Node node; public string string; } private static List<myStruct< nodeList = new List<myStruct>(); ...Show All
