Questions for vb.net


7255

Is it ok to use directX for on demand rendering instead of rendering continually in a loop

I am currently writing and application to test human vision. As the program currently stands I am I using VB.Net and DirectX 9 to present a stimulus on the screen on demand. By on demand I simply m...
5158

Login failed for user 'someone'

I work on Microsoft SQL Server 2008 R1 and visual studio 2010.
1179

Implementing timer states(Available,Busy,Away etc) in a chat application vb8

I am currently developing a chat application and am trying to include:
5640

How to retrieve value from sqldatasource1 to textbox1 using vb.net?

How to retrieve value from sqldatasource1 to textbox1 using vb.net ?
4620

Special characters in HTML

I am trying to retrieve specific information from a European web site. Now, the problem is I am often facing strings containing special characters such as "ä". When I try to write same into a text ...
9168

How to add WCF Web API with ASP.NET MVC 3 to existing VB.NET solution?

Im trying to implement this code: http://wcf.codeplex.com/wikipage?title=Getting%20started:%20Building%20a%20simple%20web%20api and want to add it to my existing VB.NET solution.
8705

Regular Expression to get comments in VB.Net source code

I have a syntax highlighting function in vb.net. I use regular expressions to match "!IF" for instance and then color it blue. This works perfect until I tried to figure out how to do comments.
6108

StringBuilder.AppendLine() does not make a new line

I am generating an email when an error occurs. I am using StringBuilder.AppendLine() and StringBuilder.AppendLine(String) to build up the body of the email, however the body of my email appears as ...
9860

How to iterate through each property of a custom vb.net object?

How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects?
2088

Override usage of registered COM assembly

I have an old VB6 application that I'm moving into VB.Net, I also have a COM assembly that is referenced from the application.
7400

Change version of word document programmatically?

I am dynamically generating a word file, and clicking the link opens the file save dialog and it says the document is a: Microsoft Word 97 - 2003 Document.
4020

Sorting Gridview in Visual Basic

I am trying to sort a gridview in visual basic using the following method, however the second line of code (Dim dv as DataView...) throws a NullReferenceException. When I debug the code and step th...
9513

vb.net character replacement in strings

How fast can I replace characters in a string?
8522

vb.net - webbrowser get xml document

Hey, I have been trying to switch my code from using an ie object to using a built in webbrowser. Most of the properties are the same but I have run into an issue getting an xmldocument from a page.
8646

.NET Regular Expressions in Infinite Cycle

I'm using .NET Regular Expressions to strip HTML code.
9947

Can you visually edit the html / view part of a asp.net project using Mono Develop?

I have downloaded and installed the windows binary installer for Monodevelop.
2021

VB.NET - Provide predefined creation settings in a class

I'm writing a theming class called FormTheme for a VB.NET form application. It contains colour scheme information that can be applied at runtime to form controls. Currently there are three ways to
5372

Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop

Just downloaded Xamarin/MonoDevelop in order to create a VB.Net based cross-platform application.
6215

