I was using the following code in order to send e-mails to my company's intranet accounts from a VB.NET 2003 aplication. However this code was marked as no longer valid when I migrated the application after installing Visual Studio 2005. Could you help me modifying this code in order for my application to compile succesfully?
Dim emai...
Instinctively, I would say that this is impossible, as NHibernate needs to know some mapping information on how to persist a given type. Thus, I encountered some situations in which I could use such a feature. For instance, through a named query or something like so. On the other hand, using a named query would require me to make an addi...
Is there a LINQ To SQL equivalent to the SQL between keyword?
Do I just need to And both comparisons?
SELECT first_name, last_name
FROM people
WHERE last_name between 'Smith' and 'Thompson'
...
I write in-house software for a company.
I always want to leverage OOP techniques as best as I can. In this thinking, I want to create a Data Access Layer (DAL) isolated in its own .DLL.
What can I do to limit the access of the DAL DLL to only my business logic layer DLL?
The last thing I need is someone in the company with a littl...
I am having problems when using a VB.NET dll in a VB6 program. I have already created my dll with the GuidAttribute, used the RegAsm to create a tlb and added it to the references of my VB6 program. The problem is when I try to create the object using CreateObject function, however the following error shows up "ActiveX componnent can't c...
I'm working with some XML representations of data instances. I'm deserializing the objects using .NET serialization but something in my soul is disturbed by having to write classes to represent the XML... Below is what I'd LOVE to do but I don't know if the syntax or if it is even possible:
Consider the following:
dim xmlObject = Som...
I am trying to figure out how to get at an anonymous typed object's properties, when that anonymous type isn't created in the current function.
Specifically, I am binding an ASP.NET ListView to LINQ resultset, then trying to process each item in the ItemDataBound event.
Option Explicit On
Option Strict On
Class MyPageClass
Privat...
I have seen other similar questions dealing with WPF Almost exactly the same but I can;t figure this out in ASP.net. I have a Pages table with a parentpage foreign key and want to databind them to a treeview. In the past I have created a hierarchicaldataset from a dataset but would like to stay within the entities framework if I can. ...
I used a built in function to create comma separated string using List easily.
(It is not split and join but new function) I'm not able to recollect or find it. If some one knows about it and uses it please post a link to that. Framework - .net 2.0
(It is not Join or split - I know about this, .net has new built in function to create CS...
I'm trying to create an app launcher in vb.net but I do not know how to save files. Save files like the one that is executed when you run a setup for an application wherein the setup will save the application files on program files folder. I'm not trying to create a vb.net setup, because I want to run my program as portable. What I want...
What is the most appropriate data type for storing currency values in VB.NET?
...
Hi I'm still quite new to VB.NET...
I have the following code for a form that has a button (Button1).
When I press this button it adds a combobox with some values (it adds a new one underneath each time the button is pushed).
How do I set up and event so that when a combobox is changed, a textbox will appear to the right of it?
I'm basic...
Our organization is using UniObjects for .NET but the CD seems to have gone missing. I need to figure out how to read and write to and from files in Universe. Please note the program is written in VB.NET
Dim uniSession As UniSession
Private DATABASE_IDENTIFIER As String = "uvcs"
uniSession = UniObjects.OpenSession(_hostname, _username,...
I have a code snippet that I want to run when the app is closing. So, I used FormCLosing event. But now i wanna place a confirmation message for exiting. Like, if the user clicks the Exit(X) button, there'll be a prompt, if he clicks NO, then the app will not close and revert to previous state.
Now I find that hard to achieve using For...
I have a message box with YesNoCancel button..
Pressing Yes will do some action and close the app - works fine,
Pressing No will do nothing and close the app - (see below),
Pressing Cancel will Do nothing and keep the app open - (see below).
I'm using DialogResult.No for No button and DialogResult.Cancel for cancel button.
But pressing...
What happend to my Intellisense??
When I type a line like this ...
Dim users = (From u In Membership.GetAllUsers Select u.UserName)
... I get (almost) no Intellisense when I get to the Select u. part. Only Equals, GetHashCode, GetType, ReferenceEquals and ToString appears. Not "UserName" and the other relevant propeties of the Membe...
Hi,
I want to hide a column of ListView based on the role from the code behind. Here's the mark-up and the code:
<asp:ListView ID="lvTimeSheet" runat="server">
<LayoutTemplate>
<table id="TimeSheet">
<thead>
<tr>
<th id="thDelete" runat="server" Visible='<%# IsAdmin() %>'>...
I have an image of the political map of the USA. I want to write separate click events for each of the 50 states in Visual Studio. How would I do that?
...
How do you parse the caret position in a text box, then use that for setting the index in a listbox, all in VB.NET
...
Hi,
I have a DataGridView connected to a Database. It is filled like this:
Me.KeywordsTableAdapter.Fill(Me.DbDataSet1.keywords)
I can see all the data inside DataGridView. Now I can select something and if I press on DELETE (Keyboard) the entries are gone (AllowUserToDeleteRows = true), but they are still in the Database (mdb file)
...