jimmy1949's Q&A profile
Visual Basic Installed Printers in 2005 beta 2
I am trying to get a list of installed printers. I added a form and a printdialog1 and the following code: Dim i As Integer Dim pkInstalledPrinters As String Dim printdoc As String For i = 0 To PrintDialog1.InstalledPrinters.Count - 1 pkInstalledPrinters = PrinterSettings.InstalledPrinters.Item(i) comboinstalledprinters.Items.Add(pkInstalledPrinters) Next For Each pkInstalledPrinters In PrinterSetting ...Show All
Windows Forms RightToLeft Property in controls
hi my friends.. as we know that this property make the control behave like right to left..but when i apply to some control it does not run smoothly like TreeView, ToolBar, ListView and other..please if help me this problem.. Best Regards Bassam Basamad ...Show All
Visual Basic Good articles on event handling in VB.NET
I've started moving in to more advanced VB and I am presently having a look at event handling. I have tried to find some good resources on Google but event handling in VB.NET doesn't seem to be the stuff that people write about. On of my main questions is about the difference in event handling between C# and VB. Is it my perception or is event handling in VB a lot more basic I would appreciate it if anyone could point me in the direction of a ...Show All
Microsoft ISV Community Center Forums extract office file's title into excel
hi guys! I have a folder which included many office excel and word files. these files have a file properties as "QMS-DOCUMENT-NO", which is created by myself when I create the file. New file will be add into this folder frequently. two questions: 1. I want to creat a excel file consolides what i have in this folder. it shall shows the file "name", "Title", and "QMS-DOCUMENT-NO". is there an automa ...Show All
Visual Studio Team System Application locked - error creating configuration section handler
I am using the patterns and practices Enterprise Library for .NET Framework 2.0, so the web.config files of my middle tier web services of my app contains configuration for the enterprise library exception handling and logging. For example: < xml version = " 1.0 " > < configuration > < configSections > < section name = " exceptionHandling " type = " Microsoft.Practices.EnterpriseLibrary.E ...Show All
Visual C# Syntax using an array of classes bizzare error with language parser
This is a simplified version of my code to highlight my problem. It seems as if the parser loses the type information. namespace myname { class A { public string b; public FileSystemWatcher c; public A() { c=new FileSystemWatcher(); } } public class D { A []e=null; public void f() { for (int index=1 to 10) { e[index] = new A(); e[index].a="Test"; e[index].c.Filter = "*.wav"; e[index].c.NotifyFilter = S ...Show All
Visual C# StreamReader & Console Apps
I am using System.Diagnostics.Process to execute an external process. When I set RedirectStandardOutput = true and attempt to read the entire stream either with ReadToEnd(); or looping with ReadLine(); the application freezes or waits continuously on the last read. What do I need to do to read the whole stream and continue with the application String data; Process proc = new Process(); proc.StartInfo.UseS ...Show All
Windows Forms Deseprate for Help: OCX MAPobjects problem with .net
i am trying to open a vb ocx in a .net application, i have a form MapForm that contains the ocx, if i do the following everything works correctly: dim Map as new MapForm Map.show however this one will crash: dim Map as new MapForm Map.MdiParent=MyParent Map.s ...Show All
Visual C# How do I create an archive viewer?
I have some programming experience and so I thought it would be nice, if I could program an editor for the archives of some of my old games. But as there are always many files of a different type packed into one archive (mostly *.dat or *.big) I don't really know how to start. Does anyone have an idea or know a similar program that is open source ...Show All
Windows Forms How To ? file into code for Xfer over web!
Ok heres what I have. 1] SmartClient that will ask user to pick a file from the PC. Lets say a .wmv. Could be anytype of file other then a image file. 2] On a click of a button the app links to a webservice and xfers the file to the webserver. So No problem getting the user to pick a file on the their PC. My problem is how do I load this file into a object in code, vb.net, that would allow me to xfer that object ...Show All
.NET Development Read a pipe delimited file
Is there some easy way to read a pipe delimited file into a dataview, dataset, datatable etc Basicly I'm working on an interface to a web app that will respond with a pipe delimited set of records. IE each record on a seperate line and each field seperated by a '|' char. I'd like to get this into some form of data object to be able to better deal with it in code. Hi, Here is a code snippet that loa ...Show All
Windows Live Developer Forums General Activity API development questions
Hi, I have some general activity API development questions. 1. Can I have multiple web pages in an activity For instance, the default page would be index.aspx. On index.aspx wouuld be a link to load another page - page2.aspx. 2. What are the "web site" type limitions for an activity Can I essentially run an ASP.NET 2.0 app with database connectivity and Ajax as an activity. In this example, I'm not using any of the MSN messeng ...Show All
Visual C# Can I define Array with a defined structure type?
I want to define an array of structure tryped data. Can I do it and is it same as conventional way of Array define Thank you very much for your help. James Thank you for your info. I didn't see a sample in C# document so I have not tried it out. Would you have any example of this in C# I greatly appreciate your help. James ...Show All
Visual Basic Call a Query from another Query in Query Designer?
In MS Access I could have a 2nd Query refernce the first Query. In Query Designer in Studio 2005, I see no way of doing this ie: Query 2 gets all or some of it's data from Query 1 In my 2005 Project, Under Queries, I have a Query 1 and a Query 2. How do I access with Query 2 what Query 1 returns (i have it sort of working with the "make table" option on Query 1, but I dont want to clutter up the DB with temp tables!) Any help Thx! Carl ...Show All
Visual Basic Passing data from Access to Excel
Hi everyone. I want to pass de value of a field in an Access form to an Excel sheet. What is the best way to do this Thanks in advance. Here something to get you started. Where me.custname is a textbox control on the form and reference to the excel object library has been added. Dim MyExcel As New Excel.Application Private Sub PortToExcel() Dim MyWB As Workbook MyExcel.Visible = True Set MyWB = MyExce ...Show All
