How to edit a WFP application through a Visual Basic command console?

Hi, I'm currently working on a little project of mine, based mostly on a Visual Basic command console, and I've had the idea to add a console-controlled Windows Form.
What the console will eventually do is run, say, 1000 x 1000 [(1,1), (1,2), (1,3)... (574, 349), (574, 350)...] items through into a list, and then these million-or-so entries will use their assigned values as the x and y co-ordinates for
the form, as well as little bits and bobs that will be added as I go along.
Right now, the thing on my mind is this; How do I make, or access, or run, etc. a form, then load this code into it? I've been heading down some reference path with dependents and other stuff and I don't think it's going to carry me anywhere unless I ask
the question directly.
The main plan I have in mind is being to access the controls that a Windows Form has, using the VB console, e.g. Form1.Shape.AddRectangle (x,y) or something.
If this is even possible, which I'm starting to doubt to my dismay, could you give me an absolute, and I mean that from top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough?
Because I don't want to ask questions to the answers to my question.
Thanks :)

Items and bits and bobs doesn't have much meaning to me.
If you want to create a Form from a Console app that is simple. Prior to launching the Form provide whatever you want to it I suppose.
Whatever you attempt to provide to the form may need references added. Therefore you can research that on your own using the
MSDN Library search engine which should keep anybody else from having to perform "top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough" since if you don't know
anything you should be attempting to learn. And if anything is outside your scope of knowledge that you need to know to do whatever you want to do you should research and learn that. Not ask anybody else to do it for you or provide you baby step instructions
for doing so.
It's possible trying to provide 1000000 items and bits and bobs to a form will fail or your app may not have the memory allocated for doing that. And it's probably a poor idea too.
Option Strict On
Imports System.Windows.Forms
Imports System.Drawing
Module Module1
Sub Main()
Dim f2 As New Form
f2.Left = 10
f2.Top = 10
f2.Text = "Test Form"
f2.Width = 241
f2.Height = 271
Dim PB As New PictureBox
PB.Width = 225
PB.Height = 225
PB.Left = 0
PB.Top = 0
PB.Image = Image.FromFile("C:\Users\John\Desktop\Picture Files\CrossBones PNG.Png")
f2.Controls.Add(PB)
f2.ShowDialog()
Console.ReadLine()
End Sub
End Module
La vida loca

