The C# code is:
DataContext db = new DataContext(MyProject.Properties.Settings.Default.MyString)
I am trying to convert this app to VB.NET but VB.NET does not seem to have a .Properties on the project. I am probably confused about what that C# is actually doing. I assumed it was trying to get the string out of the app.config (both ver...
I'm trying to save some layouts from DevExpress Grid Controls so that users can change the layouts and reload them in at a later use of the control.
My question is this for speed issues I am loading the control via a user control inside of a form. Now my problem is I am creating the control by adding an instance of the control to a pane...
I am reading a csv file in to a datatable in vb.net and making a few checks and appending an extra column.
I then want to perform a bulk insert using microsofts Oracle.DataAccess (no choice in this) to an Oracle database.
what would be the best way to perform this as there is no bulkImport like in SQLserver.
thanks
...
I am trying to bound combobox to a collection. Collection is returning 3 cols. How do I a specify DatavalueField and Datatextfield to 2 of the columns returned in my collection?
When I write following code Combox is populated with text showing MfnBusinessData.Item for each item.
Thanks
Dim ItemCollection As Collection(Of MfnBusinessDa...
So say I have a dropdown control, and after the user uses the drop down, I want a checkbox and label to appear, AJAX style, without a full postback.
How can I implement something like this? Examples of code (or links to them) would be great.
I played around with this some using updatepanels but I can't get it working right...
...
i have published my project and exe file has been created....
now i want to make a installer with some other applications...i have
myproject.exe
.netframework 3.5
adobeflashplayer.exe
now i want to make a single installer that should install these application at once...how should i do that
...
Hi,
I have created a tab control and few forms. Each form opens in a separate tab when a button is clicked
I have take care so that the form does not open again in a new tab if its already open. But I am having trouble bringing the tab to focus.
I want to Select the From in the tab and bring it to focus if its already in the tab lis...
I'm running in to a problem that I was able to fix with Application.DoEvents, but don't want to leave that in because it might introduce all sorts of nasty problems.
Background:
Our app is primarily a desktop app that makes many calls to a web service. We control everything but changes to the overall system design are not going to be s...
What is a good approach to managing a debug and release connection string in a .NET / SQLServer application?
I have two SQL Servers, a production and a build/debug and I need a method of switching between the two when my ASP.NET application is deployed.
Currently I simply store them in the web.config and comment one or the other out, h...
Hi,
I'm looking for some sample .Net code that would show how to send text messages to pagers. I have no problem with sending text messages to cell phones but could not find how to do the same for pagers.
Can you please help?
Thanks,
Lev
...
Can someone explain this to me.
I am pretty good with perl regular expressions but evidently I am at a loss on why this doesn't work.
The code below stores "Person Test" in output variable.
im output As String
Dim userName As String = "Test, Person"
Dim re As New Regex("(\w+),\s(\w+)", RegexOptions.Singleline)
output = re.Replace(userN...
I am trying to make my site fully w3c validator compliant.
At the moment, I am getting an error because a table which is generated programatically and insterted into a label's text attribute shows as a table nested in a span tag.
e.g
MyPage.aspx.vb
strHtml = "<table><tr><td>Hello World</td></tr></table>"
Me.myTable.Text = strHtml
...
Good evening,
I am working on a program where some application config info is stored in a Userconfig.xml file. I am loading the file as an XMLDataProvider in the XAML via relative URI:
<XmlDataProvider x:Name="UserConfigDataSource" x:Key="UserConfigDataSource" Source="UserConfig.xml" d:IsDataSource="True"/>
I have a number of items ...
I have the following error for every cell:
"the number in this cell is formatted as text or preceded by an apostrophe"
To duplicate the error:
I have to store this results that come from a Web services as strings array:
Sample: (3 by 3 array)
$402,568.03 26.2% 30,052
$107,719.59 7.0% 55,176
$81,370.35 5.3% 54,365
let values ...
I know that is strange situation, but I need to embed an EXE file (or the assembly code) into my project, so it can be started only by the application (it can't create the EXE in the filesystem and start it)...
Is it possible?
Edit:
It's not a .NET EXE. Anyway I added the Test.exe file as a resource to my project and I did this
D...
Hi, I'm using VB 2008 Express for our College Project. I'm also running SQL Server 2008 Express and have installed SQL Server Management Studio and used it to create my database.
Both software have been installed and running locally. I'm trying to connect to the database from VB 2008 Express. Database connection wizard have 3 options: ...
Hi, ive searched everywhere and cannot find how to post data using vb.net
So i was wondering if someone can convert this curl code I made into vb.net :)
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_...
I have an ASP.NET page with code-behind in VB.NET. On the ASPX page I have a Repeater with an asp:ImageButton inside the repeater and I want to catch the clicks on the button. As far as I read I have to use FindControl and then handle the copy of the original control:
Codebehind:
Dim imagebutton1 As ImageButton = repeater.FindContro...
My goal is to control an application from VB.Net. There is no API, and I do not have the source, only the compiled exe. Is there a way to find the opened application, find a button within the application, click a button and know it was clicked? Is there a way to read the contents of a textbox within the application?
...
Hello,
I have a ASP.net 3.5 web application developed in VB.net I am using iTextsharp component to generate PDF document from the ASP.net page.
I am retreving the PDF documents stored in the db and merging them into one PDF. using the memorystream.
But when I try to merge around 1000 pdfs with each containing 2 pages, I am getting Outo...