Daudi's Q&A profile
Visual Basic How to restrict number of rows in a collection?
Hi All In our project we have a Segment class & SegmentList class derived from BindingList(of Segment). Our requirnmet is user can only add upto 10 row in SegmentList . Please suggest how can this be done Thanks Deepak Malviya You could try checking the current count when you are adding another Segment. My best guess would be to override the InsertItem method (from Collection(Of T)). Public Class SegmentList ...other code ...Show All
SQL Server sql server mobile 05
i am trying to get the @@identity in sql server mobile 05 once i have done an insert in query analyser. insert PHCR_Record (Patient_FName,Patient_SName) values('a','b') SELECT @@IDENTITY AS 'IDENTITY' can anyone advise me as it does not seem to work thanks adam No, you should be able to use @@identity just fine. This code: create table t ( i int identity , a nvarchar ( 100 ), b nvarchar ( 100 )) G ...Show All
Visual Studio Changing design time dataset/connection at runtime?
OK. New question. Here's my scenario. I'm working on a project that will allow users to view/print/export reports from their database. The database that they'll be using is installed at their location (not mine). The program I'm attempting to write will allow them to install on any computers they want and the be able to view reports. So, they have the database at their office (with a static IP, of course). But on a home machine they load the rep ...Show All
Visual C# Save and load parameters in/from txt-file
Hi, I want to use text in a txt-file as a parameter in my C# application. It must contain an URL from a server. But because the servers can be different, it should be saved and loaded from a txt-file. This txt-file should also be locked for unauthorised users. thanks I'd go with an XML file, the XmlDocument class will save and load from disc, and it's just nicer. However, you can use streams to read and write ...Show All
Visual Studio Express Editions com and microcontroler
I’m a beginner with Visual Basic. My final faculty project (assembly hardware and software) consists of driving microcontroller from PC. I have choused visual basic 2005 express edition to make graphic interface ( supervising controlling and data acquisition ) Argument: I ‘m using serial COM port for connection between devices. I my see lateral (ascii) on Hyper terminal; I ha ...Show All
Windows Forms How to create plot in picturebox?
I need some help. how to create plot in picturebox My program generates points in 'function' while. how to create axes(X, Y) please help me!! thanks! Contact:Owcy1@wp.pl P.S. Sorry for my english :) According to the help on PictureBox it has a C ...Show All
Visual Basic VB 2005 Window Stay On Top?
I was trying to get my form (the main form Form1) to stay on top all other windows windows(such like the Windows Task Manager) but with no luck. I tried Google and came up with several approaches: One used the SetWindowPos API call but that generated some insanley cryptic message that the call '...unbalanced the stack...'. I also tried setting the form's TopMost property to true, but that only made the main form stay on top the other fo ...Show All
Software Development for Windows Vista Uninstall?
Is there a way to uninstall vista beta 1 and have it move my old windows folder back I also can't seem to get back onto my windows xp from booting up, the loading screen freezes on me. I'm sorry if this isn't the right forum for this but this is all I could think of. ...Show All
Visual C# treeview nodes loop
Hi, Can anybody show me how to loop all treeview nodes ini c#. I've been working on this for days but still no result. I got a sample code in vb 6.0, this one works. Private Sub SaveNested() Dim TNode As Node Set TNode = TreeView1.Nodes(1).Root While Not TNode Is Nothing If TNode.children > 0 Then AddChildNodes(TNode) End If Set TNode = TNode.Next Wend End Sub Private Sub AddChildNodes(ByVal TNode As Node) Dim childNode As ...Show All
Visual Studio Team System Method signature equality check
Is there an easy way to determine if two Method objects are wrapping the same method (i.e. two methods with the same signature) Ex: Method m1 refers to: public int myMethod(int i) Method m2 refers to: public int myMethod(int i) I want something like m1.HasSameSignature(m2) to return true. The only way I've been able to check for this type of equality is to break it down and check the name, return type, and parameters of each method object. ...Show All
Audio and Video Development How do I play samples?
I am unable to play the samples (included in the HD Jumpstart download) with the emulator. I've tried using both open disc and open path to launch the DAT file. When I use open disc is says unable to parse/read the DAT file. When I use open path I get no message, but the emulator screen resizes slightly and stays blank. For Open Disc you probably need to select one level up ie the directory above ADV_OBJ. For the blank screen, run DXDi ...Show All
Visual Studio Team System Install problem - Requested Prerequisites
Hi, I just got the visual studio team suite beta, but got some problems installing the team foundation server. First i installed the visual studio disc, then the sql server disc, but now when trying to install the team foundation server it says: Microsoft SQL Server 9 Service is either not started or installed Microsoft SQL Server 9 Analysis Services is either not started or installed Microsoft SQL Server 9 Report Server Service is either not st ...Show All
Software Development for Windows Vista Cant uninstall WinFX - help
I had the following installed previously on my computer: .NET Framework 2.0 beta 2 (50215 build) Visual C# Express 2005 beta 2 WinFX runtime components beta 1 WinFX SDK beta 1 MSH Now, after Nov 7, I wanted to install VC# Express 2005 (RTM), so I downloaded and ran the auto uninstall utility. It removed the following components from my system: .NET Framework 2.0 beta 2 (50215 build) Visual C# Express 2005 beta 2 After that, I install ...Show All
Visual C++ VS Beta2 Compiler Warning
I am converting a C++ app from VC6 to VC++ 2005 Beta 2. I get the following warning on an ifstream::read() method call: warning C4996: 'std::basic_istream<_Elem,_Traits>::read' was declared deprecated with [ _Elem=char, _Traits=std::char_traits<char> ] Is this true, or is this one of the bugs in the Beta 2 version of Visual Studio Thanks. This looks like a bug in Beta-2: the method "read" is part of the d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating custom data structures for HID devices via DirectInput
Hi all, I'm working on accessing generic HID devices on Win32 via DirectInput. It's generally going well, but I've hit a snag. The devices I want to send and receive data to are non-standard devices - that is, they are not keyboards, mice or joysticks. So, I think I need to use SetDataFormat with a custom DIDATAFORMAT structure to define a custom structure for these non-standard devices. I'd expect to itera ...Show All
