Все вопросы: [vb.net]

4 708 вопросов

похожие теги: vb.net-2010c#-to-vb.netvb.net-to-c#
0
голосов
2ответов
105 просмотров

Run.Cs or.Vb files without calling the in asp.net

By security reason I ask this... Can .cs or .vb files to run in any way without calling those in asp.net?

0
голосов
2ответов
1665 просмотров

Getting Error while sending the email in .NET

I have an application was working fine and all the email functionality was working fine. From yesterday, I started getting below error Error Message:Service not available, closing transmission channel. The server response was: 4.3.2 Service not available, closing transmission channel My VB.ne...

2
голосов
5ответов
2725 просмотров

How to catch inner exception in .NET?

How can I catch an inner exception in .NET? I need to check 2 databases for a record. The database code throws an exception if a record is not found, so then I want to check the second database: Try # Code to look in database 1 Catch ex as DataServiceQueryException Try # Co...

0
голосов
1ответов
1433 просмотров

Converting System.Linq.IorderedEnumerable to DataView

I am trying to get the DataView from a linq query expression which is querying a typed dataset. The result lands in a type of System.linq.IOrderedEnumerable. But i'm not able to convert this type to a Dataview although a few examples on the internet say that AsDataView function shoudl work but co...

1
голосов
4ответов
1435 просмотров

Converting C# console app to VB.NET and VBA

I have to convert a C# project to VB.NET and VBA. It's a console app that uses the Microsoft Office API (Microsoft.Office.Interop.*). My two questions: C# -> VB.NET: .NET Reflector is a good tool for this, except that it doesn't preserve source code comments. Is there a way to do this? .NET...

7
голосов
1ответов
7365 просмотров

Associating file extensions with a program

I get how to do it, and i have been to http://www.codeproject.com/KB/vb/VBFileAssociation.aspx before. My question is about what doing that does, is it possible to reverse it? What if you do not know where your program will be, and you are just testing it for now? Is there any way for it to "find...

0
голосов
3ответов
2602 просмотров

Using VB.NET to log into Windows Live Mail?

I want to make a program that tells you if you can login to an email account or not by entering their username and password into Windows Live. It would connect to the Hotmail server and see if the user/pass combination is correct. If it can log in, it would display a label that the account is v...

2
голосов
2ответов
2931 просмотров

ComboBox's Selected Value Changed On Lost Focus in VB.NET

I have a datagridview(dgv) with a DataGridViewComboBoxColumn(colLocation) colLocation.AutoComplete = False colLocation.HeaderText = "Stored to" colLocation.DataSource = DB.getLocation() colLocation.DisplayMember = "description" colLocation.ValueMember = "id" I added the colLocation to dgv. "d...

0
голосов
2ответов
660 просмотров

VB.net simple threaded GUI based program. Where to put the thread

I have written a small GUI based vb.net program that speaks to embedded devices via the com port. The GUI code contains a class which all communication to the embedded device is handled through (com port device, communication protocol, parsing info, holding device related info after each read).Th...

0
голосов
2ответов
2110 просмотров

show last four digits of SSN

I want to only show the last four digits of a Social security number after they leave the textbox. Does AJax have a tool for this that I am not aware of? How can i do this? I want to replace the digits with '*'. I'm working in .NET. Ajax is also accessible.

0
голосов
1ответов
1096 просмотров

VB.Net Linq To SQL Sub Select

I have the following query which groups some records and then filters where the count of the grouped records is 1. I'd like to take the returned result and perform another query to retrieve the entire record from the JobcodesWorkingRollup table where the ParentNode column equals the result of th...

0
голосов
1ответов
2024 просмотров

VB.NET restore Backup file created on one server to another server

i am using SQL server express 2005 as an backend. I created a backup file programmatically.If i use same server , then it restore the data successfuly. however if we try to restore on different server, then it fails. and throw following message "The Backup set Holds a backup of a database other ...

0
голосов
1ответов
1173 просмотров

Saving a Date/Time Stamp from VB 2005 to MS Access

I am coding ib Visual Basic. I need to store the current system time in MS Access timestamp field. How do I go about it. Dim row As DataRow = ds.Tables("StudentTable").NewRow row("SSMA_TimeStamp") = System.DateTime.Now.ToString()

0
голосов
2ответов
210 просмотров

what is the keywork of App_Path in vb.net?

what is the keywork of App_Path in vb.net?

3
голосов
4ответов
2520 просмотров

Generate key for a software developed using vb.net

Hai guys, I ve developed a salary calculating software using vb.net.... Its working fine and i ve converted it to an exe file... My drawback is it can be copied and pasted in another system very easily... I want to generate a key for the exe file and while installing the key should be use...

0
голосов
2ответов
1075 просмотров

