vb.net

utterly weird behavior in basic string comparison

hi there, this doesn't make any sense to me. must be wrong or painfully obvious. after slicing and dicing, i got 2 vars with the following values in vb.net: strTag = "&lt;#<span class=SpellE>vermittler_person_Name</span>&gt;" tmp = "&lt;#<span class=SpellE>vermittler_person_Name</span>&gt;" comparing the vars gives a false: strT...

VB.NET 3.5; compiler complaining about nullable types (as in Double?) with "error BC30037: Character is not valid."

So, Visual studio just started throwing "error BC30037: Character is not valid." at me (while validating a web site) whenever I use the nullable operator anywhere within one of my VB.NET 3.5 projects. This happened to a colleague some months ago but he doesn't remember how he fixed (I seem to remember it fixing itself eventually). If ...

Trying to maintaining a DataSet in WinForm App

I am in the process of converting an in-house web app to a winform app for disconnected reasons and I hit the following snag. In the Function SaveMe() on the webapp there is the following code on the Person.ascx.vb page --> //get dataset from session Dim dsPerson As Data.DataSet = CType(Session.Item("Person" & Me.Uni...

Crystal Reports in a PDF file?

Guys, I am using the following code to output a Crystal Report to an ASP.NET application: Dim rptDocument As New ReportDocument Dim rptPath As String = Server.MapPath("Reports/Employees.rpt") rptDocument.Load(rptPath) Me.CrystalReportViewer1.ReportSource = rptDocument Everything is working fine. My question is, is there a way to ren...

Moving from Microsoft Access 2007 to Sql Server 2005

I have MS Access 2007 Databases and VBA modules associated with it. I Now want to upgrade my project so as to use Sql Server 2005 and Vb.net using visual studio.net. Can any one suggest Complete details on the transfer without much hassle or data loss.? Thanks In Advance ...

Good Tutorial for Resharper Templates

I'm looking to get into some of the more advanced features of resharper tamplates. I know just enough to be dangerous by looking at some of the existing templates. What are some of the more advanced features beyond using a variable name in between dollar signs and using $END$ to show where your cursor goes? What are some good sources ...

Regarding WebService

hi guys, I am using webservice.Its working in website.There is a namespace in webservics i.e using System.Web.Script.Services; I have started a project in which i am not getting namespace 'using System.Web.Script.Services;' so that webservice is not working.Is there any options to get this namespace in project.Can anybody help? ...

VSTO Menu for Outlook and Word

Hi, I created an add in for MS Word 2003 in VSTO. I added a new menu and also an intercept before a document is saved. When I checked in MS Outlook, the menu is add in there and it also intercept the saved function. How do I prevent my Word add in from included into Outlook? ...

vb.net How can i kill the application that i created using createObject()

I'm using CreateObject(progId) in Vb to create a pdfDOcument. But the problem is that after i'm done and closing the document and release, How can i shutdown the process? How can i reference the process and know if it was already open by the user before i Created the object? and how can i kill the process if the process was not running ...

how to loop inside every tables/columns in a dbml file to create new partial class with more information about every columns.

I have a class that add extra information about a column for linq2sql (see code below) right now, I have to explicitly tell what column I want that info on, how would you put that code with a loop on every column in every table from a dbml file? I was doing my test on a very very small DB, now I have to implement it on a much more bigg...

Best way to add extra values to a WinForms combo box based on a hashtable

This might be a bit of a dumb question, but I'm trying to add some extra key/value pairs to a combo box using VB.NET. The initial item list is generated from a hashtable, which contains a collection of objects. I've managed to add the extra values to the box using the Add method, however I now run into problems when reading back the sel...

Animating form resize in VB.NET

I have a form positioned slightly above the taskbar/system tray in the bottom right corner of my desktop window. It's sort of like a pop-up notification. The notification itself looks great, but there's a button on it which resizes the form up, animating the sizing in increments of 5px whilst keeping it's position relative to the botto...

is it possible to check all textboxes on a form?

i would like to make an IF statement that will check whether all textboxes in the form have been changed. i dont want to check one by one. can i check all textboxes with one simple IF THEN clause in vb.net? ...

setting textbox text equal to textbox text on a different form?

is it possible in design mode to set the textbox text property to the text property of a textbox in a different form in vb.net? ...

Simulating the web Client/web server interaction in a winform using a webbrowser object in vb2005.net

Simulating the web Client/web server interaction in a winform using a webbrowser object in vb2005.net in short im using the web browser object as a gui for a giant treeview folder list, in the html there is a form that needs to submit to perform the action,del,rename ect, how do i make my program catch the submit, process it and spit ...

LINQ to SQL: Fake Repository with Many-to-Many Relationships?

I have two tables, Clients and Administrators, which are linked in a many-to-many relationship by the table ClientAdministrators. In the real application this works fine and I can get a list of Administrators for my Client. My problem comes in trying to unit test the service class that is retrieving this from the repository. I have a ...

retaining value of a variable after application is closed and reopened

how do you save the value of a variable for later if the application is closed and reopened in winforms, vb.net? ...

defining specific custom colors that will appear in the colordialog?

is it possible in winforms, vb.net, to define the specific custom colors that will appear in the custom color boxes in colordialog? ...

Attributes and inheritance

Hello. I am learning about Attributes and I still didn't understand what the Inherited bool property refers to. Does it mean that If i define my classe AbcAtribute, if I inherit another class from it, that derived class will also have that same attribute applied to it? Thanks ...

.maxstack question

Hello. I'd like to know how does .maxstack really work. I know it doesn't have to do with the actual size of the types you are declaring but with the number of them. My questions are: does this apply just for the function, or to all the functions that we are calling for? even if it's just for the function were .maxstack is being declar...