Jump to content
Xtreme .Net Talk

billy_bob169

Avatar/Signature
  • Posts

    32
  • Joined

  • Last visited

Everything posted by billy_bob169

  1. I think I have finally got a handle on it now. Thanks for you help!
  2. I assume the update command would be very similar? How did you setup you dataset? Like I said, this is new to me. For some reason my company decided to go with Pervasive on our latest project.
  3. I've gotten the application to connect to the database now, but I am having a hard time getting it to update and insert records. As lame as it sounds, I am used to the wizards that microsoft created for their data providers. Creating update and insert commands from scratch is not something I have had to do before. :(
  4. I am trying to create an application using a Pervasive database, but I cannot get the Pervasive SQL Data adapter or Connection components to work. Anyone used these yet? I can make the application run somewhat using an OLE DB connection, but would rather use managed code. Any help would be much appreciated!
  5. I have seen this question posted before, but is there anyway to get the bootstrapper to also load the MDAC file for database applications? I have the wrapper example from microsoft, but can't get it to work quite right. Microsoft's article makes it sound like you can get the bootstrapper program to check the user's machine and load the MDAC file as neccassary. Does any one have any ideas??? Thanks...
  6. I see. So I have to code it as such: { String* msg = "Customer Order\n"; msg = msg->Concat(msg, S" Processors\n"); MessageBox::Show(msg); } Thanks Divil
  7. Not sure if still applicable, but I have run into the same problem in VS.Net 2003. I simply removed the border on the text box, set the background and fore color to "Control" (to match the color of the form), set ReadOnly to true, and TabStop to false. Then I hid them behing the other related components on the form. Problem solved! :) You have probably already figured out a way around this, but hopefully this will be helpful to others with the same problem...
  8. Don't Know if it is still of use to you, but try this if it is: int main() { cout.unsetf(ios::dec); cout.setf(ios::hex); cout << 100; cin.get(); return 0; } This changes how cout looks at integers. You can also develop formatted i/o using many other format flags. You should really check it out. While you are at it, you should check out i/o manipulators...they make the code a lot more user friendly.
  9. For anyone else who runs into this, this is how I got it to work: { String* msg = "Customer Order\n"; msg = String::Concat(msg, S" Processors\n"); MessageBox::Show(msg); } Not quite sure hom to get the "msg->Concat(S"String2");" to work, but if anyone figures it out, I would like to know. Good Luck!
  10. I am trying to Concatenate two strings in a VS.NET 2003 C++ Windows application, and I cannot seem to get it to work. Does anyone have any ideas? The statement doesn't do anything...the compiler does not blow up either! The MessageBox just shows the first string! :( { String *msg = "Customer Order\n"; msg->Concat(S" Processors\n"); MessageBox::Show(msg); }
  11. Check out the thread I posted in the Graphics forum titled "Another Printing Question... " it includes some sample code that can be adapted to do what you are requesting. It uses a printdocument object to generate a page. Check it out!
  12. This is a .NET forum, so in >NET you could just add three buttons(min, max, & close) then put logic into those buttons to do what you wanted. i.e. the max button: Me.WindowState = FormWindowState.Maximized I don't know what the exact syntax is in VB6, but I am sure it is similar...
  13. Can you add a button on the child form, that simply does: "Me.Hide()"....I don't totally understand what you are trying to accomplish, but maybe this will do it? It will keep the form from closing, but get you back to the parent form to close it.
  14. Go to code view. In the Class Name drop down box (on the top, left) , select "(Base Class Events)". Then in the box on the right, select "Closing"
  15. Have you tried adding the components on your form to a collection, then using the collection to enable or disable them all at once?
  16. I am trying to Size the columns of my grid automatically when it is filled. The book I have ("Visual Basic .NET - Bible") says there is an AutoColumnSize member of the datagrid control, but I sure as heck can't find it. I am assuming the syntax was suppossed to be: dataGrid.PreferredColumnWidth = dataGrid.AutoColumnSize, but no such luck! Is there a way to easily, automatically set the column width when the datagrid is activated? And where the heck did AutoColumnSize go!?! Thanks...:mad:
  17. Seems to work beautifully! Thanks again Divil. Is this all stuff that you just know "off the top of your head"? Or is there a reference point (other than this forum) that I can search so I don't have to bug everyone with such simple questions!
  18. Thanks Divil...I'll try it out, and get back to ya'll!
  19. Is there a way, in VB.NET, to check what operating system the user is running. I have run into a problem with the printpreview control when my program is running on Win 98. I can get around the problem by just printing the document (no preview), but what would be the fun in that. Here is what I am trying to accomplish...if the user is running Win 98 or Win ME, I want the print preview option in my Menu to be disabled, leaving only the option to print. That way if they are running a newer OS, the option to preview it will be there. Is this possible???
  20. Thanks...I figured it had to be something fairly simple, and sure enough.....it was!
  21. I think my brain has finally given out, cuz I can't figure out how to set the size of the form the PrintPreviewDialog control brings to be maximized! It has to be extremely simple (compared to the graphics code I just finished writing), but yet again I must ask the all mighty .Net gods for help!:) Thanks to any one who can help me with this simple issue...
  22. Works Great!!! Thanks man...
  23. I tried printing the version that you included, but it only prints the headings...ISBN, Title, & Author(s). Does it work on your PC???
  24. I am looping through a data table to create rows and columns, and they show in the prview window, but they aren't printing. I am not quite sure what is going on yet, but I will post again when I figure it out...
  25. I tried what Robby recomended, but the code gets pretty ugly, and for some reason, some of the info that shows in the print preview, doesn't print. It is info that is within a loop. Any suggestions or other alternatives?
×
×
  • Create New...