vb.net

how to incorporate a batch file with vb.net

I'm currently using this method in calling batch files in vb.net: Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click System.Diagnostics.Process.Start("F:\ipconfigflushdns.bat") End Sub Is it possible to incorporate the code written in the batch file so that I won't h...

copy files in vb.net

I'm trying to create an installer like application. Here is what its supposed to do: create a directory in C: and name it batch. Then copy the files from the folder and move it to the C:\batch directory. But the copying of files doesn't work. How am I supposed to put the exact directory in here if that exact directory does not apply to ...

selecting a whole folder in vb.net open file dialog

is it possible to select a whole folder in vb.net open dialog box? ...

Please explain extension methods to me

I just looked at this posting: What is the best or most interesting use of Extension Methods you’ve seen? I've never heard of extension methods. Do they apply to every language? What is the point of them? In that particular posting I did not understand the example. ...

differences between ETL with vb.net and vb6

is it supper difficult to work with a mysql database or an access database through vb6? i know it is rather simple with vb.net ...

How to use the multiselect feature in open file dialog box

What code will I put in the open file dialog box_fileok if the multi select feature is enabled. I currently have this code, but it only shows in the textbox the last file that has been selected. Dim strm As System.IO.Stream strm = OpenFileDialog3.OpenFile() TextBox3.Text = OpenFileDialog3.FileName.ToString() If...

How to plot the graph(line) from a file in java?

I have a directory containing list of files. Those files have some list of values as x and y ordered as line by line. And my question is just I would like to read those files one by one and to plot line graphs based on those values. Could you please help me for that? ...

Using Hbase with C#

How can I use a Hbase database with C#/VB.NET ? (use=connect, query, get the result, insert, update, delete) I don't find useful answers with google. ...

when importing data from excel to vb.net file open problem

When importing data from excel to vb.net desktop application, Im having "file is open" error. Excel file is at the remote pc. Excel file must open and I have to reach anytime. How can I handle this problem? ...

How to create an event type with the selected customer type using checkbox list (VB.NET, LINQ to SQL)?

I have 3 tables: CustomerType CusID EventType EventTypeID CustomerEventType CusID EventTypeID How to create an event type with the selected customer type using checkbox list using LINQ to SQL and VB.NET? dim newEventType = new EventType newEventType.EventID = 1 db.EventType.InsertOnSubmit(newEventType) db.submitchange() Then I ...

.NET custom property attribute?

EDIT: I'd better rephrase: How can I shift the GET-implementation of a Class property to a / using a custom attribute? (I've added instantation vars (classname, propertyname) to the attribute, however I'd rather have these automatically fetched ofcourse.) Public Class CustomClass <CustomAttributeClass(ClassName:="CustomClass", Prope...

Custom resource provider - how to customize expressions for my need?

I have a custom IResourceProvider implemented for SQL. I store localized strings like this: LANGUAGE_LABEL (id, url, type, name, culture_code, value) I've created a helper which so I can go like: Html.Resource("Common, Hi") //Global resources ('Common' stored in `type`) Html.Resource("Hi") //Local resources ('path_of_v...

how can i add arabic in vb.net

i want to add arabic typing in vb.net .... so how can i do that... ...

How to tell if an object supports scalar comparisons?

Does anyone have a quick snippet or direction of how i would check to see if a given class supports the >, = and < operators? Given an object passed in, I am looking for code that implements the following logic: If GetType(someObj).SupportsScalarComparisons() Then ... I don't know if this is a case for Reflection, or ? Thanks in ad...

Create custom expression for localized business content?

In short: I have an SQL implementation of the IResourceProvider. So: <asp:Literal id="id" text="<% $ Resources : Common, SomeResource %>" runat="server" /> works and I've created a helper so I can pass a string expression and get the same result: <%=Html.Resource("Common, SomeResource") %> I want to localize business content. Whic...

how can i protect my dll library in vb.net

i have created a dll library and now i want to secure it....and distribute it to other...i want to provide a trial so that the user can see what it can do....how can i protect it... ...

Disable Common Tab in VB.NET Intellisense

When working in a VB.NET project in Visual Studio (2008 specifically, but hopefully the answer applies to any version) is it possible to have intellisense/auto-complete only show the "All" tab instead of the "Common"/"All" tab? Or alternatively, have it default to the "All" tab. Being predominately a C# developer having the editor try ...

how to make a windows forms app unresizable?

how to make the windows app in vs 2008 unresizable?because when you launch the application and point and drag to its corners, the window grows. ...

SQL Server - Multiple Select with Duplicate Names

I'm trying to grab some data from my SQL database as below; USE exampleDatabase SELECT TOP(1) [Name] FROM [Peeps] ORDER BY [Weight] DESC SELECT TOP(1) [Name] FROM [Peeps] ORDER BY [Age] DESC The problem is when I read the data I get an error 'Name'. Dim byWeight As String = sqlReader.GetValue(sqlReader.GetOrdinal("Name")) Dim byAge A...

How to Insert one to many relationship using checkboxlist in VB.NET, LINQ to SQL?

I have 3 tables: CustomerType CusID EventType EventTypeID CustomerEventType CusID EventTypeID How to Insert one to many relationship using checkboxlist in VB.NET, LINQ to SQL? dim newEventType = new EventType newEventType.EventID = 1 db.EventType.InsertOnSubmit(newEventType) db.submitchange() Then I want it to automatically ins...