Justin Ghantous's Q&A profile
Visual C# Accessing FTP site from C#.net
Hi, I need to know the best possible way to access and download files from an FTP site which is an internet site. This should work in .NET framework 1.1 and should support proxy mode. It would be better if someone shares sample code to achieve the same Thanks, John. Hi Using System.Net.WebClient you can send and recive information from any web site hosted in internet. I don't exectly know that it ...Show All
Visual Studio Express Editions overriding a read-only property
How do you override a read-only property, e.g. tlstrpmnuitm_example.CanSelect = False If you are trying override a property from a base class and overrides does not work try shadows instead. ...Show All
Windows Forms Access to Windows.System.Forms.Control from other classes
Hello, I have a Problem: In my MainWindows I can easy access the Control - it ist simply "this". In my MainWindow I use a Class DrawingUtils an this class use other classes like Figure, witch should be draw: Code: ------------------------- ...Show All
Visual C# Data binding hell
Something so easy causing so many greys.... void fetchNames() { comboBox1.Items.Clear(); OracleDataAdapter dAdapter = new OracleDataAdapter("select name from people order by id",myOracleConnection); &nb ...Show All
SQL Server display time for tooltips on reports built in Reportserver
Hi All, Users Love the tooltips. But the tooltip disappers in very very short time, before they get to read it. Can any one helpme in cotrolling the lenght of the time, tooltip is displayed. Regards Bobba I closest I could get is ask users to go to controlpannel>display>appearance>advanced>item>tooltip. But it only lets me change the font. If any one found a way to control t ...Show All
Visual Studio Express Editions BindingSource.Filter Problem
I am new to Visual Basic programming and I am having trouble filtering a column in a DataGridView. The code I am using is the following: Dim sText As String sText = Me .ComboBox_Set.Text List_Screen.Player_InfoDataGridView.DataSource.Filter = "Make2 = '" &sText& "'" I have seen an example of this that supposedly works, but it's not for a String, but an Integer. When I type this code, an error mes ...Show All
Visual Studio Tools for Office Create shortcut to xls on users desktop in setup project
I have created a VSTO solution based on a excel sheet. Everything works great! Only thing missing is when the solution is installed a shortcut to the xls sheet is placed on the users dekstop. How can this be done Hi Philip, You can add the excel file (from the VSTO project output folder) as a separate file to the Setup project and then use the 'Create New Shortcut' context menu in 'User's Desktop' folder ...Show All
Smart Device Development files on remote computer?
Hi. Wondering if there is a way of retrieving files/directories etc... using the .NET classes I would like to retrieve this information on my remote computer (local computer which has the mobile device connected to it) I can connect using tcpclient but when i try to get a list of files/directories using: string [] theFiles = Directory.GetFiles("\\ComputerName\drive$"); I get an IOException. However the IOException does not give m ...Show All
Visual Basic Word automation and System.IO.FileNotFoundException error
Hello, I'm having problems with an application that is automating word. I'm using VS .Net 2003, (Visual Basic), WinXP Pro, Office 2003. Here's what I doing: Imports Microsoft.Office.Interop ... Try Dim oWord As New Word.ApplicationClass ' Place call to COM object here. Catch ex As Exception MsgBox(ex.ToString) ' Display information about the failed call. End Try Here's what I'm gett ...Show All
Visual C# Are strings any easier in the new C#?
I stopped using C# about a year ago. I hated the complexity of using strings. Gone were the days of MyString = "Hello"; I had to now make an object. String manipulation, which was once easy using MID, RTRIM, REPLACE, etc., now is tedious. Anyway, I was wondering if the newest version of C# has made it any easier Um, you couldnt do - string s = "Hello"; what was so hard a ...Show All
.NET Development How are delegates cleaned up?
If I expose a delegate for classes to connect to, and the class goes out of scope, is the delegate automatically decremented. Or does the target property of the delegate keep the class in scope and prevent it from being cleaned up in the first place Example... class Lottery { YouWinHandler YouWinEvent; } class Person { Person(Lottery lotto) { lotto.YouWinEvent += new YouWinHandler(OnIWin); } void OnIWin() { } } ...Show All
Smart Device Development How to Install MSMQ for Pocket PC 2003?
Hello everyone, Yes I'm so excited that CF 2.0 is implementing MSMQ for Pocket PC 2003 BUT how do I install it I tried installing MSMQ with visadm provided with Pocket PC 2003 SDK and following the steps by using the shorcuts Install and Register but nothing really happens except the message " MSMQ not Installed". Does anyone have any idea Thanks in advance Nick Take a look at the Mark's blog: ...Show All
Visual Studio 2008 (Pre-release) The request for security token could not be satisfied because authentication failed.
Hello, I'm working on an ASP.NET application that i want to host using WCF using "basicHttpBiniding" . The hosting should be done in a windows service. I've did a test by hosting the service in a console application (instantiating a ServiceHost in a console application project), everything worked fine. The same project is now transferred to be a windows service, i receive an exception "There was no endpoint listening at http ...Show All
Visual Basic Accessing FTP server?
How can i access FTP server using vb.net I want to upload, downlaod, delete, rename files on FTP server and change directories on FTP server as well. thanks ftp://contoso.com/ %2f path this is the answear I was looking for. Thank you very much! ...Show All
.NET Development oleDbCommand Fill error
Hi, I have a dataset that is filled from a OleDBCommand that reads an excel file. This dataset is a typed dataset with a specific definition, meaning that it has some fields of type Double and others type string. For some strange reason when I tried to the Fill from the OleDbCommand I got an error that said: "Input string was not in a correct format. at System.Data.DataColumn.set_Item(Int32 record, Object value) Couldn't store < ...Show All
