Jump to content
Xtreme .Net Talk

digioz

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by digioz

  1. I didn't explain it well. Here is some more information : 1- Application starts in a Sub Main and initializes a main portal form and launches it. 2- The portal form contains panels, which are populated by other sub-forms. 3- The sub form inside the panel calls a subroutine, let's call it "A". 4- Subroutine A uses a connection object "C" that is always connected to the server to send XML messages. 5- There is a "Send" function inside of the connection object C which I want to break out of. This function sends an XML string to the server and receives a response from it. What I am trying to do is to break out of subroutine "A" without modifying the logic of it (since in reality there are around 500 + other forms that have a subroutine similar to "A" that calls the connection object's Send Function). If I break out of the Send function, the function return a Null value breaking the code in subroutine "A", and I don't want to have to modify subroutine "A". I realize ideally I would want to modify my calling subroutine to check for a return message of Null and exit out without continuing, but rewriting every single one of those calling subroutine would be a massive undertaking. Also, each subform expects a different set of XML tags in the return, so I can't just return an empty string or a generic one for all of them. Thanks, Pete
  2. Hi, I am looking for a way to stop / interrupt the execution of a subroutine on a form, based on an even that fires. So basically: 1. User clicks on a button. 2. Button calls a function or subroutine. 3. Event fires on the form. 4. Event stops the execution of the function or subroutine regardless of the stage of the execution the routine is in. 5. The form does NOT close and the data in controls on the form as well as instances of initialized objects remain. Can anyone think of a way to do this? Maybe using some sort of a signal interrrupt or signal handling? Thanks, Pete
  3. Maybe I am not understanding the problem correctly, but isn't the whole idea of having a Citrix Server to allow non-windows and windows users alike to run an application off of a main server? If that's the case then all you would have to do is to install your application on the Server itself, and Terminal users would be able to access it. If your setting however is more of a Thin Client type setting however I would recommend that you create a bootstrap application to install and launch your application on the fly. Pete
  4. New Problem: When trying to compile an Application where there are multiple sub-projects within the main solution, I get the following error: MSBUILD: error MSB1008: Only one project can be specified. Switch: ProjectName.vbproj I have already added all the target imports to each sub project's .vbproj and .csproj files, and am using the command line command: msbuild [Project Path] /p:TargetFX1_1=true Anyone know how to fix this one? :confused: Thanks, Pete
  5. You are right! It looks like the issue was being caused by any new Windows Forms that are added to the project using VS 2005! :eek: It looks like if I simply copy an existing VS 2003 created form, rename all reference to it in both resx and .vb files it compiles successfully! Even though that would be a pain to do on an ongoing basis, I think it would be worth it if it means I don't have to maintain 2 seperate versions of my application. Thanks a bunch for your help! Pete
  6. Its a standard windows form application, so it references: System System.Data System.Deployment System.Drawing System.Windows.Forms System.Xml Pete
  7. Hello all, I am trying to compile a simple VB.NET Windows Form project which was converted from VS 2003 to VS 2005 using the .NET 1.1 framework from VS 2005 by utilizing MSBee. Based on the instructions, I have added bellow this line (in .vbproj file): <Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" /> the following: <Import Project="$(MSBuildExtensionsPath)\MSBee\MSBuildExtras.FX1_1.VisualBasic.targets" Condition="'$(BuildingInsideVisualStudio)' == '' AND '$(TargetFX1_1'=='true'" /> When I run the following command from VS 2005 command line: msbuild C:\Temp\WindowsApplication1\WindowsApplication1\WindowsApplication1.vbproj /p:TargetFX1_1=true I get the errors and warnings in the attached text file. MSBee_Error.txt Anyone know what's wrong with it? Any help would be appreciated! Thanks, Pete
  8. In VS 2005, when you create a User setting under Project Properties > Settings: [ATTACH]5622._xfImport[/ATTACH] Which creates an entry in the App.Config: [ATTACH]5623._xfImport[/ATTACH] Now when the application overwrites the value of each of these keys, it doesn't write the value back to the app.config (because it needs to keep track the value for each user of the application seperately). I am guessing that it stores it in the registry somewhere, but a registry search didn't yield a result, which makes me think maybe its encrypted. Does anyone know where in the registry these values are stored? Thanks, Pete
  9. I have been using it for years now on both Windows and Pocket PC applications, and never had any problems with it. I highly recommend it over other zip libraries I have come across. Pete
  10. Hmm... I wonder why it doesn't work for me. I have a regular textbox, with "Multiline=True", and "Scrollbar=Vertical". Is that what you have? Am I missing something? I am trying it in VS 2005. Is that what you are using? Thanks, Pete
  11. Here is what I would do: Write a Webservice that allows users to upload msi files to your sharepoint. Write a Macro or Plugin for Visual Studio to connect to that webservice and upload the msi file. Create a custom botton in Visual Studio to call that Macro or Plugin. That would do it. Not very hard to do, specially if you use Macro. Pete
  12. Paul's code didn't work for me. But this does: Private Const WM_VSCROLL As Int32 = &H115 Private Const SB_BOTTOM As Int32 = 7 Private Declare Auto Function SendMessage Lib "user32.dll" ( _ ByVal hwnd As IntPtr, _ ByVal wMsg As Int32, _ ByVal wParam As Int32, _ ByVal lParam As Int32 _ ) As Int32 Private Sub AddLine(ByVal loDestination As RichTextBox, ByVal lsText As String) With loDestination .AppendText(lsText & ControlChars.NewLine) SendMessage(loDestination.Handle, WM_VSCROLL, SB_BOTTOM, 0) End With End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim i As Integer = 0 For i = 0 To 300 AddLine(txtProgress, "Line " & i) Next End Sub Pete
  13. Take a look at this article: http://community.prestwood.com/ASPSuite/KB/document_view.asp?qid=100507 I think you could benefit from using ClickOnce deployment to have people run / deploy your applications off your server. Pete
  14. You may be refering to Microsoft "ClickOnce" technology, which his available with VS 2005 / .NET 2.0 or higher: http://msdn.microsoft.com/en-us/library/t71a733d(VS.80).aspx I have never used this technology on Webservices though (usually just for Regular Windows Applications). Pete
  15. Actually Omid, what our friend is looking for is "sFTP" (otherwise known as Secure FTP). The .NET 2.0 Framework (as well as the example Omid provided) only supports standard non-secure FTP. If you want Secure FTP, you will most likely have to buy a component to do that. Pete
  16. Never mind all. This fixed the problem: Protected WithEvents CtlAddress1 As ctlAddress
  17. Hello Everyone, I am having a bit of a problem with a custom ASP.NET Control written in VB when I post the form and try to access the text of the custom control. Here is what I have: ' Custom Control Called ctlAddress with 1 label called lblAddress and one textbox called txtAddress '-------------------------------------------------------------------------------------------------- Public Class ctlAddress Inherits System.Web.UI.UserControl Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Public Property Address() As String Get Return txtAddress.Text End Get Set(ByVal Value As String) txtAddress.Text = Value End Set End Property End Class ' HTML View of Actual ASP.NET Page that references the custom control above called WebForm1.aspx '----------------------------------------------------------------------------------------------- <%@ Register TagPrefix="uc1" TagName="ctlAddress" Src="controls/ctlAddress.ascx" %> <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form id="Form1" method="post" runat="server"> <uc1:ctlAddress id="CtlAddress1" runat="server"></uc1:ctlAddress></DIV> <asp:Button id="btnSubmit" style="Z-INDEX: 105; LEFT: 320px; POSITION: absolute; TOP: 208px" runat="server" Text="Submit"></asp:Button> </form> </body> </HTML> ' Code behind for the WebForm1.aspx ----------------------------------- Public Class WebForm1 Inherits System.Web.UI.Page Dim myCtlAddress As ctlAddress Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click myCtlAddress = New ctlAddress addr = myCtlAddress.Address lblOutput.Visible = True lblOutput.Text = addr End Sub End Class ' Error Message that appears is as follows '----------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 29: Public Property Address() As String Line 30: Get Line 31: Return txtAddress.Text Line 32: End Get Line 33: Set(ByVal Value As String) Source File: c:\inetpub\wwwroot\WebApplication1\controls\ctlAddress.ascx.vb Line: 31 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] WebApplication1.ctlAddress.get_Address() in c:\inetpub\wwwroot\WebApplication1\controls\ctlAddress.ascx.vb:31 WebApplication1.WebForm1.btnSubmit_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.vb:40 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain() Does anyone know why the code above is generating the error? Thanks!
×
×
  • Create New...