vb.net

How do I escape the # character in a VB.NET string literal?

If I needed to escape a double quote character within a string literal I'd use two consecutive double quotes as follows: Dim name = "Chuck ""Iceman"" Liddell" However, it doesn't seem like consecutive # works the same way. The compiler is expecting a compiler directive to follow the # character, even when its enclosed in double quote...

What is the default server name in wamp server?

I don't know of the default server name. Can you please help me because I need to work on our project to connect vb.net with wamp server, and for that to happen, I must know the server name that I will put on the codes. Please, thanks in advance. ...

How to import sql in vb.net?

I mean the imports keyword on the uppermost part of the program. What should I type in there? ...

custom membership for dot net nuke

Hi!! i am new in dot net nuke.i just found that there is open id logging option in dot net nuke.And so i did need user to register afresh in my dnn application.This is because i have another mvc application which i would like to be the openid provider for my dnn application.and am totally confused on how to go about that? Again,is it p...

DataView Filter - Excluding Null when not required.

Language VB.NET (VS 2008) Database: ACCESS The DataView doesn't seem to be filtering correctly. It seems to automatically filter out null values even though it is set to "Serial LIKE '%" & tcSerialTB.Text & "%'" Code: ci = New DataTable("Capital") Dim cid As New DataColumn cid.DataType = System.Type.GetType("System.Int32") cid.ColumnN...

How to Convert BB Code To HTML view (VB.NET)

Hello , The point of my idea is to write a program for a Web site that has it's own BB CODE (PHP) ,then user of the program can write his message and range his message with this BB code (inside the program) , all this can be done easily , but just one thing I can't do , How can I add a Review before send with this BB code (without conn...

enter key should save and close and escape key should close without save

In vb dot net, Windows form details should save if I press enter key should save and close and escape key should close without save Currently it happens on onclick event of a button of Save and Cancel, but I wish the keyboard events also work Any quick code to do that is appreciated ...

How do I install Microsoft FlexGrid Control 6.0 on a computer without VS 6.0?

Hi! My VB.NET application uses Microsoft Flex Grid Control 6.0. This is a legacy application which has been ported from VB6 with the Visual Studio conversion wizard. Although I can compile the assembly, I get a COMException because some class is not registered. I've found out that this class is the Microsoft Flex Grid Control 6.0. Wher...

disable the default Enter/Return key behavior in a datagridview

In vb.net datagridview the default Enter/Return key behavior is to move to the next row is there a quick and easy way to avoid that. Any suggestions are welcome ...

how to add value to combobox item

hi how can i add data value of each item to combobox in visual basic 2010. like html drop-down box. or is there anyway to add values to each item ? i am adding item from mysql database like this Command = New MySqlCommand("SELECT * FROM `maillist` WHERE l_id = '" & id & "'", connection) Command.CommandTimeout = 30 ...

File conversion (.ods to .xls)

I have to convert a file from .ods format to .xls format. I select an .ods file using openfiledialog(), then get the file like emp.ods. Now I want to copy this file to another location in .xls file format, to change the extension, like filename in savefiledialog(). How can I set a Save-As type such as Microsoft Excel 97-2003 worksheet...

Static DateTime for testing

We have a DateTime Service that pulls the Database date down when we need to use a Date. Now, If I want to run a test using "Todays" Date using FitNesse, What would be the easiest way of creating a way to have (OurService).CurrentDate be static? We have a control that ads Days,Years, or Months to the current date.. and I would like to ...

Login.aspx and Catching the AD Error Authentication response value

Hello everyone. Please help! I am new to the .NET web application development. I have used the code from the link below to create a basic login page in front of the Microsoft Live Single Sing On. http://support.microsoft.com/default.aspx/kb/326340 I managed to combine the two together (LiveSSO w/ Forms Authentication) turning off the...

Grid data not updating based on text typed in TextBox

Hello I have this lambda expression Me.SubcriperGrd.ItemsSource = _ source.Where(Function(p As subscripers) p.Navn Like navn) where i should filter the grid data based on the typed input in a txtbox It returns the result when i type the full name but it doesn't filter the data as i type along in the txt field what am i missin...

Calculate Rows per Column for CSS in VB.NET?

I am trying to figure out a calculation I can perform in C# to determine the rows per column. Let's say I know I am going to have 3 columns and my record count is 46. I know that I can mod the results to get a remainder, but I would like something more efficient than what I have tried. So I know I will have 16 rows per column with a rem...

Need debug information for .NET assembly in Release

When an error occurs in any of my .NET assemblies the user just gets a generic error saying "MyApp has encountered a problem and needs to close. We are sorry for the inconvenience." I would like the user to to see the error message and line number if possible. From what I understand you need to deploy the pdb file along with your assemb...

How to apply a .msstyles to a .NET app?

I code GUIs in .NET frequently, and most of them only have the value of being a GUI, e.g. they don't do anything otherwise impossible. So most of the development goes to making them friendly, intuitive and eye-candy. Then it comes to my mind it would be simply amazing to skin them through .msstyles files, since there are so many places ...

Image Comparison in VB.Net

Hey folks, After reading many related posts on this site on the subject of image comparison I'm thinking I'll try implementing a PCA on each image in order to see if an image is 'similar' or not, but I'm not sure how to get the data from my images - is there a VB function that I can use to convert the image into an array of bytes or som...

FxCop or other util to require inline docs in VB.NET?

I'm starting a new project; trying to be more strict than previous ones. I've set warnings as errors in the build I've added FxCop to PostBuild. The one last thing on my list os require people to add inline docs for all classes/non-private methods/properties. Is there a custom FxCop rule or another exe I can run in the post build to che...

Send E-mail reminder with ASP.NET

Hi, I have a book lending system written with ASP.NET, VB.NET and LINQ to SQL. I want the web app to send the e-mail reminder about the due date to the borrower before the book is over-due. Should I write a desktop app to check the due date or there's another way around to send e-mail reminder? Thank you for any suggestion. ...