Jump to content
Xtreme .Net Talk

phillip

Avatar/Signature
  • Posts

    38
  • Joined

  • Last visited

Everything posted by phillip

  1. I have an array containing letters and numbers that im trying to sort. using the array sort method i'm not geting the results im after Example A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A20 Is being sorted. A1 A10 A11 A2 A20 A3 A4 A5 A6 A7 A8 A9
  2. I'm not after a free ride, I'll try to do it myself. Thanks for your help :) Phill
  3. I found this which looks like what i need but im using Vb :o http://www.bobpowell.net/hittestlines.htm Phill
  4. Hi I want to be able to draw some lines (Any angle) then perform an operation based on which one i've click. I can draw the lines using GDI but how would i know if ive clicked on one? Phill
  5. I have them in a panel. how do i check them all in this panel?
  6. I have 20 checkboxes Is it possible to uncheck them all without listing eachone in turn they are call check1 to check20 Thanks
  7. Thanks Guys, I'll give it a try
  8. How do i convert the contents of an array to a string. (see below) Array 1 2 3 4 5 To string "1,2,3,4,5" The array could be bigger than 5
  9. I Just Checked and found that the program does except a parameter. Its is the Path of the .CGF file How do i get the .exe file to take the parameter?
  10. No it doesn't. I might have to get the company to change the way it works. At the moment i write the .cgf file from my application then need to run the test.exe and some how associate the two files. (Like the open with in folders) I'll see if the can get them to use a standard name for the .cgf and do it at there end so i only have to run the test.exe and nothing else.
  11. Thanks for the reply but i think you misunderstood me. I need to open the config.cgf file using the test.exe the config.cgf file tells the test.exe what to do.
  12. Hi I Have a separate .exe file that I need to run with an configuration file from vb.net. I can run it fine manually by Opening the .CFG file with the Application. (using the "openwith" then selecting the app) How can I do this from code? I tried this but it didn�t work Dim pProcess As New Process Dim pProcessInfo As New ProcessStartInfo pProcessInfo.FileName = "D:\Tools\test.exe" pProcessInfo.Arguments = "D:\Tools\config.CGF" pProcessInfo.UseShellExecute = True pProcess.StartInfo = pProcessInfo pProcess.Start()
  13. Did you ever get this working?
  14. Guys How can I round a figure to the nearest 0.05? For example 0.14 to equal 0.15 2.52 to equal 2.50 Phill
  15. I got the add event handler woking but it did not help The problem seems to be the other application. It seems to crash when firing the second event when it has not recived the first one back (excuse my terminoligy lol) I need to end the routine and then do the oject move. I tried setting up a timer to run after the routine finishes that then moves the oject but the timer does not seem to work from my event (timer1.enabled=true) Can anyone think of a way round this?
  16. I'll have to try the Addhandler method. how would i make that work? here is what i'm currently doing Private sub blahblah() handles appx.position_change_event appx.move("shape1",x,y) end sub
  17. Thanks for the Reply, I'm using Visual basic
  18. Guys I am receiving an Object position changed event from another application. when i handle the event i move another object in the application. I need to stop the event getting handled a second time when i move the object as it crashes the applicaion. How can i switch the event handler off while i move the object? Thanks
  19. Hi all In the program I am writing I connect to some software and control it. I want my Program to detect a crash, Reload the software and continue where it left off. If I kill the software in mid flight I can reload it using but when I try to reconnect to the newly opened one I get and error saying RPC Server is unavailable (Which I believe stands for Remote procedure Calling.) How can I get round this?
  20. I'm a Starcraft fan myself. Nevr found a stratergy game to beat it.
  21. I'm Pcb Designer that uses Vb to plug into some expensive software and automate alot of my tasks.
  22. I managed to find this code that works, The problem is it works when the form loads How would i merge this into a current routine rather that the form loading? :confused: Add custom code for the datagrid Paint event. Private Sub Grid_Paint(ByVal sender As Object, ByVal e As system.Windows.Forms.PaintEventArgs) Handles Grid.Paint Dim Myrect As Rectangle Dim row as Integer = 0 Dim column as Integer = 0 Myrect = Grid.GetCellBounds(row, column) e.Graphics.DrawRectangle(new Pen(color.red), myrect) e.Graphics.FillRectangle(New SolidBrush(Color.Red), Myrect) e.Graphics.DrawString(Grid.Item(row, column), Grid.Font, New SolidBrush(Color.White), Myrect.X, Myrect.Y) End Sub
  23. I should have mentioned that its not a web form
  24. I Have a datagrid that has a datatable. I have filled the table with data but want to Change the colour of one Row. How do i do this? Ps. I'm a bit of a newb :)
  25. Guys I have created a program that monitors a software package on the machine and adds the info to a datalist. I need to be able output the datatable and send this info via email automatically so its progress can be monitored remotely. Is this possible and what is the best way to do this. This product will be installed on multiple machines so i need a Generic solution if possible. If this is possible.... is it possible to control My program by sending an email with a command in the suject line that it recognizes? Thanks
×
×
  • Create New...