How to determine if “object is IEnumerable” (C# syntax) in VB.NET?

I've seen a lot of posts for how to do this in C#, but I'm working in VB and they don't work and I can't seem to get them to convert. Anyone know this? C# is something like:
6257

Detect chinese character in a string VB.NET

Is there a way to detect a Chinese character in a string which is build like this:
496

Is it possible to convert vb6 “Val()” to c#?

I am currently converting vb and vb.net to c# but have an issue. I would strongly like not to use the visualbasic dlls in the converted code and have been doing this fine so far.
285

How would you convert this to valid VB.NET?

I found an article on removing whitespace from my markup in ASP.NET MVC, however, when I use the code converter, the "function" is not properly converted
6137

Is it possible to use BindingSource.find on multple columns?

Is it possible to use BindingSource.find on multple columns?
5438

How can I stop resharper replacing correct code?

I have a project that is VB.Net and C# and resharper installed in our VS2012 environment.
3640
5564

If form is moving then

I need to alternate the value of a boolean var.. if form is moving then MyVariable to False and if form is not moving then MyVariable to True.
5235

Any examples/tutorials on using Intel UPNP's VirtualDirectory Handler?

I've been working with the UPNP library from Intel in a VB.NET project and though the lack of documentation has made it hard (literally guessing what property/method I have to use in every line of ...
7081

Call to LotusSession.GetDatabase works in VB but not in C#

I have some old VB code to send mails using Lotus Notes that works, I have re-written it into C#, but it behaves differently:
5030

Compiler warning: null reference exception

I have the following code in Visual Studio 2005.
7955

How to enable implicit line continuation in VBCodeProvider?

The following VB.NET code works when compiled from the Visual Studio:
4373

Vb.net : Interop exception when showAllData() on Excel sheet?

I have some filters applied on my input excel sheets, so I decided to remove them using showAllData() method in vb.net.
5111

How do I use the find method of a datatable with a compound key?

I am working on a windows form application. How do i use the find method of a datatable to find a row if the datatable has a compound key?
6945

Why would DropDownList.Text is return 0 when it is clearly an empty string?

I have a drop down list that I am binding to a record that clearly sets value=0, text=''
1795

Android app won't return result from VB.NET WCF Service

here is my WCF server code (VB.NET)...
1341

Is it possible to initialise a New System.Collections.Generic.Dictionary with String key/value pairs?

Is it possible to create and initialise a System.Collections.Generic.Dictionary object with String key/value pairs in one statement?
5686

Cannot access a disposed object in instance VB.net

i have problem with my project, i have 2 form, 1 form with MDI container = true and 1 form is child form.
6884

Why is the C# CreateObject so much more verbose than VB.NET?

I am looking to convert some VB6/COM+ code to C#/COM+
2347

load xml file in a rich text box from a remote server to vb.net form

i have a windows app in vb.net , i am trying to read a xml file from my server(http://dev2010.abc.com/abc.xml).I am able to read abc.xml . now i have a requirement to show abc.xml in a rich text bo...
5581

VB.NET and ASP.NET DLL line numbers don't appear in production error logs

I can see line numbers in my error logs in our development environment, in which VB.NET 2005 and ASP.NET components are compiled in debug mode, with PDB files copied to the server on deployment.
4241

Sort a dictionary by value

i was searching for a simple solution that i can use in sorting a dictionary by value, and i was not content with what i found, so i made up these two functions for sorting a dictionary ascending and
6606

Twitter Bootstrap Buttons - Server Side code

I want to use a twitter bootstrap button and add a Button Click event to it in ASP.NET / VB.NET in my code behind. Obviously the difference between the twitter button is that it is just a HTML inpu...
3586

app.config file mix up for .net app

I have a solution with 4 projects within that all interact with each other. Each project contains its own app.config file named as 'app.config' and may at times contain the same appsettings fields.
5548

repeater control. find the table cell

i had kept repeater control inside Update panel. The control is having 4 columns. based on the value i have to show \ hide the 3rd column. the columns were placed inside table <tr> and <td...
8489

How can I add a 'test service' page to a WCF Webservice in VB.Net

I am building a Web service using WCF as a way to provide access to data within my VB.Net application.
3198

Why am I getting error 'not declared'?

I'm trying to show a DropDownList (cbb_conj_habitacional) if the selected value of another DropDownList (cbb_area_verde) equals 7... But, when I try this code, I get the following error:
3132

Calculate the next anniversary date after today

What's the quickest/neatest way to calculate the next anniversary of someone's birthday.
3047
6783

Remove breakLine between td in sourceCode

Public Function GenerateHtmlReport(ByVal ResultDataset As System.Data.DataSet) As String Implements IValidation.GenerateHtmlReport
8319

Displaying a Second Form in WPF

I have a main form and as sub form. I need the main Form to display the sub Form and pass into the constructor an object. When the sub Form is done it needs to destroy itself so the cycle can be

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.