I'm using vb.net.
I have two tables - a Parent and Child. They are in DataSet/DataTables (disconnected).
I Add a Parent record (in code) and a several Child record (DataGridView Bound to the Child Table - code bellow).
I notice that the parent Identity is 0, and when I save it all (using the ADO Update (from the SQLCommandBuilder) the ...
Let's say I have 3 tables: carts, baskets and eggs where a basket can contain many eggs and where carts contain many baskets. Each basket has a foreign key that maps to a cart and each egg has a foreign key that maps to a basket.
I need to return a table that contains these 3 columns:
Cart Name | Count of Baskets in Cart | Count of Egg...
I'm doing a VB.Net subject at university and the major assignment is the creation of a WPF application.
The application is management-focused (adding, modifying, deleting entries, etc). As these are all rather disparate tasks I'm thinking to create a tabbed interface for my assignment (in a similar vein to Spybot's interface: http://www...
Is there way to insert null into mysql from an empty text field in vb.net
thanks..
...
I was under the impression Visual Studio 2008 (and probably other versions) already made an app.config file for Forms applications. I've edited the app.config on multiple occasions without creating a new app.config file. However, I just created a new application and I can't find the app.config file. I hit Show All files and it still d...
I'm using vb.net 2008.
And I am using ADO Update to Insert new data.
So I have a Dataset with two tables - one a Parent and one a Child. When adding new Parent plus some child data on the client side, and then Inserting it into the DB (using TableAdapter.Update), how does the child get the new Parent ID?
...
Well my question is simple and straightforward.
Is there any way we can use hex values like in c++?
I am going to write binary files, but for that i will have to define certain characters like this for example.
\x00\x00\x11\x22\x33\x00\x00
I would first need to convert stuff like this to a byte array, and then write it to a binary te...
Hi Guys
Ive been using subcommander to generate my dal. Im using vb.net and sqlexpress and .net 3.5
My webconfig looks like this
<!-- add subsonic in for dal-->
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" requirePermission="false"/>
</configSections>
<connection...
Hi,
I am interested in building a simple GUI window using VB.net that looks more or less like the Firefox download manager (press Ctrl + J when you are in firefox to see how the window looks like). However, instead of Search, I would like to have a text space where I can enter the download URLs.
So basically, initially, I have a blank ...
Hi I am using vs 2008 doing a winforms app in vb.net. I have a database with a single table, that has two columns, in it and a stored procedure. The stored procedure is supposed to take an input value, match that value against one column in the table and then return the corresponding value from the other column; except it doesnt.It retur...
I would like to allow users to create pages on my site. Not full pages, but just content for the default template.
I am currently using http://ckeditor.com/ then saving the content into a database.
Is this the best way to go about doing this?
...
Update (in response to first answer, from Hans Passant):
I guess I didn't explain my use-case well enough. This application will be designed for people to enter data in a "master" language (most likely English, but not necessarily), and then facilitate the entry of translations in another language. This is all done with a rich-text box ...
I would like to have a similar look and feel to the task-bar buttons WinAmp provides:
http://i.imgur.com/LrCmM.png
...
On Windows Phone 7 to get the current control one would use
FocusManager.GetFocusedElement()
Wherea on Winform it is just ActiveControl.
Why use 2 semantics which is a nuisance for portability ? Is there any difference of behavior you can see between the two ? If yes that makes sense, otherwise that doesn't.
...
I'm trying figure out if this is possible. Basically, I need to create an XElement and then add one or more siblings to that XElement, but without a parent. I'll add that list of XElements to a Parent later, but need some flexibility in building this and other lists of XElements before doing so. Is this possible?
So I would have somethi...
I am generating an Excel file upon a click of a button in an update panel. It is throwing a parsing error. Please see below code.
If I keep the button outside the update panel it is working fine. Why isn't it working in the update Panel?
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition",
...
Dim domainUser As String = System.Security.Principal.WindowsIdentity.GetCurrent().Name
In the example project I downloaded from http://www.beansoftware.com/ASP.NET-Tutorials/Forms-Authentication-Active-Directory.aspx
I get the domain and user name I expect. When I use it in my project I get the anonymous windows account. The goal is to...
VB.Net 2005
I have a now closed Dialog1. To get information from the Dialog1 from within a module I need to use
Dim oDialog1 as Dialog1 = New Dialog1.
VB.Net 2008
I have a still open Dialog1. To get information from the Dialog1 from within a module I need to use
Dim oDialog1 as Dialog1 = Dialog1.
VB.Net 2005 does not compile using Di...
If I have a file path like "C:\My Documents\Images\Image1.png", how can I get the parent folder name of the "Image1.png" file? In this case, "Images", but that's just a sample. I've looked through System.IO.Path and there doesn't seem to be anything there. Maybe I'm overlooking it, but I have no idea where it would be.
...
I'm converting a WinForms app to Silverlight (VB.NET). What should I use instead of Char.ConvertFromUtf32 as it's not available to use in Silverlight?
...