Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Dannybe2
  • Order by date
  1. Dannybe2

    Buttons being very slow - Need to Override Painting?

    Hi, My app is very slow and I am trying to make it more efficient but can't seem to work out which method to override. I have a lot of buttons (100 - 200) added to a panel and wish to resize the panel so that the buttons resize themselves in the window. The buttons are quite long (200 pixels...
  2. Dannybe2

    C# / .Net only works with XP?

    Ok, having done a bit more research on this, I understand the problem is not with the OS, but the version of Office I am compiling the program with. I have Office 2003, but I have downloaded the Office XP PIAs to make it compatible with Office XP. However, I also wish it to be compatible with...
  3. Dannybe2

    C# / .Net only works with XP?

    Hi, I have written a program that works perfectly under Windows XP and Office 2003, however I have discovered that it does not work with earlier versions of Windows or Office. The problem is I have not got a copy of Windows 2000 to test this with to get it to work. I require the user to get...
  4. Dannybe2

    OS in Java?

    Hi, I am trying to write a simple operating system in java with terminal polling, microkernel, etc. Would anyone be able to point me in the right direction, either an existing simple os I could look at, or merely some assistance in how to go about it, I don't really know where to start? Thanks
  5. Dannybe2

    C# Application Uploading File

    Hi, I am trying to create a simple C# application that I can run from my home computer that will upload a file to some web space I have. I have managed to create an ASP.NET file that I have uploaded and when I browse for a file and upload it, it works fine. My question is how to do this from...
  6. Dannybe2

    Overriding New and Delete Operators

    Hi, I am having a problem overriding the new and delete operators. I have overwritten the new operator with the following: void * operator new(size_t size, char const* file, int line) { void* v = malloc(size + sizeof(size_t)); return v; } and the delete with the following: void operator...
  7. Dannybe2

    Excel Print Dialog

    Hi, It doesn't have to be an Excel print dialog, I just assumed that would be the easiest way. Basically, if I use the code below as on MSDN then the document prints fine. However this does not allow for the user to change how many pages they want to print, or which printed to print to...
  8. Dannybe2

    Excel Print Dialog

    Hi, How do I display Excel's print dialog box from c#? I understand that to do it in VBA I use the code: excel.Dialogs(xlDialogPrint).Show(); But I cannot do the same thing in c# it seems. Have I maybe got the syntax wrong, or do I need to include a directive. The error message is that...
  9. Dannybe2

    Coloured ListBox Items

    Windows app
  10. Dannybe2

    Coloured ListBox Items

    Hi, I am trying to change the properties of each item in a listbox so that I can have items of different colours. I cannot seem to find a way of doing this, however I did find the following code, which suggests that I am looking for the attributes object, but it does not exist in my listbox...
  11. Dannybe2

    CheckedListBox not checking...

    Fair comments. I agree it looks a lot nicer to use a method in the constructor than to have all the transactions there. I didn't actually explain all of what I was doing, just the relevant bits. In fact I am using a checklistbox next to a listbox, the checklist obtains its data from an array I...
  12. Dannybe2

    CheckedListBox not checking...

    Yes, I managed to get it to work by doing this.Show() before the transactions. Well, where are the GUI transactions supposed to go if they don't go in the constructor, because you certainly cannot put them in the Windows Designer Code?
  13. Dannybe2

    CheckedListBox not checking...

    I have solved the second problem, by changing the eventhandler to link to checkedListBox.ItemCheck as opposed to checkedListBox.SelectedItemCheck, and this now seems to cover every check event. That side of things is working very well, its just loading in some data when the form first loads...
  14. Dannybe2

    CheckedListBox not checking...

    I don't understand. How is this a feature? Surely it is not supposed to do this, so there must be a way around this... Dan
  15. Dannybe2

    CheckedListBox not checking...

    I also cannot get the checkBoxList to respond quickly enough. I have the SelectedIndexChanged tied to an event handler, so whenever a box is checked or unchecked a method is called adding or removing the item from the listbox. However, if you click twice in quick succession, despite the check...
  16. Dannybe2

    CheckedListBox not checking...

    Hi, I have a problem with CheckedListBoxes that is confusing me. This is the code I have in the constructor, where the designer code just adds the checkedlistbox: InitializeComponent(); array2 = (ArrayList) array.Clone(); this.checkedListBox1.DataSource = array2...
  17. Dannybe2

    Simple Managed Problem

    Anybody?
  18. Dannybe2

    Simple Managed Problem

    I have a problem using managed code, I don't know a lot about it and any tutorials I have found just confuse me more. Here is some code with the errors its producing: //main.cpp Manage* manage; int WINAPI WinMain(..,..,..,..) { manage = new Manage(); manage->Method(); return 0; }...
  19. Dannybe2

    Dual Programs?

    I have a rather difficult problem I have been struggling with for a while now. I have two programs which need to run at the same time, but each program needs each other's objects from time to time. So why not combine them into one big program with a launcher. Firstly I need to send a request...
  20. Dannybe2

    How to delete a struct?

    Of course it should have been cont not s, I'm confusing myself trying to translate my code into a simpler version. Your second comment is exactly what I was after however, I thought there might have been a way to have constructors and deconstructors in a struct. I had been trying to delete b as...

Part and Inventory Search

Back
Top