How can I have custom images in GridView Pagination

I am using VB.net for coding. I am having GridView Control in my application. <asp:GridView ID="GridView1" runat="server" CssClass="innerGridTable" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="TrainerID" DataSourceID="TrainerSearchDataSource"> &...

9
голосов
3ответов
5017 просмотров

VB.NET Aliases (as in C#)

There is Aliases feature in C# that allows to work with different assemblies, containing equally named entities (classes, structures, enums). It is activated when you choose an assembly an referenced assemblies list. But I can't see any similar in VB.NET project. Is there such a feature in VB.NET...

4
голосов
2ответов
3442 просмотров

Icon.ExtractAssociatedIcon for things that are not files?

Is this possible? It gives me an error, and I had previously thought it could work for folders and drives and stuff like that as well. Icon.ExtractAssociatedIcon("C:\") did not work when I tried it, and threw an error. How can I get the associated icon from EVERYTHING? This is vb.net

0
голосов
3ответов
7124 просмотров

ASP Net - How to open up a form in a new window in ASP.NET

I am working on ASP.net using VB.net. I need to load a page in a new window on button click. Can someone suggest the code for the same.

1
голосов
1ответов
1976 просмотров

Create pdf file from Binary data using itextSharp

I want to create a pdf file from Binary data. I looked around and found examples using iTextSharp by fetching data from the database. But almost all of them show how to display in the browser. I want to create a file like pdffromDB.pdf instead of displaying as shown below doc.Close(); Response....

2
голосов
3ответов
416 просмотров

Visual Basic (for Applications) Learning Resources

As resident techie I have been charged with teaching some colleagues VB specifically for use with Excel. My main duties involve MySQL and Objective-C and haven't touched VB since University. While I'm not worried about the prospect of learning VB (how hard can it be, right?). I have no clue on w...

1
голосов
1ответов
1574 просмотров

VB.NET - Webrowser freezes when navigating from Form Load event

I'm trying to load up a YouTube page using Visual Studio 2008 and a very simple Visual Basic project that contains just a WebBrowser. I want to load the page when the form loads: Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load WebBrowser1.Navi...

20
голосов
6ответов
17556 просмотров

Finding all Namespaces in an assembly using Reflection (DotNET)

I've got an assembly (loaded as ReflectionOnly) and I want to find all the namespaces in this assembly so I can convert them into "using" ("Imports" in VB) statements for an auto-generated source code file template. Ideally I'd like to restrict myself to top-level namespaces only, so instead of:...

0
голосов
3ответов
668 просмотров

Weird problem with Visual Studio 2008 website reference

I'm trying to add a reference to the GAC version of System.Xml in a Visual Studio 2008 web site project. I right-click the project icon in the Solution Explorer, and click Property Pages. Under the References tree option, I click the 'Add' button on the right. I navigate to System.Xml in the ....

5
голосов
3ответов
2119 просмотров

How to Save a setting for All users under Vista

I need to save a setting which is then available to all users of the application on the given machine. It needs to work on Vista/Win 7, and the application won’t be started as administrator. Can’t Save to program directory as the Program Files folder is protected on Vista Can’t save to HKEY_LOC...

0
голосов
3ответов
1621 просмотров

Cast a variable to a type represented by another Type variable?

I'm aware that questions like this have been asked before and I doubt it's possible, but I just wanted to make 100% sure that it isn't. In VB.net or C# (either language, it doesn't matter), I want to cast a variable to a type represented by another Type variable. Here's an example of the kind o...

2
голосов
3ответов
4332 просмотров

asp.net web application with c# & vb.net both in codebehind

We currently have a asp.net website with some modules developed in VB.Net & some in C# (not just classes but also individual aspx pages and code behind). We figured we wanted to move to web application model as we need to implement CI with TFS. The problem : When we create a C# web applicat...

6
голосов
7ответов
21340 просмотров

Generate random strings in vb.net

I need to generate random strings in vb.net, which must consist of (randomly chosen) letters A-Z (must be capitalized) and with random numbers interspersed. It needs to be able to generate them with a set length as well. Thanks for the help, this is driving me crazy!

1
голосов
6ответов
497 просмотров

Should I load everything in memory upon application start?

I'm using VB.Net, and I have a set of data which I have to able to filter through fairly quickly. Basically, the program is like google sugest, but instead of a drop-down menu, I'm using a listbox. When a user enters a word, I compare the word using LINQ and filter those that contain the user's i...

0
голосов
2ответов
480 просмотров

I need a UI-Editor for my custom Direct-x UI

I have developed a custom DirectX UI library equipped with everything from buttons to a gridview. I need a screen-layout editor of some sort. It just takes too long to do it by hand, whether through a config file or hard-coding. I could spend a month or two developing a DirectX editing utilit...