Saul45521's Q&A profile
SQL Server VB Code to add data to SQL as new row
I've searched everywhere. I have 3 textboxs, a calendar, and 2 time controls successfully connected to an SQL Express database via a TableAdapter. The default VB code keeps updating to the first line of the db. I want it to start a new row in the db when I save the data. What VB express code/command does this I can't use the save button, I need to use code. Thanks. Hi, Try this code... Dim dr As DataRow = DataSet.Tables(0).NewRow() dr("Column1Name") = "Value1" dr("Column2Name") = "Value2" DataSet.Tables(0).Rows.Add(dr) HTH, ...Show All
Windows Forms Pass around object references or IDs?
Say I have a TreeNode that represents a Customer object. It displays the customer's name, and when it's activated a form opens to edit that customer. In order for the form to know what customer to edit, the tree node has to keep some kind of reference to the customer object that it represents, and pass some information to the form to indicate the customer to edit. As I see it, there are two ways for the tree node to keep the reference to the customer: Store the actual customer obejct in the tree-node's tag Store the customer's ID in the tree-node tag. (The ID is an int, long, guid or whatever) And two ways for the customer-ed ...Show All
Smart Device Development WM 5.0 PPC SDK install does not finish
The install, repair, and uninstall of the Windows Mobile 5.0 Pocket PC SDK does not finish. Here is the end of the install log... Action ended 10:49:26: InstallFinalize. Return value 1. Action 10:49:26: RemoveExistingProducts. Removing applications Action start 10:49:26: RemoveExistingProducts. Action ended 10:49:26: RemoveExistingProducts. Return value 0. Action 10:49:26: CUSTOM_ACTION_0. Action start 10:49:26: CUSTOM_ACTION_0. *** RunInstall: Start MsiGetProperty success PlatformGuid = {4118C335-430C-497f-BE48-11C3316B135E} RegisterPlatform: START MsiGetTargetPath success szInstallDir = C:\Program Files\Windows CE Tools\wce500\Win ...Show All
Windows Forms Help with Print sequencing
I am working with a .NET application that renders pages to a printer in a specific order. I have the ordering down ok and according to my log file things are getting sent to the printer in the correct sequence. The trouble is that the printer is sometimes shooting them out in the wrong order. For the most part the order is correct but I have noticed this issue for a few forms. The client needs this sequence exact as they take these forms and will mail them out to the intended recipient. Any ideas on how to control the spooling ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The COM-based CORE engine (a lot of questions)
I'd like to discuss a creation of the core engine for our future projects. I chose this forum not accidentally, I hope that professionals (especially from Microsoft) will help me in my questions. First, I'll say a few words about the core engine. It provides system, input, video and audio core techniques. Also, it has a pluggable system. The main COMponent 'MWCore' (from 'MWCore.dll' server) is only the bridge which connects the parts listed above together with the game. So, it's something like an abstraction layer between the operating system and the game engine. There are following main interfaces: IMWSystem - window handling, ...Show All
Visual C# GridView columns
Hi, I have a small problem with GridView. I have a DataTable with at least 5 columns, the size is variant. I want all columns except one in the DataTable to be visible. anyone know a workaround solution for this Set the size of the column you don't want to display to 0, then it isn't visable. But why do you want to add a invisable column. Store data somewhere else, it sounds like a bad design. ...Show All
Visual Studio Express Editions Totally new to programming and VB. Any suggestions for tutorials???
i'm downloading vb express 2005 as I type. I'm keen to learn a bit of programming but cant seem to find any sites that give any vb express 2005 tutorials. does anybody know of any or is it too early/new for this also, would tutorials for older versions of VB still be valid with the 2005 version i see it does have a screensaver tutorial - i'm looking for other tutorials at this stage. The post says that you can get access to 3 ebooks from Microsoft when you register VB 2005 Express Edition. I have downloaded and installed VB 2005 Express Edition and also registered it with Microsoft. So, how can ...Show All
.NET Development I Will Give Anyone £5 Via Paypal If They Can Answer Me This Question
Hey, I'm new at any of this kind of programming, but i have a problem and someone with knowledge about the whole sitution would be a great help I am using a program and when i try to use a certain feature it says "error, winsockinit must be called first"... Basically in simple terms how do i do this Thanks Mike BTW im serious about the 5 pounds I think the problem is that you are trying to use another program that has a problem. The above code is what you would have done if you were writing a program. At this point, about all you can do is contact the author of the program and see if they have a ...Show All
SQL Server Different kind of connection issue
Was able to solve my connection issues with my local (test) machine. However, now I've got a much bigger issue on my intranet machine (W2K Server that acts as a domain controller). When I use essentially the same set up for connecting as I did for the other machine (adjusted for machine name, etc), I get the following message: Login failed for user '[username]'. The user is not associated with a trusted SQL Server connection. I went into the SQL Server Express Config, and discovered under "SQL Server 2005 Services>SQL Server(SQLEXPRESS)>Properties" that this service is set up to login as the Local System built-in acc ...Show All
Visual C# ?? Why No readonly Local Variables ??
Hi all, I've looked at what the C# spec has to say and indeed it indicates the readonly keyword can only be applied to fields (not to local variables). I can see a use for doing this, however. I was wondering if anyone knows the rationale for not allowing readonly to be applied to local variables. It seems like it could be useful. Thanks. While readonly is very similar to const in appearance, what they end up doing is very different. Lets not forget that a const is evaluated at compile time and can only be initialized at the time of declaration... a readonly value on the other hand is ev ...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
Visual Studio DEBUG ERROR coloader80.dll
When I try and run a win32 app with debugging ( i.e I hit F5), I get an error message saying that it could not find the COLOADER80.DLL and suggests that I repair the installation, or manually register the dll with regsvr32 <Path to> coloader.dll . The application runs fine if I execute it without Debugging. * I tried reinstalling but to no avail. * I checked and the dll is present on the machine here: C:\Program Files\Common Files\Microsoft Shared\VS7Debug * I also tried regsvr32 C:\Program Files\Common Files\Microsoft Shared\VS7Debug\coloader80.dll . I get a message saying that the dll has been succesfully register ...Show All
Smart Device Development Error when building ImageList!
In a smartphone 2003 project in VS2005, I assigned a imagelist with image(s) to a listview and got the exception: "NotSupportedException". All codes are auto generated by the IDE. How to solve this codes: ' 'ListView1 ' Me.ListView1.FullRowSelect = True Me.ListView1.Location = New System.Drawing.Point(0, 0) Me.ListView1.Size = New System.Drawing.Size(176, 180) Me.ListView1.SmallImageList = Me.ImageList1 Me.ListView1.View = System.Windows.Forms.View.List Me.ImageList1.Images.Clear() Me.ImageList1.Images.Add(CType(resources.GetObject("resource"), System.Drawi ...Show All
.NET Development Problems...does anyone know what nnnom.dll is?
Please e-mail me if you can help me fix this computer. mrjahayes@hotmail.com Hello, I'm running Windows XP Professional and I don't have it installed on my machine. I did a quick MSN Search and it had a few links: http://search.msn.com/results.aspx q=nnnom.dll&FORM=QBHP One poster implied the name of the DLL was "Winlogon Notify". It might be a 3rd party WinLogon plugin, but I have no firsthand knowledge. Have you looked at the publisher of the library Is the code signed You might consider also posting a question to a Windows OS technical forum, such as the newsgroups. Hope that helps, Stephen [Microsoft Common Language Runtime: ...Show All
Windows Forms ListView sorting
hi there, i have a ListView on my form. Its 'View' property is set to 'Details' and it has several Column items in its Column Item Collection. I want the user to be able to click on one of the Column headings and see a little arrow facing down (Sort by ascending order) or an up arrow (Sort by decending) similar to Windows Explorer. How does one make this little 'arrow' visable to the user regards, there is good article on CodeProject that describes how to do it: Based on it I implement it in my project as I have internal class for comparing items /// <summary> /// Implements the manual sorting of ...Show All
