Jackson Gomes's Q&A profile
Visual Basic How can I, if at all possoble, create an FTP Server
I'm a beginning developer and i need to create an FTP server imbedded in an application. This is the last thing i need to do to finish the program. I need to make it so the server is only available when the application is running. Try this site at the bottom of the page. modwinin.bas http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/all_functions.asp ...Show All
Visual Basic Loading and showing a form in a Panel control
Is it possible to load and display a form inside a panel control using Visual Basic 2005 and if so what code do I need to handle this. Regards Dipendra Actually, I tried it and it does work nicely - the key element when I tried it previously (and missed) was the .TopLevel property... . What you could do, is set the borderstyle (of the form) to None and see how that goes. Even so, logically, UserControls would probably be better, but it's good to know that the above works. ...Show All
SQL Server Reading from a XML Source
I am trying read certain attribute from a XML Source based on a particular attribute. My XML source has the following Structure:<Database ID = "1" Source = "ABC" ></Database><Database ID = "2" Source = "ABC" ></Database><Database ID = "3" Source = "DEF" ></Database>. I would like to fetch the list of IDs filtering upon Source = "ABC". (which should idealy give me 1,2) I tried using the For Each Nodelist Enumerator By specifying the Enumeration type as Node and IDrect Input for the OuterXpathString as DATABASE[@Source="ABC&q ...Show All
SQL Server Complex Query
Hello, I am having trouble in getting the expected results. I have two tables as below. I need Idno,transdt,cd,cycdt,amt from joining two tables. The criteria is that if the transdt greater than same month of cycdt then we need get the next month cycdt and corresponding amount for that, if it is less than or equal to same months cycdt then get the same months cycdt and amt. Cd is dummy field which can be anything. I am using sqlserver 8.0 table1 idno,trandt,cd 12345,04/15/2005,cd1 12345,04/15/2005,cd2 12345,04/22/2005,cd3 12345,07/03/2005,cd4 12345,09/10/2005,cd5 3421,03/05/2005,cd6 3421,05/06/2005,cd7 3421,07/04/2005,cd8 3421,07/15/2005, ...Show All
Visual Basic reading text from a document and displaying it
I have TextBox1 (to enter what you want to search), TextBox2 (to display the results), and Button1 (when you press it, it does the whole process thing). I was given this to go by: ================================================================== Theres a couple of steps in a possible approach here. One is to be able to read the contents of a file. If your using VB Express / 2005 this is possible using dim sContents as string = My.Computer.Filesystem.ReadAllText("c:\foo.txt") the next is to be able to find a match on your textbox entry you can use the instr meth ...Show All
Visual Studio Tools for Office Trust Warning
I had already posted this in my Trust Load Customization post. I've tried so many things my head is spinning. I need more help and wasn't sure exactly where to post this follow up in my original post. I'm getting a warning that says "The assembly must be granted full trust before the solution will run. For more information see Help." It seems that the trust issue relates to the spreadsheet and not to my vb.net code (I think). The application runs in debug mode from within VS. It also runs if I run the Excel file that lives in the Debug folder. Since I've barely started it, I haven't tried to make a deployable application. ...Show All
Windows Forms Can Two UserControls Talk To Each Other?
Can two usercontrols hosted by a single html file can talk to each other Can someone post a sample Thanks in advance. Kiko It depends on what type of commutiocation do you want. The obvious things coming to my mind right away are: 1. Use windows messages, as these controls are windows and you can obtain their handlers and names if a ...Show All
SQL Server SSIS Service won't start
I've been completely unsuccessful so far in getting the SSIS service to start under normal circumstances. I've got the SQL 2005 RTM DVD and a clean, brand-new installation of Windows 2000 Server (Service Pack 4). All system requirements have been met according to the SQL installer. I choose to install just the Database Engine, SSIS and the Workstation components, all other installation options are defaults except Services, which are set to use a Domain User account. The install completes without problems and the SQL Server & SS Agent services start suceessfully, but the SSIS service refuses to start (timeout). If I chang ...Show All
Windows Forms Custom menu items serialization ...
Hy! I have build in VB .NET a custom menu which displays icons to each menu item. The StyleMainMenu inherits MainMenu and StyleMenuItem inherits MenuItem. For StyleMainMenu I have a toolboxbitmap and I can choose to insert directly from toolbar a style menu to the form. But, at design time, when I add menu items, they are made as "new MenuItem", not as "new StyleMenuItem". Question: how can I make that, by design time, the menu items to be as StyleMenuItem Thanks. Insert this into StyleMainMenu: [Editor(typeof(StyleMenuItemCollectionEditor), typeof(UIEditor))] public new Menu ...Show All
Visual Studio Team System Install guide for Beta3 Refresh
Hi there, Where do I find install guide for Beta3 refresh Is there a seperate installation guide for Beta3 refresh server setup or we can use Beta3 Installation guide Also does beta3 refresh install also need clean OS install or we can just uninstall Beta3 and install beta3 refresh or just updrade Beta3 to Beta3 refresh Thanks, Anu Rob Caron posted a link to the Beta 3 to Beta 3 Refresh Guide. http://blogs.msdn.com/robcaron/archive/2005/10/31/487324.aspx Buck ...Show All
Visual Studio Team System Unattended Team Explorer (Client) Installation
Hi, I am trying an unattended team foundation client (explorer) install. I first ran <cdrom>:\tfc\setup.exe /createunattend <inifile> to create the unattend file. Unfortunately, when I then tested the ini file with <cdrom>:\tfc\setup.exe /unattendfile <inifile > the installation failed. What is the correct unattended TFS client installation command Similarly, the setup.exe / shows a /inifile option that provides the TFS configuration information. What do I place in the inifile to get this to work Thanks in advance, Mark ...Show All
Visual C++ _findfirst() prototype changes
I recently noticed a difference in the function _findfirst() From msdn we have: VC6: long _findfirst( char * filespec , struct _finddata_t * fileinfo ); VC2005: intptr_t _findfirst( const char * filespec , struct _finddata_t * fileinfo ); Since I need to build code to support multiple versions of VC++ I need some way to distinguish which version to use. Otherwise I end up getting type problems which results in either warnings or errors. Should I filter for compiler version in preprocessing or is there another method Thanks in advance. Henrik Goldman X-Formation ( http://www.x-formation.com ) ...Show All
Visual Basic Add imlicit or explicit cast functionality to a class
Hi all, How do I implement implicit/explicit function to my class My class looks like this: Public Class MyTestClass Private _value As String Public Property Value() As String Get Return _value End Get Set ( ByVal value As String ) _value = value End Set End Property End Class From my code I'm forced to enter a value like this... Dim test As New MyTestClass test.Value = "my name" I would like to drop the .Value part and enter a value like this... Dim test As New MyTestClass test = "my name" How can I do this T ...Show All
Visual Studio Express Editions Some of the registration benefits are missing...
I don't see the iconbuffet or e-books and articles. Has anyone else been able to access these See the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=202376&SiteID=1 -Scott Currie (DDCPX PM - Microsoft) ...Show All
Visual Studio Express Editions Help with SaveFileDialog???
Hi Ladies and Gents, Please can you help with the below The SaveFileDialog is appending to my text files and I can't find a way to get it to overwrite whatever existing text is in the save file. Please can someone advise me Private Sub SaveToolStripMenuItem_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim Save As New SaveFileDialog() Dim myStreamWriter As System.IO.StreamWriter Save.Filter = "Plain Text Files (*.txt)|*.txt|All files (*.*)|*.*" Save.CheckPathExists = True Save.Title = "Save" Save.ShowDialog( Me ) Try myStreamWriter = Syst ...Show All
