Similar to the CSV file which can be downloaded from http://download.finance.yahoo.com/d/quotes.csv?s=RHT . How can I downloada file which requires authentication?
I can simply use
My.Computer.Network.DownloadFile("http://download.finance.yahoo.com/d/quotes.csv?s=RHT,MSFT,NOVL&f=sl1c1d1&e=.csv", "h:\s.csv")
To download the fi...
Hello,
I have pictures of each employee stored in SQL database with Image database.
Select pic from empimages where emp_ID=10
give the picture of that employee in binary format.
How do I create a physical jpeg in C:\images folder based on the above query in vb.net.
Thanks
...
This used to work.
<AcceptVerbs(HttpVerbs.Post)> _
Function Widget(ByVal collection As FormCollection) As ActionResult
...
If ... Then
ModelState.AddModelError(...)
ModelState.SetModelValue("Gadget", collection.ToValueProvider("Gizmo"))
Return View()
End If
...
End Function
I upgraded to ASP.NET...
I have a vb.net program that opens up an excel workbook and runs a macro ("Report") in that workbook when a button is clicked.
//Workbook with macro and form
xlWorkbook = xlApp.Workbooks.Open("W:Data\Excel Program.xls")
//Macro:
xlApp.Run("Report")
//Macro opens form from workbook. I browse for my two .csv files
//and the...
I am a Real Estate appraiser and have some limited experience with vb and .net. I have a task which I perform which requires me to go to the conuty appraisers web site and print a copy (to image bmp or jpg or directly to the default printer) of the current public record info for anywhere from a few pages to 1,000 plus records at a time.
...
Hi, I need update the text of a textbox when I do click on a button on a user control.
How I can do that?
...
Here's an example of a wasted day:
(1) I want to find out exactly what Binding.FormattingEnabled does.
(2) I type MSDN Binding.FormattingEnabled into google and go to the page.
(3) I read the 3, 'helpful', line description.
(4) I check out the bottom of the page for references.
(5) Never mind, non of those helped....
(6) I search g...
Hi, I've got a progressbar in my form that I want to increase the value of in increments based on number of files in a folder.
I guess this is pretty basic, but this kind of programming is pretty new to me.
So I've got these lines of code:
Dim directory As New IO.DirectoryInfo("C:\Temp")
Dim arrayFiles as IO.FileInfo() = directory.Ge...
i have a datagridview on the form i have some textbox cell on ther gridveiw i want to display only the data which i type on the datagridview textbox cell.Datagridview in populated with data.
...
Assume I have a large dataset and I want to run a "like" function in the dataset eg column - Name
Is there any way to run a like statement in a dataset.
Is it possible with ASP.NET?
I dont want to run a query to the database.
Thanks
...
I have an element that I'm trying to style:
<tr runat="server" id="row" >
...
</tr>
And I set the style programmatically:
row.Attributes("style") = "background: #cccccc;"
I get this output:
<tr id="SearchResults_myRepeaterPlain_ctl04_row" style="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border;...
I'm trying to build a form which generates itself as it is used. I have created a really simplistic example, loosely related to what I'm trying to do below, but which demonstrates the problem.
The user types a word in the text box, clicks the Button and a new TextBox is loaded into a Panel, with the value in the original TextBox that t...
My project is built in VB.Net
Many times I find that Visual Studio has added subroutines to my code files even if a subroutine of the exact same name already exists. This can cause debugging nightmares as the new empty routine seems to override the correct routine. I think this can happen if I double-click on a control in the form Des...
Several times while debugging a VB.Net program I have found that continuation lines are missing from a subroutine designed to handle an event. The continuation character "_" is there but the following line is missing
Example:
Friend Sub TV_Main_Network_MouseDown _
Handles TV_Main_Network.MouseDown
Will become
Friend Sub...
I've been bitten a couple of times by statements in VB.NET (not sure if this effect exists in C#) that appear to be self-referencing, but when they're executed, they don't actually do anything because they require a target and one isn't provided. For example:
Dim MyString as string = "String to test"
' Neither of these lines do anythin...
I posted a similar question before, which worked in C# (thanks to the community), but the actual problem was in VB.Net ( with option strict on). Problem is that tests are not passing.
Public Interface IEntity
Property Id() As Integer
End Interface
Public Class Container
Implements IEntity
Private _name As String
Pri...
can somone tell me how to write these hexadecimals to an exe file while still having it exec
4D 5A 50 00 02 00 00 00 04 00 0F 00 FF FF 00 00 B8 00 00 00 00 00 00
00 40 00 1A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 BA 10 00 0E 1F
B4 09 CD 21 B8 01 4C CD 21 90 90...
I'm having some trouble updating changes I made to a datatable via a dataadapter. I am getting "Concurrency violation: the UpdateCommand affected 0 of 10 rows"
'Get data
Dim Docs_DistributedTable As New DataTable("Docs_Distributed")
Dim sql = "SELECT DISTINCT CompanyID, SortKey, OutputFileID, SequenceNo, DeliveredDate, IsDeliveryCodeCou...
I have a WinForms class that presents a TreeView of some network nodes. I have a separate module that interfaces with the network and detects when nodes are added or removed. I would like the module to trigger the TreeView when the network changes.
Example
Public Class Main
Friend Sub TV_Main_Network_Click ( ByVal sender As Sys...
My question involves async operations in VB .NET.
Given the following:
Delegate WorkerDelegate(Byval asyncOp As AsyncOperation)
Public Sub StartWork()
Dim worker as new WorkerDelegate(AddressOf DoWork)
Dim asyncOp as AsyncOperation = AsyncOperationManager.CreateOperation(New Object)
// begin work on different th...