Topics
-
-
- Administrators
- 9 replies
- 10.2k views
Upload File via FTP (URI is invalid for this FTP command) I just wanted to upload a file to a WebServer (on which I have full access) with my program, I didn't expect it would be so bothersome. I finally decided to use FTP for this action, but I have run into some problems: I'm using the example from http://msdn2.microsoft.com/en-us/library/ms229715.aspx Converted into VB.NET Imports System Imports System.IO Imports System.Net Imports System.Text ... Dim FTPCon As FtpWebRequest FTPCon = WebRequest.Create("ftp://[HOST]:2100") FTPCon.Method = WebRequestMethods.Ftp.UploadFile FTPCon.Credentials = New NetworkCredential("[uSERNAME]", "[PASSWORD]") Dim FileConte…
Last reply by mike55, -
-
- 1 reply
- 993 views
Hi anyone here to help the others:) I have some questions about application references: 1. When I add components to my application, some of them have the "Copy Local" property set to True and some of them set to False! To publish do I need to set all them to True? 2. I have used some COM components in my .NET application. So do I need to register them on target machine using RegSvr32.exe? 3. In the references tab, there is a path to the components! Should I manually copy the components to the application folder and re-add them to the project with the new location? This path may change in the user's system! Thanks all:)
Last reply by MrPaul, -
- 1 reply
- 644 views
Hi all, I just created a VB.NET project in VS.NET 2005. It created 2 folders in the project folder named "bin" and "obj". Each of these folders have 2 subfolders named "Debug" and "Release". Now I want to know the files in which folder/subfolder should be published to my users? The interesting fact is that my executable file in folder "Debug" is a little bit larger than the one in "Release" folder! :confused:
Last reply by MrPaul, -
-
- Leaders
- 8 replies
- 1.1k views
I am a newbie to C# and I am sure this is a very basic question for you guys. In vb, we had a "handles" for the code block right? What is the version for this in C#? Thing is, in VB I had the habit of adding another control's event to a common control. And I can't seem to be able to do it in C#. Thanks in advance for helping out a newbie!
Last reply by Eduardo Lorenzo, -
-
-
- Administrators
- Leaders
- 9 replies
- 1.6k views
Why with some function do I have to use an AddHandler statment but with other I can create a function and use the handles statement? For example with the format event of a bound control you use the below statement but there is no way I know of to make a sub and use the Handles keywork. AddHandler textBox.DataBindings("Text").Format, AddressOf FormatName Thanks!
Last reply by Mike_R, -
-
-
- Administrators
- 10 replies
- 1.5k views
My goal is to wrap the multimedia functions into a class that operates similar to the timer control. I need something with a high accuracy and precision. It works but I dont think Im managing the threads right. Heres what I do: Imports System.Threading Imports System.Threading.Thread Public Class CTimer Private Declare Function timeGetTime Lib "winmm.dll" () As Integer Private Declare Function timeBeginPeriod Lib "winmm.dll" (ByVal uPeriod As Integer) As Integer Private Declare Function timeEndPeriod Lib "winmm.dll" (ByVal uPeriod As Integer) As Integer Public Event TimerElapsed() Private CheckThread As Thread Private objLock As Object Privat…
Last reply by Mike_R, -
-
- 0 replies
- 835 views
Hi, I'm having a bit of trouble with the DropDownList control, on a bit data type. I have one screen for inserting records, and another for updating. The insert works fine, but my update screen keeps crashing with the message "lstBluetooth has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value" The code I have for the dropdown is: <asp:TemplateField HeaderText="Bluetooth"> <EditItemTemplate> <asp:DropDownList ID="lstBluetooth" runat="server" Width="100px" DataValueField="Bluetooth" SelectedValue='&l…
Last reply by joker77, -
- 1 reply
- 3k views
Here is the code: ReportDocument rptShippingList; rptShippingList = new ReportDocument(); rptShippingList.Load(Application.StartupPath+ "\\FullCartonPickingInstructionList.rpt"); ParameterDiscreteValue y = new ParameterDiscreteValue(); y.Value = "Transfer"; ParameterValues x = new ParameterValues(); x.Add(y); ParameterField param = new ParameterField(); param.Name = "Transfer"; param.CurrentValues = x; rptShippingList.ParameterFields.Add(param); <---Problem:confused: Everything is fine until the last line. I got a NotSupportedexception which I have not idea what the problem is :( I have already search the web but no one seems to have such pro…
Last reply by Worrow, -
- 0 replies
- 931 views
Hi All I hope you can help.. My company bought in Visual Studio 2005 a few weeks back, so that we can develop in house Front Ends for our SQL databases. I have been given the task of creating these applications. I do not have any prior programming experience apart from coding in Access 97 and 2000 but really only basic stuff. I have a few Visual Studio 2005 books but at the moment going on courses are out of the question, so my next helpline is yourselves.. My company has asked for an application that can do the following. All computers run either Windows 2000 or XP and the servers are 2000 or 2003 Part one - Network Scan Type in a Start IP - End Ip and scan all…
Last reply by 1druid1, -
- 0 replies
- 591 views
hi There is a difference when i use marquee as style for my progress bar and when I see the progress bar that Microsoft has used with marquee style. If you see my snapshot you will find out the difference. Is it possible to use the other one with smooth ledges?
Last reply by ADO DOT NET, -
-
- Administrators
- 3 replies
- 818 views
Hi, I want to get the prompt to elevate to admin in Vista for my application written in VB6. I found a tutorial here: http://www.xtremedotnettalk.com/showthread.php?t=98234 But it's only valid for VB.NET, how should I do the same in VB 6? Thanks :)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 5 replies
- 1.9k views
Hi guys! I have a structure like this: Public Structure SendBuffer Public MagicCookie As Short Public Command As Short Public Length As Integer Public Data As Byte() End Structure and I would like to convert it to a 1-dimensional array of bytes. is there a fancy and swift way of doing this or do I have to do it manually?
Last reply by snarfblam, -
-
- 0 replies
- 604 views
Is it possible to add objects to the listbox? Or am I getting confused with windows forms. Its constructor only has two overloads, As String and As Listitem. ?????
Last reply by Mondeo, -
-
- Administrators
- 7 replies
- 858 views
Hi, I have a user control dropped onto a web form, the user control contains four textboxes. From the main form how can I access one of the text boxes on the user control (I just want to read its text property) Also, while on subject how to you do it the other way round? How does the user control access the form properties? Thanks
Last reply by Mondeo, -
-
- 3 replies
- 896 views
I am looking for feedback on this code/idea. What I want to do is load tables and throw away tables as needed. Some tables I will want to keep loaded for a while. For example, at runtime I find that i need a table so I try to get it from an array. If it's there, get it, if not load it (this isn't shown below; I add 5 dummy tables for testing) When I'm done with it (whenever that may be) I remove it. I started with the code basically mimicking PlausiblyDamp's suggestion in this post: http://www.xtremedotnettalk.com/showthread.php?t=83236 It sorted fine, but when I went to do a search on the array, it crashed because I was passing the table name and not a "Tabl…
Last reply by alreadyused, -
-
- Administrators
- 2 replies
- 720 views
When I preview the page, it displays fine. But when I try to bring it up normally in the browser and not through the ASP.NET Development Server, I get the following message: Parser Error Message: Could not load type System.Web.UI.WebControls.TreeView from assembly System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a I'm not sure what this means. Has anyone seen this? I've tried searching the search engines but haven't seen anything promising so far. Any help would be appreciated. Thank you! Caeanis
Last reply by caeanis, -
-
-
- Administrators
- 1 reply
- 1.8k views
I am building a COM Add-in for Outlook 2002 using VB .NET. I am trying to use Redemption DLL to access a MailItem message id, which is not provided normally. I have installed the developer version of Redemption, then added a reference to Redemption in my VB .NET project. The result is that i can no longer build without getting the error message, "Unable to emit assembly; Referenced assembly 'Interop.Redemption' does not have a strong name". Do you know what i have to do to get around this?
Last reply by PlausiblyDamp, -
-
- 1 reply
- 558 views
We're converting some Excel spreadsheets to an ASP.NET application. During the transition process we want to offer the facility for users to download an excel spreadsheet similar to what they are used to. This will be generated on the fly from an asp.net page. So whats the best way to generate an excel file programatically. Not too bothered about formatting, but we would need multiple tabs/worksheets within the Excel file. Thanks
Last reply by MrPaul, -
-
- Administrators
- 1 reply
- 618 views
Greetings to all, I am logging my errors in Windows' Event Viewer. However I would like to be able to write these logs in a different (custom) Log File instead of the native 'Application' log file. Is that possible? Could someone give a hint? thank you very much
Last reply by PlausiblyDamp, -
-
- 0 replies
- 666 views
Can anyone recommend a good (perferably free) tab control for asp.net 2.0. Thanks
Last reply by Mondeo,
-
Who's Online 0 Members, 0 Anonymous, 56 Guests (See full list)
- There are no registered users currently online