Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • Connect from DataGrid to Detail

    css sales
    2
    0 Votes
    2 Posts
    0 Views
    M
    How about using a detail form that accepts a customer id as a queryString parameter? http://localhost/myApp/myDetailForm.aspx?id=xxxx The detail form could present itself as a data entry form for a new record if the id parameter is not present, or an update form querying the db for data on customer id=xxxx and presenting it. Then use a TemplateColumn in your datagrid with a data binding expression to construct a hyperlink to the detail form, supplying the id. Just one idea.
  • A new guy...

    csharp question
    3
    0 Votes
    3 Posts
    0 Views
    B
    Thanks Michael. I appreciate the input.
  • Getting active window

    question csharp
    6
    0 Votes
    6 Posts
    0 Views
    K
    Very, very helpfull. Thank you very much. I'm working on a webapp controlling a very old application, i need to simulate a terminal server session via web browser. I'm new to .net development, i come from years of java programming. Just another little question, i start a process and i do the following : startedProcess = Process.Start(startInfo) startedProcess.WaitForInputIdle(5000) Dim name = startedProcess.MainWindowTitle() Dim mwHandle = startedProcess.MainWindowHandle() Dim topForm = Form.FromHandle(mwHandle) topForm is always null. How can i get a Form object from a window handle? thanks again.
  • To get Paste event using keyboard event

    help
    3
    0 Votes
    3 Posts
    0 Views
    D
    Are you sending the paste to a specific app? If so, why not use SendKeys "^V"? It will do the exact same thing... RageInTheMachine9532
  • Hi,How to design a IIS Server?

    design sysadmin windows-admin tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    K
    No body knows? Hi,I am a China Student,so I think my English is poor,Sorry:)
  • making windows services configurable

    csharp database help question
    6
    0 Votes
    6 Posts
    0 Views
    C
    Yes, but remember that when you build your application windows will copy the app.config into your Debug or Release folder and rename it with the name of the exe with the addition of the .config. Also - And it took me a while to figure out why it wasn't working the way I expected - The config file is not read while the windows service is installing. So your installer class can't access it without a lot of extra work. --Colin Mackay-- "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
  • Chaning a character in the keyboard

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    A
    Yes! You'd have to write a keyboard hook. See the next post titled 'IS it possible in VB'.
  • IS it possible in vb

    csharp visual-studio question
    2
    0 Votes
    2 Posts
    0 Views
    A
    In order to get your hands on the keystroke before NAY application got it, you would have to install a low-level keyboard hook. This is done by writing a callback function (one where the system calls you), and using the Win32 API calls to SetWindowsHookEx, UnhookWindowsHookEx, and CallNextHookEx. Documentation on these calls can be found on MSDN starting here[^]. Mind you, hooking into the system isn't really VB's forte'. I've never done it in VB. It just looked MUCH easier to write in C++. I did something similar to prevent the 'Window' key from being used.
  • rtf lost colors

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Chaning a character in the keyboard

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to export crystal report content to file or e-mail?

    tutorial question career
    2
    0 Votes
    2 Posts
    0 Views
    D
    An example of exporting a report to an RTF file can be found here[^]. From there, you can email that file as an attachment... RageInTheMachine9532
  • how to read and write to .xsl file by ado.net ?

    question csharp database xml tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    OK. Have you done any research on your questions before you post them here? Finding an example of this one was ridiculously easy. All it took was searching Google for 'Excel ADO.NET'. :wtf: I don't mind helping out, but you have to at least TRY to help yourself first. It will lead to a much greater depth of knowledge about your question and how VS.NET and other technologies work. This is but a single article and code sample, but Google returned over 58,600 hits on pages written within the last year! http://www.dotnetjohn.com/articles/articleid54.aspx[^] RageInTheMachine9532
  • how to read and write to csv file by ado.net ?

    question csharp tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    It's anyones guess why you would want to do this, but here[^] it is. RageInTheMachine9532
  • DLL and ASP

    com help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    H
    -Open the VB6 IDE -in the new project screen choose ActiveX DLL -in the class module you can write your functions , subs just as you make in VBScript. register the DLL and call it from the ASP. create it using Server.createObject
  • Dataset related question?

    question sales xml
    2
    0 Votes
    2 Posts
    0 Views
    P
    'Suppose in the dataset ds you have three tables 'Customer, Order and Supplier. If you want to save 'the Customer table. Below is the code 'Duplicate the table and add it to a DataSet Dim datatb As DataTable = ds.Tables("Customer") Dim datatbTmp As DataTable = datatb.Copy() Dim dsTmp As DataSet = New DataSet() dsTmp.Tables.Add(datatbTmp) 'Save data to xml file and schema file dsTmp.WriteXml(Server.MapPath("Customers.xml"), XmlWriteMode.IgnoreSchema) dsTmp.WriteXmlSchema(Server.MapPath("Customers.xsd"))
  • URL related question?

    question csharp com
    2
    0 Votes
    2 Posts
    0 Views
    D
    You can find a good start on MSDN here[^]. You'll find all the doc's for all the classes and Samples to go with them. RageInTheMachine9532
  • Dataset related question?

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    You might want to start here[^] RageInTheMachine9532
  • Database exception handling??

    database csharp help question
    2
    0 Votes
    2 Posts
    0 Views
    D
    Since SQLServer is generating the errors, your SQL procedures can return codes to your VB.NET code so you can determine what to do with the errors there. But, if your code is written properly, your SQL database is setup and the stored procedures that do the actual work are written properly, you should never have to deal with foreign key violations like what your talking about. The only way a user can delete a record from a parent table and violate the child relations is if your code lets them do it in the first place. RageInTheMachine9532
  • Application Load testing related question?

    csharp question visual-studio testing
    2
    0 Votes
    2 Posts
    0 Views
    D
    What it sounds like your looking for is this: Application Center Test is designed to stress test Web servers and analyze performance and scalability problems with Web applications, including Active Server Pages (ASP) and the components they use. Application Center Test simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It comes with Visual Studio.NET, but I don't know which editions... RageInTheMachine9532
  • Table relation related problem??

    csharp help question
    2
    0 Votes
    2 Posts
    0 Views
    C
    That's a bit of a vague request. What type of applications are you writing? This is a user interface question - so, please, let us know what you technologies you are using for your presentation layer. Are you using ASP.NET or WinForms? --Colin Mackay-- "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)