Similar Messages

  • How to Call a WebDynpro application through html page.

    I have created a webDynpro application.How can i call this application through a html page?
    Thanks
    Pankaj Kumar

    Hi,
       You can add a link to your HTML page and set the anchor reference to the absolute URL of your WD application.
       The absolute URL of your WD application looks like
    http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>
       So your HTML code will look like:
    <a href="http://<j2ee server>:<port>/webdynpro/dispatcher/<wd component name>/<application name>">Link</a>
    Regards,
    Satyajit.

  • How to get BW-BPS variable value into Visual Basic?

    Hello,
    Scenario:
    Time characteristic 0FISCYEAR has a variable ZVFYEAR. In layout this time characteristic is defined as DATA COLUMN. When user changes VFYEAR variable’s value i want to get the value of variable into Visual Basic and to format header for table in the layout.
    How to get BW-BPS variable value into Visual Basic?
    Could you help me?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hi,
    If i understand your requirments correctly ,you need to read the value of the Variable and Put it on the layout. Here is how  i would solve this,
    Read the value of the variable using an ABAP program.The logic for this would be to read the variable value and post it on the layout on a cell.You can do this by calling the ABAP program on opening the layout.this can be done using LB_EXIT_FM  T-code. Now using the  SAP delivered SAPAfterDataPut  macro, read the cell in which you have placed the variable values and assign it to the necessary values you want to on the layout.All this will be done before the layout opens.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • How should i open another application through url....?

    Hi,
              how should i open new application in new window thorough url of that application.
    I know , one way is link to url property of ui element but in my case i dont wont to use that.
    i m having url of another application and if i want to open that through any code...how its possible.?
    is there any windows code for that ?
    thanks
    saurin shah.

    hi,
    After insertion of LinkToURL element into the View.
    for "reference=<give here your application URL>
    for property
    reference=https://www.sdn.sap.com
    and for property
    text = <give the name what ever you want here>
    and the same can be done using
    "LinkToAction" element also.
    Thanks
    RameshBabu.V
    Edited by: Ramesh Babu V on Jul 9, 2008 11:28 AM
    Edited by: Ramesh Babu V on Jul 9, 2008 11:33 AM

  • How to import  Third party application through SAP in ABAP

    Hello,
    This is regarding importing third party application or non sap application through SAP or through portal...
    is there any way to do the same?
    actually our organization is having one independent application developed on .NET platform. we need to connect that in mY SAP R/3. so pls suggest me some proper way to achieve this one.
    regards,
    jigar
    [email protected]

    You can connect to SAP from a .Net application using the .NET connectors. Please find the help below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/23c80d66d08c4c8c044a3ea11ca90f/content.htm
    http://www.microsoft-sap.com/overview_sap_connector.html
    http://www.sapgenie.com/interfaces/netconnector.htm
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • How can i use 10G Application through https

    Hi..
    currently i'm usning my application through HTTP now i
    want to use through HTTPS.
    what is the way?
    Thanks
    Sanjeev

    Hello,
    I think http://appsdbablog.com/blog/2007/03/configuring_ssl_for_your_oracl.html
    link will help you out with your queries.
    Thanks
    Santosh Shetgar
    http://oraclefusionmiddleware.blogspot.com

  • Starting an external .exe application from within Visual Basic

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    Thanks in advance
    Big Buzzard
    Philippe de Marchin

    How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
    If you know the path and filename of the application, or if it is an application that the operating system will find for you, then you can pass the application details to the Start method of the Process class.   If you don't know the path and filename
    of the application - for instance you want to start the user's web browser but it might be IE or Firefox or something else, then the argument to the Start method can be of any file type for which the extension has been associated with an application installed
    on the system. 
    https://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.110).aspx

  • Nearly give up, how to play RTSP / HLS / Smooth Streaming in Visual Basic Language

    I know there are so many samples for playing RTSP / HLS / Smooth Streaming, but it really lacks supporting Visual Basic language, i really struggling to convert from C++ / C# into VB without errors, maybe it would be easier if i can find some VB
    examples for this situation, i really appreciated any help.. thanks

    Hi HiLLzX,
    Did you forget to using reference in VB or Import the namespace? See my current code, using Button click can play a test demo. Do not forget to reference SDk in your project.
    XAML:
    <Page
    x:Class="App242.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App242"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Button Content="Button" HorizontalAlignment="Left" Height="88" Margin="52,103,0,0" VerticalAlignment="Top" Width="138" Click="Button_Click"/>
    <MediaElement x:Name="mediaElement" HorizontalAlignment="Left" Height="427" Margin="409,127,0,0" VerticalAlignment="Top" Width="800"/>
    </Grid>
    </Page>
    VB:
    'using Windows.Media;
    Imports Windows.Media
    ' The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    ''' <summary>
    ''' An empty page that can be used on its own or navigated to within a Frame.
    ''' </summary>
    Public NotInheritable Class MainPage
    Inherits Page
    Private extensions As New MediaExtensionManager
    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
    mediaElement.Source = New Uri("http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/Manifest")
    extensions.RegisterByteStreamHandler("Microsoft.Media.AdaptiveStreaming.SmoothByteStreamHandler", ".ism", "text/xml")
    extensions.RegisterByteStreamHandler("Microsoft.Media.AdaptiveStreaming.SmoothByteStreamHandler", ".ism", "application/vnd.ms-sstr+xml")
    mediaElement.Play()
    End Sub
    End Class
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to edit the selected record through a popup page

    Hi, can anyone help me to handle the case ?
    1) In main page, there is a datatable showing the record list. Click a commandLink in the selected record to popup a screen for user edit.
    2) The data is validated and then saved into database after clicking the submit button in the popup.
    3) Finally, the main page is refreshed with the latest record list.
    Thanks

    Just like any other servlet or form-processing script. What would a mere HTML page know about "systems"? Put the URL into the form destination attribute and be done.

  • How do I launch an application i.e iMovie.app via console? It is purely for self interest nothing else

    The reason I want to know is if I were to ssh into another mac on my home network via terminal, Would I be able to launch an application like iMovie.app for terminal, I tried however maybe my syntax was not good.  from /Application folder in terminal I typed iMovie.app and pressed enter. This did not work for me.

    if I were to ssh into another mac on my home network via terminal, Would I be able to launch an application like iMovie.app for terminal
    You can do the above, or use the 'open' command, but it will just display on the Mac you are ssh'ed into
    open -a iMovie
    You can start a Screen Sharing session using
    open vnc://address.of.remote.system
    You can open a web page using
    open http://url.of.web.page
    You can open an image using
    open picture.jpg
    open image.png
    etc...
    You can open TextEdit session using
    open file.txt
    open file.rtf
    Actually opening any file that has an application associated with its .typ field can be done using the 'open' command.
    Message was edited by: BobHarris

  • How to Change Crystal Report database name from visual basic code?

    Hi all,
    I have created a Crystal Report (CR)  with .NET VB. I also have developd some UDTs for that pusrpose and everything is OK.
    However I cannot use the same CR in another Company which has the same UDTs. I have not found how Connect to Company (in other words change the DB the report reads).
    Any Idea?
    Thanks,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Jul 19, 2008 6:07 PM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:27 AM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:28 AM

    Hi Vangelis,
    Here's a simple VB class that has functions for setting the login details for the report and passing parameters.
    Option Strict Off
    Option Explicit On
    Public Class CrystalFunctions
        Enum ParamType As Integer
            Int
            Text
        End Enum
        Public Shared Sub SetCrystalLogin(ByVal sUser As String, ByVal sPassword As String, ByVal sServer As String, ByVal sCompanyDB As String, _
               ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oDB As CrystalDecisions.CrystalReports.Engine.Database = oRpt.Database
            Dim oTables As CrystalDecisions.CrystalReports.Engine.Tables = oDB.Tables
            Dim oLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            Dim oConnectInfo As CrystalDecisions.Shared.ConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo()
            oConnectInfo.DatabaseName = sCompanyDB
            oConnectInfo.ServerName = sServer
            oConnectInfo.UserID = sUser
            oConnectInfo.Password = sPassword
            ' Set the logon credentials for all tables
            For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                oLogonInfo = oTable.LogOnInfo
                oLogonInfo.ConnectionInfo = oConnectInfo
                oTable.ApplyLogOnInfo(oLogonInfo)
            Next
            ' Check for subreports
            Dim oSections As CrystalDecisions.CrystalReports.Engine.Sections
            Dim oSection As CrystalDecisions.CrystalReports.Engine.Section
            Dim oRptObjs As CrystalDecisions.CrystalReports.Engine.ReportObjects
            Dim oRptObj As CrystalDecisions.CrystalReports.Engine.ReportObject
            Dim oSubRptObj As CrystalDecisions.CrystalReports.Engine.SubreportObject
            Dim oSubRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            oSections = oRpt.ReportDefinition.Sections
            For Each oSection In oSections
                oRptObjs = oSection.ReportObjects
                For Each oRptObj In oRptObjs
                    If oRptObj.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                        ' This is a subreport so set the logon credentials for this report's tables
                        oSubRptObj = CType(oRptObj, CrystalDecisions.CrystalReports.Engine.SubreportObject)
                        ' Open the subreport
                        oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName)
                        oDB = oSubRpt.Database
                        oTables = oDB.Tables
                        For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                            oLogonInfo = oTable.LogOnInfo
                            oLogonInfo.ConnectionInfo = oConnectInfo
                            oTable.ApplyLogOnInfo(oLogonInfo)
                        Next
                    End If
                Next
            Next
        End Sub
        Public Shared Sub SetCrystalParams(ByVal sFieldName As String, ByVal iDataType As ParamType, ByVal sVal As String, ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oFieldDefs As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions
            Dim oFieldDef As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition
            Dim oParamVals As CrystalDecisions.Shared.ParameterValues
            Dim oDiscreteVal As CrystalDecisions.Shared.ParameterDiscreteValue
            oFieldDefs = oRpt.DataDefinition.ParameterFields
            oFieldDef = oFieldDefs(sFieldName)
            oParamVals = oFieldDef.CurrentValues
            oParamVals.Clear()
            oDiscreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue()
            Select Case iDataType
                Case ParamType.Int
                    oDiscreteVal.Value = System.Convert.ToInt32(sVal)
                Case ParamType.Text
                    oDiscreteVal.Value = sVal
            End Select
            oParamVals.Add(oDiscreteVal)
            oFieldDef.ApplyCurrentValues(oParamVals)
        End Sub
    End Class
    And here's how you would use them:
    ' Create an instance of the Crystal report
    _rptCrystal = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    _rptCrystal.Load(_oSBO.AddonPath + "\Reports\MyReport.rpt")
    ' Call SetCrystalLogin to see the logon information for all report tables
    CrystalFunctions.SetCrystalLogin(sUser, sPassword, _oSBO.SboCompany.Server, _oSBO.SboCompany.CompanyDB, _rptCrystal)
    ' Set my report parameter value
    CrystalFunctions.SetCrystalParams("MyParam", CrystalFunctions.ParamType.Int, 999, _rptCrystal)
    ' Print the report straight to the printer                          
    _rptCrystal.PrintToPrinter(1, False, 0, 0)
    The other way to approach this solution would be to base your Crystal report on a .NET dataset rather than a database connection. However, as you've already written your report, the code above is going to be simpler to implement.
    Kind Regards,
    Owen

  • How do i create a new user in visual basic

    hello all!
    I'm customizing TS Operator Interface and I'm trying to add a new user with VB code.
    is anyone has any idea how to do this?
    Advanced thanks,Avi.

    Hello Avi,
    Looks like the TSengine doesn't handle the save and update operations when invoking 'NewUser' method, so you have to handle these by your own. The following code (which is the menu callback for creating a new user in an Operator interface) might give you an answer for your question:
    Private Sub NewUser_Click()
    Dim objNewUser As User
    Dim tmpUser As User
    Dim users As PropertyObject
    Dim OkCancel As Boolean
    Dim loginName As String
    Dim usersFilePath As String
    Const USERS_FILE_NAME As String = "\users.ini"
    Const USER_LISTS As String = "UserLists.Users" 'section of file containing user lists
    'Check if the current user has 'EditUsers' privileges
    If Data.TestEngine.CurrentUserHasPrivilege(Priv_EditUsers) Then
    OkCancel = Data.TestEngine.DisplayNewUserDialog("New User", True, objNewUser)
    If OkCancel Then
    'Get user login name
    loginName = objNewUser.loginName
    'Get users file path
    usersFilePath = Data.TestEngine.ConfigDirectory
    usersFilePath = usersFilePath + USERS_FILE_NAME
    'Create new object for all users
    Set users = Data.TestEngine.NewPropertyObject(PropValType_Container, False, "", 0)
    'Read all users from users.ini
    Call users.Read(usersFilePath, USER_LISTS, 0)
    'Check if user name already exist
    If Not Data.TestEngine.UserNameExists(loginName) Then
    'Insert new user into user object
    Call users.SetPropertyObject(loginName, PropOption_InsertIfMissing, objNewUser)
    'Write user object back to users.ini
    Call users.Write(usersFilePath, USER_LISTS, 0)
    End If
    End If
    End If
    End Sub
    After executing the code above you'll have to restart the operator interface in order to see the newly created user in the 'TSEngine.DisplayLoginDialog' (seems to be a bug here).
    Hope this solved your problem and
    feel free for further questions
    Regards,
    Silvius
    Silvius Iancu

  • How To create a Buffer Application Program in LabVIEW?

    Dear all:
    Can someone advise me on how to implement a buffer application for LabVIEW.
    Basically I have 2 application programs than run continously in paralell.
    1) LabVIEW Data Logging & Plotting Program. It takes 90 ms to excute its code
    2) C++ Data Acquisition Program. It Samples the data from a Reflective Memory Card (on the PCI bus of my PC)
    at 1ms and creates a Buffer where it store one sample per channel every 1 ms.
    I know LabVIEW have the Code Interface Node to call a C program but since both (The LabVIEW and the C) are runing (one slower than the other) in Parallel I need to somehow interrupt the C program from LabVIEW and get from it the data that it as collected so far.
    Any suggestio
    n will be highly appreciated. I attach txt file with a little more description of the problem.
    Thank You very much.
    Felix Beltran
    ALSTOM Power Conversion.
    U.K
    Attachments:
    NI_SW_Buffer_Question1.txt ‏2 KB

    Hi Felix,
    The best architecture for this application would be to have the C++ program divided into two threads. One thread is continuously acquiring data and placing it in a queue. The other "handling" thread will read data from the queue and serve it up to your LabVIEW application.
    Much better than using the Code Interface Node, build the C++ application into a DLL. You can then call a function from your LabVIEW program to start the acquisition, and then calls to the handling thread function will return data to LabVIEW.
    I hope this helps.
    Regards,
    Phil R
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • Migrating Application FROM Visual Basic

    Hi Everyone,
    I have an application written in Visual Basic (Front End) and SQL Server as the Back End. Now this application should run on the web i.e need to web enable the application.I have coded in Java for sometime now,but I do not have any prior knowledge as to build a Web application from scratch.Can anyone let me know
    how to procced.I would like to use open source like JDK for development.Eclipse for IDE.
    Thanks,
    Supriya.

    First off let's get VB specific -- Are you using Access as a local database and container for your queries? If you are then read on, otherwise, the information already give is excellent and complete enough to get you well on your way.
    1 - You are going to have to conver all of your queries either to SQL and store them in a business layer, or create stored procedures for them on the server. I strongly recomend the stored procedure route to hide any detail of your dataserver as much as possible and supply tighter security for table access.
    2 - Your web server is going to be a significant ralleying point for your data and return HTML generation, you should take that into consideration with your IT staff and how it will affect other applications on that server. (It will probably not have sufficient impact, unless you already have your own dedicated server for this application)
    3 - As mentioned by the others, the Applet/Servlet or JSP/Servlet configuation will serve you very well for your application.

Maybe you are looking for

  • Build a .jar from an applet

    Hi. I have the following code. import controller.Application; import model.Slideshow; import view.MainFrame; import java.applet.Applet; public class Main extends Applet {     public void init() {         Slideshow slideshow = new Slideshow("untitled.

  • How to use PS+FI WBS Elements?

    Hi Friends... follow the example, There is an account called Printing and stationary in which we will account all the expenses relating to printing, and stationary. Printing may be printing of legal documents, or printing of accdounts mannual, or pri

  • How to get/set variant(settings) by name of view

    Hi Experts, I need advise how I can to set to report settings of any view if I know the view name. And vice versa if in the report there is any layout with any name, how can I know the name? Actually I created saving report variant according  blog of

  • HT1212 iPhone is disabled even when connecting to the iTunes

    i tried to enter the passcode couple of time but they were wrong since the passcode was wrong. now i have remembered the correct passcode but the iphone is still disabled. it remains disabled even though i have connected it to the iTunes which i alwa

  • Iphoto book disappeared

    is there a file for a created iphoto book? i created a book and later when i opened iphoto, it just said loading book and it never loaded. the pictures are still in the library but the book is gone. is there any way to find it now??