vb.net

Am I wasting my time by designing my ASP.NET components for WYSIWYG tools

A few days ago, I read a question asking how many developers hand code their HTML/XHTML rather than rely on the WYSIWYG tools - http://stackoverflow.com/questions/406052/do-most-web-programmers-not-designers-use-wysiwyg-editors-or-hand-code-their I tend to lean towards designing ASP.NET server controls rather than User Controls for use ...

Switching from VB.NET to C# - any advice for learning C#?

Duplicate: http://stackoverflow.com/questions/46048/what-is-the-best-book-to-learn-c# http://stackoverflow.com/questions/257625/where-is-a-good-place-to-learn-c-online http://stackoverflow.com/questions/287927/best-way-to-learn-c I've primarily used VB.NET, but for a variety of reasons I'm switching to C#. (I have used C# before, ...

DataGridView, BindingSource and sorting in vb.net

I am emulating the functionality of an old app in VB.Net. I have a DataGridView on my form which is bound to a BindingSource. I have a button on the toolbar which lanuches a sort dialog. The sort dialog allows sorting by up to 3 columns. So I'm building a string from the results of the dialog and setting the BindingSource.Sort prop...

Open FoxPro Table in VB.net 2005

I need to open foxpro free tables in vb.net using the oledb connection. But... i only need to get the column names. I don't really need to 'select' anything. I am trying to dynamically browse through all our free tables and set up a listing of every column from every file and xref that to another free table that contains a description o...

Inherited Public Properties not showing up in Intellisense

I have inherited a class in vb.net and when I create the object, I am only seeing one of the inherited public properties in intellisense. Any solution to this problem? print("Public Class CompanyMailMessage Inherits MailMessage Private AdobeDisclaimer As String = "You will need Adobe Acrobat to read this file. If it is not ins...

VB.Net / Blackberry

I have a vb.net application written for PDA's. Is it possible to write a VB.net application for a Blackberry? ...

is it possible to optimize that code?

I'm interested in speed, not good looking code, that is why I'm using array and not list(of integer). I have an array looking like: 0,1,0,1,1,0,1,0,1,1,1,0,0,1 I'm interesting in the position of each number so I can later pick one randomly. so what I do is looping through the array to take position number of each 1 then creating a new...

How to get value from an OracleParameter object

As the code shown below, I want to get value from the OracleParameter object. Its datatype is datetime. ... Dim cmd As New OracleCommand("stored_proc_name", cnObject) cmd.Parameters.Add("tran_date_out", OracleDbType.Date, ParameterDirection.Output) ... cmd.ExecuteNonQuery() ... Dim tranDate As Date tranDate = cmd.Parameters("tran_d...

How to covert c# code into vb.net (Linq)?

var result = from с in dal.context.Funds select new { Name = c.CODE Price = c.Price }; ...

Integer.Parse VS. CInt

Basically, I have been using both Integer.Parse and CInt in most of my daily programming task, but I'm a little bit confused of what is the difference between the two. Is there anyone out there who can help me clarify the difference between Integer.Parse and CInt in VB.NET? ...

How to "HTML encode" Em Dash in Visual Basic.NET

Hi all, I am generating some text to be shown on a web-site, and use HttpUtility.HtmlEncode to ensure it will look correct. However, this method does not appear to encode the Em Dash (it should convert it to ""). I have come up with a solution, but I'm sure there is a better way of doing it - some library function or something. sWebs...

ASP.Net 2.0 VB WebSite Project "Type 'Exception' is not defined"

All of a sudden our VB ASP.Net 2.0 WebSite Project started complaining that Exception was not defined. I have discovered that if I add "Imports System" to the header, or explicitly use System.Exception that it works, but this error permeates a lot of other System descendants like the Data namespace, and the DateTime object. We have hun...

SqlClient calls causing "Thread was being aborted at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)"

I would really appreciate any suggestions, no matter how simple or complex, to help me get this issue isolated and resolved. I have a bit of code that generates small report files. For each file in the collection, a stored proc is executed to get the data via XML reader (its a pretty big result set). When I created all this, and steppe...

Sorting Report data in a ReportViewer using a BindingSource

I'm trying to get ReportViewer to display data from a BindingSource (VB.Net Winforms). I built the report on the underlying dataset. Then I configured the Data Source Instance to the BindingSource. I thought that would apply the sorting, filtering, etc. But it just looks like the data is coming from the dataset instead of the Bind...

Unable to load <mytest> Because it is not located under Appbase

I have created a nunit project(NunitLoginTest.nunit) by selcting my test project in the nunit\bin directory and now I am trying to load that project but it is giving me the following error. Unable to load Because it is not located under Appbase, could not load file or assembly "nunitLogintest" or one of its dependencies. The system can...

ProgressBar freezes when using multithreading

Hi, I have a ProgressBar that uses the marquee style when a report is being generated. The reason I am doing this is because the ReportViewer control I use takes some time to generate the report thus making the form unresponsive. I generate the report using a thread so the ProgressBar can show that the program is working. However, when ...

How do I customize the auto commenting text in Visual Studio?

When I type the trigger the auto comment feature in Visual Studio (by typing "'''" or "///"), most of the XML commenting details show up that I like. However, I typically add the history tag to the documentation so I can track and changes that are made to the method over time. Is there any way I can customize the auto commenting feature...

Recording at stream in windows mobile

Hi i want to record voice and send it throw Bluetooth stream , the problem is the recorder accepts only I.O Stream And write at the 'stream' without using (stream.write), ''using openNETCF Dim Stream1 As Stream Stream1 = File.OpenWrite("\My Documents\" & txtFileName.Text & ".wav") m_Recorder = New OpenNETCF.Media.WaveAu...

How to not show BaseValidator.Text when using a ValidationSummary in ASP.NET

I'm using a bunch of different asp.net validation controls on a web form. Some of these have their Text property set to things like "* Error" or "You missed these fields". However, a few of the CustomValidator controls have blank Text properties. I left them blank on purpose because I'm adding the ErrorMessage dynamically depending ...

How do I determine if an IOException is thrown because of a sharing violation?

I have a C# application and I want to copy a file to a new location. Some times I need to overwrite an existing file. when this happens I receive a System.IO.IOException. I want to recover from a Sharing violation but how do I determine that IOException was returned because the destination file is in use rather then some other reason?...