vb.net

VB equivalent of C# ?? operator

Possible Duplicate: Is there a VB.NET equivalent for C#'s ?? operator? Is there an equivalent in VB.NET to C#'s ?? operator? ...

How can I transform or copy an array to a linked list?

I need to copy an array to a linked list OR transform the array in a linked list. How this can be done in .NET (C# or VB)? Thanks ...

Creating a loop in StringBuilder to alter a text file

I would be grateful with some help with reading a text file into a Richtext box. The code I have at present appends the first line of text as I want it but the rest of the lines of text do not alter. I need a loop to read to the end of file and display in Richtext box. the code i have at present is this:- Dim FILE_NAME As String = "C:\T...

html method=get not passing values to the next aspx page

i have simple html page with 3 textboxes. <form id="form1" method=get action="http://mysite.com/default.aspx" runat="server"> <div> <input id="name" type="text" value="Amy" /> <input id="email" type="text" value="[email protected]"/> <input id="phone" type="text" value="2125552512" /> </div> <input id="Subm...

ASP.NET HTML Form Failure

We've just brought up a new ASP.NET page that is showing a strange error. The error shows up in the next page as if the data isn't in the form. When the user goes back and refreshes the page and resubmits the form it works just fine. A little background, this source is being served up from a virtual directory for 8 web servers with a loa...

Can I change the default modifier from Friend to Private in the Windows Forms designer in VS 2008?

When I develop a Windows Forms app in Visual Studio using C#, every control that I add to my form is by default marked as private, which is what I want. When using VB.NET, every control is by default marked as Friend (the equivalent of internal in C#), which is not what I want. Can I just change this default? It seems like surely it's ...

Error : Invalid TLV Record in Visual Studio 2008 Crystal Report

Hi, Im develop an application and while I want to generate a report using Crystal Report, it shows error Invalid TLV Record. Below is my script : Dim CrApp As CRAXDRT.Application Dim CrRep As CRAXDRT.Report Set CrApp = New CRAXDRT.Application Set CrRep = CrApp.OpenReport("C:\test\Report1.rpt") CrRep.DiscardSavedData The error appears...

VB.NET Structs and Nothing - problems.

I'm having some headaches using Structures and functions that return Nothing in VB.NET. Let me try to explain here with this code: Public Class Form1 Structure Test Dim field1 As String End Structure Private Function Foo() As Test Return Nothing End Function Private Sub Form1_Load(ByVal sender As ...

Is it possible to enable circular dependencies in Visual Studio at the assembly level? Would mutually dependent assemblies even be possible?

This probably sounds like a stupid question, but I'm going to give it a shot anyway. So in Visual Studio, you can't have two projects X and Y such that X references Y and Y references X. In general, I can totally understand how having a circular dependency can be problematic, for a variety of reasons. But is it really not possible to ...

Comboboxes in GridView are synchronized instead of bound to the value from the database

I have tried to set up combo boxes in the gridview but all the combo boxes have the same value in them instead of the value from the database. I am using entity framework and WPF. There is a parent child relationship between two tables but the source for the combo box is a separate table with names and IDs for tags. I have been looking a...

display image in crystal report using physical path.

Hello, i am using vb.net and access. in which i have one field in which i have saved only the path of that image. Now i want to display that image in crystal report dynamic.so what should i do? i want to fetch the image path in crystal report and display in it. please try to show me a code so i can identify reply me soon thanks ...

VS 2008 use of component class and ...! ??

What is COM..?/ ...

how to retrieve the names of servers that i can connect to..??

hi all, my system is connected Trhough LAN.. totally four systems connected. and all systems having MS SQl server installed in it. now i need to retreive that - which all server's i can connect to..? server names - for connection string...!! thanx' ...

Forms inheriting from a class in vb.net

I've created a class called connector. By clicking on project and adding a class. And I want to inherit from that class in the forms But I get this error. Base class '<baseclassname1>' specified for class '<partialclassname>' cannot be different from the base class '<baseclassname2>' of one of its other partial types` what do I do? He...

Setting expriy date. for windows application.

Created one windows applcation. now i would like to give licence for it by keeping expiry date. am planning to keep expiry date in registries. the porblem is.. how can i get the actaul date. ie; when user changes the system date also- this should not change.(i meran expiry date.) Am looking for logics to acheive this..!! ...

DropDown Menu with ScrollBar in .NET

Hi,I'm trying to make a user control similar to the Windows Vista/7 breadcrumb bar used in windows explorer. However, when I show the drop down menu for a breadcrumb with many sub items, I get a very long list that sometimes exceeds the screen size. In the Windows Vista/7 example however, there are a maximum of 18 items displayed at a t...

Determine the type of Object to use to store a Linq Query

I am using VB .Net for this, so I don't have access to var or this would be a simple matter. Right now my query is as follows Dim errors As IOrderedQueryable(Of IGrouping(Of String, RSError)) = (From e In db.RSErrors Where e.UserID = "msarchet" ...

WCF can only serialize parameters on development machine

Hello, I have created a WCF service using vb.net. Everything works fine on my development machine but when I deployed it it failed with the following error 'There was an error while trying to deserialize parameter http://tempuri.org/:querys' I call a single method on the service and it has a single parameter called 'querys'. This pa...

asp.net mvc view strongly typed with PagedList(of product) vb.net

i have this controller function Public Function Index(ByVal id As System.Nullable(Of Integer)) As ActionResult using db = New DbDataContext() Dim prod As PagedList(Of product) = db.products.ToPagedList(If(id, 1), 20) Return View(prod) End Using End Function i have to create a view strongly typed with Dim prod As PagedList(Of produ...

Need assistance with TCP Reverse connection

I am creating an authentication server for some projects I'm working on. This authentication server works by receiving and transmitting data to users trying to authenticate. The user can send data to the server succesfully but when sending back it requires port forwarding. I read a way that I would not require port forwarding by using r...