|
thanks for you corporation, actully I want to load an dicom image and add a bmp image to this dicom image and then I want to print it, Can you help me in this?
|
|
|
|
|
I've never dealt with DICOM images before.
It sounds like you would be much better off using a library that handles DICOM images for you. Google results[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hey,
Does anyone know how to embed Firefox into a program?
|
|
|
|
|
AKAIK, FF doesn't have a COM component you can embed into your app.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hey,
I can't find anyway to get information about the processor on a computer. I am basically looking for the CPU usage and especially the temprature of the processor. Can anyone help?
|
|
|
|
|
You can get the CPU usage using the PerfromanceCounter[^] class.
CPU Temperature doesn't have a PerformanceCounter so you'll have to use a different method to get this. You can find out more, especially the limitations of doing so, reading these[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi all, I am getting really stressed and I was hoping someone could help me out. I am trying to add some rows to a table using table adapters in VB.net 2005 express and sql server express. I have read the stuff on the MSDN site and it still does not work does anybody have any ideas.
Thanks,
|
|
|
|
|
ranro2006 wrote: I am trying to add some rows to a table using table adapters in VB.net 2005 express and sql server express. I have read the stuff on the MSDN site and it still does not work does anybody have any ideas.
Would you like to tell us exactly what you did? (Code samples are good for that) You may have misinterpreted what you read, but we can't tell that from your description. We may not have read the same documentation so that narrows down the list of people that can potentially help.
|
|
|
|
|
Hi All
I am trying to run a batch file in a windows service.
It seems to sort of work as I can see a cmd.exe process running when the service executes it but the batch file does not seem to run the contents of the batch.
I am using process.start("c:\mybatch.bat")
I run the service under my admin account.
When I run a similar program in vb.net forms app it works fine.
can anyone help or have any suggestions to rectifiy this ?
Cheers
Dom
|
|
|
|
|
Try using: System.Diagnostics.process.start("C:\mybatch.bat")
Caffeination, fuels the programming nation!
|
|
|
|
|
|
Try: shell("C:\mybatch.bat")
|
|
|
|
|
thanks ultracoder
still no good however
i hate/love programming
|
|
|
|
|
If your batch file starts an interactive process, it's looking for user input, you'll never see it in the default configuration for a Windows Service. All Windows Services, by default, run under a seperate (non-visible) desktop. In order for a service to be able to interact with the visible desktop, you have to go into the Services manager (Start/Run SERVICES.MSC), find your service, get properties on it, then go to the LogOn tab and enable the "Local System account" login, then enable "Allow service to interact with the desktop".
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am using Windows XP SP2, and working on MS VS .NET 2005.
My application was working fine till I installed few windows updates. Now on compilation I get an error message - ""LC.exe" exited with code -1073741819."
Someone told me that this could OS bit problem. I checked in My Computer->properties ->advanced->environment variables ->system variables->Processor_Architecture which states x86 over there.
I am not able to compile my applications due to this problem. The application was working normaly. I think the software updates caused this problem, I even uninstalled the updates but then nothing helped. I am stuck on this.
Someone please help. Highly urgent.
…
Thanks,
RajKat
|
|
|
|
|
The best thing to do when you get a 'highly urgent' problem is to use google, especially a problem like this where you can google the error text.
Does your app have a lic.text file ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey Chris,
I found resolution to the problem, it was not any license expiry issue. It was actually a spyware named Hexadoor which came into my machine from somewhere and that spyware actually does not let .NET to compile.
Anyone facing this problem may run antispyware - lavasoft ad-aware or pandasoftware to detect and remove it.
Thanks,
RajKat
|
|
|
|
|
help....
I have a reporting aspect to my online application and I'm trying to set it up so that I make an asychronous call to a GetData type subroutine, and paste the data returned by this into a datagridview. Ive defined a report class which goes off getting tabulated data, which I have also defined in a class, and it works when i call the routine and wait for a return, but using asynchronous methods I keep getting the message that i cannot parent a control to a thread it was not created on...
i don't understand why this is. The data class is not a control, my datagrid is on the calling thread, but when I try to paste data into it from another thread it seems to cause problems. Am I barking up the wrong tree completely? Is there a workaround for this or will i have to stick to a crappy, non-responsive UI while the report runs?
Really sweating this. Rolling out in a couple of days, and it needs to be good!!!
|
|
|
|
|
If you use the BackgroundWorker class, you can pass data back to the main thread.
But, how will it be more responsive ? If it's a web page, it's waiting for a refresh anyhow, right ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sorry mate, misuse of the word Online there. I come from a mainframe background, and I still use some of thse legacy terms, e.g. Online as opposed to batch processing.
The problem I have is that, well, since yesterday when I posted I've managed to get the control updating to the screen, but it becomes unresponsive, when i click it the entire app just hangs, in Task manager, it waits for about 5 secs then generates another process sing the applicatin's title, but running EXPLORER.EXE. All of this suggests to me that I'm screwing with something fundamental. I may roll back to an earlier version which didn't (try to) implement multithreading....
|
|
|
|
|
I created a Windows Controls Library project so that I could create my own modified version of a combobox. When I began the new project VB starts you out with a region to put your controls in. I drop a combobox in there and resized the region to be the same size as the combobox. When I tried using it in a new Windows project the right side of the combo is cut off. If I make that region a little bigger it shows up as being part of the combobox. Can you make this region invisible or keep it from interfering?
|
|
|
|
|
Try using the DockStyle property of the combobox control. You can either set it in the properties window of your custom control or do it in code (e.g. Combobox1.DockStyle = DockStyle.Top )
|
|
|
|
|
Thanks. That worked. But also, while in the designer, if I click on the combobox I frequently cause VB to abnormally shut down. Why does this happen?
|
|
|
|
|
I'm not sure, it could be a bug in your copy of VS or perhaps your machine is screwing up somehow, or it may even be (tho I doubt it) your code.
Quite honestly, I have no idea.
|
|
|
|
|
Something else to consider: if you're only using a single combo box for your control, you should look into inheriting the Windows.Forms.ComboBox. This will solve your display issues. You can get started very easily by pasting this class declaration into a new Class file, overwriting the default text:
Public Class MyCustomCombo<br />
Inherits System.Windows.Forms.ComboBox<br />
<br />
End Class
Mind you, programming an inherited control can be tricky, but the rewards are worth it.
james
commercial developer, author, speaker, dude.
www.jamesfoxall.com
|
|
|
|