beginner.net's Q&A profile
Visual Basic Trying to update a datatable
I am completely frustrated… Trying to help a friend. Here is what I have been trying to do.. I am a noob at visual studio. I am setting up an inventory database using VB as the front end. I have setup an accounts table, product table. These I can view edit, delete, and ad records to fine. I am trying to make an invoice. I have set up the following tables: tblInvoice InvoiceNum Primary Key AccountNum Foreign Key For Accounts table Date Total Total cost of items tblInvDetails Invoice Number Foreign Key fro ...Show All
Windows Forms Layout
Hi, I new to winforms, coming from win32 development using Delphi. I'm struggling to create nice layouts, all controls seem to be bunched togther, borders and so on seem non existent. Does the group have any pointers to docs that I may read up on Thanks, Ian When the form designer is open you will see a Format menu in the menubar. ...Show All
Windows Forms returning string from showDialog to parent window
Hi, I am opening a form (frmChild) as ShowDialog from parent window (frmParent) frmChild.ShowDialog() How do I return a string from frmChild to frmParent Thanks, Just add a public property (or string variable) to frmChild and the reference it directly after the showdialog: if (frmChild.ShowDialog() == DialogResult.OK) { string text = frmChild.ReturnText; } ...Show All
Windows Forms How do you create an MDIList using the menuStrip?
It seems to have a IsMdiWindowListEntry, which would imply it's possible, but it's read only. Any thoughts Brad Raulston Though I set the MDIWindowList set the MenuStrip's MDIWindowListItem property to the ToolStripMenuItem it doesnt work. Any thoughts as to why ...Show All
Visual C++ Prefast and LoadString weirdness
Hello everyone, I am trying to compile my old C++ code with Whidbey Beta 2 and prefast turned on (/analysis for static code analysis, turn on "Enable code analysis for C/C++" in Advanced settings of C/C++ configuration properties). I get weird warnings with my use of the LoadString API that I cannot explain. I've boiled it down to two small functions foo() and bar() that should behave identical but the first one gives a prefast warning(C6386: buffer overrun: accessing 'argument 3', the writable size is '1*0' bytes, but '1' bytes may be written...). void foo() { int nBuffer = 1; LPTSTR szText = (LPTSTR) ...Show All
Visual C# Number lines
Hiya! Hi in a programming book I am reading VS shows every line numbered on the left side of the IDE. How do I this example 1 namespace 2 3 Thanks Tools->Options->TextEditor(on the left side->All Languages->check the "line numbers" ...Show All
Visual C# Tcp Chat
hello , i have a problem. im developing a client / server tcp chat. the problem is that it works perfectly when i run de server and the client in loalhost, i can work with several insances of the client if the server is local,.,, the problem is that when i tr to work on lan or internet... (lan with same workspace) it dont work... i do the next on server static void Main(string[] args) { Program pr = new Program(); IPAddress localAddr = IPAddress.Parse("192.168.1.67"); listener = new TcpListener(localAddr, 5555); try { Console.WriteLine("Waiting for connections"); listener ...Show All
SQL Server extracting the specified record no of records from database table
hi all, I need to select the no of records on the basis of specified range of records. In oracle i found rownum, i could not find it in sqlserver. how the data are extracted from the huge records.. I have used temporary table,map the table primary key to the next table with identity but i dont find it good. I need to ignore the insert the data in next table or craeting new table having the rowid ... Is there some other best way to extract the specified data here is the type of query. select * from customers where rownum between 1000 and 10000 this is in oracle i am in need to do this in the sql server waitin ...Show All
Visual Studio Team System Error: Additional code analysis warnings or errors cannot be displayed
I'm getting a couple of errors consistently when I enable Code Analysis on my ASP.NET Web Project in VS 2005 RC1. The build fails, and around 200 warnings from FxCop are displayed. Here are the errors: Error 204 CA0503 : Additional code analysis warnings or errors cannot be displayed Error 205 FxCopCmd.exe returned error code 8. I looked up error code 8 for FxCop, and found it to be an "Assembly load error". It did give me a couple of other errors related to the loading of external referenced assemblies (which do exist locally): Error 1 CA0055 : Could not load XXXXXXX.d ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this er ...Show All
Visual Studio bidirectional connectors
Is there any way to create a connector between two different shapes, and to be possible to connect them in any direction I mean, if I have a class1 and a class2, linked by a reference relationship, and I want to create a connector from this reference, I just can specify one direction (from one role to another), and doesn’t mather how many shapes I add in the permittedShapes tag for that connector... any idea thanks Vicen thanks Brian, I don’t like so much the final look of the Model Diagram, I think it becomes less readable... but it works properly, thanks a million! Vicen ...Show All
Software Development for Windows Vista Suggestion for the SQLTracking Service
Hi, I don't know if it makes sense, but I would like to override the GetProfile (...) method of the SQLTrackingService in order to specify a Custom profile for tracking. But this class is sealed... Any comment Serge Luca Guidance, Belgium MCSD.Net, MCT blog: www.redwoood.be You can add a custom profile by putting the xml serialized version of a profile into the profiles table. Look at the Profile editor sample application in the SDK to get an idea of how you might do that. ...Show All
Visual Studio 2008 (Pre-release) LINQ and Workflow
is it possible to utilize LINQ from Windows Workflow Foundation Using LINQ with workflow is not the same as using DLINQ with workflow. While LINQ may work directly on WWF objects, DLINQ would be more complimentary. ...Show All
Visual C# Can FileSystemWatcher raise different events depending on file path?
I have a FileSystemWatcher that watches a directory. This has 3 sub-directories. I was thinking of just making 3 different FileSystemWatcher objects to watch each directory individualy, because when a file is created in one of these directories I need different events raised. For directory A, I want MethodA called, and dir B I need MethodB called and Method C called when a new file is placed in Directory C. Can one FileSystemWatcher call different methods depending on the path of the created file I use this : watcher.Created += new FileSystemEventHandler (FileCreated); to call my FileCreated() method, any ideas Thanks... ...Show All
SQL Server Task Expression Evalutation Time
I have designed a package whose first step initializes several variables . Other steps in the package have expressions based on those variables. Example Expression for MyTask: PropertyName = "Disable" Expression = "@DoMyTask" Given this example MyTask will be enabled/disabled solely based on the value of @DoMyTask at the time the package execution begins. Changing the value of @DoMyTask prior to the normal execution of MyTask has no effect . My conclusion is that the expression is not being evaluated late enough. Any help DarrenSQ ...Show All
