Search results for query: *

  1. I

    SqlConnection and service program

    I figured it out...the app.config file did not have the connection string. Only I thought that it *did* have a connection string, because since the db connection logic was in myapp.dll VC++ puts the config info into myapp.dll.config. So I figured that was the right place for it... I guess it...
  2. I

    SqlConnection and service program

    Hi, I have a sql database (server 2008) and I have a simple update program that works from the command line, and I have a separate windows service program that serves out data via remoting. My problem is: 1) the updater and the service program work on my desktop box (XP Home) 2) the update...
  3. I

    dynamically load dll

    Hey guys, So I have this 3rd party .NET dll and everything works fine on my computer, but when I take the program to another computer it doesn't work. It has to do with the fact that the version of the 3rd party app is different on that computer so my prog can't find the right *version* of the...
  4. I

    SerializationException...

    OK so the problem was that I was returning a DataSet via my library A: Public Function A (ByVal s As String) As DataSet Dim ds As New MyStronglyTypedDataSet ' do stuff return ds End Function Which is a problem because the strongly typed data set only exists in the library not...
  5. I

    SerializationException...

    Hi, I've made this simple remoting scenario, where I have: 1) dll class library with method A implementation 2) dll class library with only interface to A 3) client app that only has reference to interface dll 4) server that has reference to class library + interface dll. The client only...
  6. I

    DataAdapter.Update question

    So the problem was that Fill and Update wanted me to use the version where I give the table name; and the table name needed to match exactly the table name in the xml schema. I guess it makes sense, after I figured it out!
  7. I

    DataAdapter.Update question

    Hi, I'm just trying to figure out why the following bit of code doesn't work. It executes normally, there are some rows in the dataset just before I da.Update, but nothing ends up in the database. Probably something related to my understanding of SqlCommandBuilder...? BTW, there currently is...
  8. I

    MDI Form Problem

    my understanding is that a mdi parent form does not typically have any controls on it (besides menus & toolbars etc). I had the same problem btw when I tried to use ToolStripContainer, the following forum topic on msdn is relevent: Re: ToolStripContainers and MDI applications - MSDN Forums. I...
  9. I

    debugging designer errors

    Aghhhhhhh!!! Ok so I guess I renamed the MenuStrip1 to MainMenuStrip, and apparenty there's already a member mainmenustrip in the Form class...so rename fixes that. now I have a potentially bigger problem. I did a lot of screwing around in the .Designer.vb file, and I'm dealthly afraid that if...
  10. I

    debugging designer errors

    Ok so I've cracked open the MainFrame.Designer.vb and narrowed my problem down to the following line: ' 'TopToolStripPanel ' Me.TopToolStripPanel.Controls.Add(Me.MainMenuStrip) When I comment the line out, the code works. I thought maybe I wasn't newing the...
  11. I

    debugging designer errors

    How am I supposed to debug this?(!) No line numbers, no user code stack, nothing. Any suggestions? My usual method is to undo what I did last. The problem is that I opened my project and it wasn't working. I don't remember exactly what I did two days ago... Value cannot be null. Parameter name...
  12. I

    Copy/Paste

    ok now that I solved that problem...I have another question. Still related to copy/paste. When the edit menu is clicked I can handle that event to determine if I should enable or disable cut/copy/paste. What event should I be handling to decide if the toolstrip cut/copy/paste buttons should be...
  13. I

    Copy/Paste

    Ok its more complicated than I first let on. I have an MDI app. And the child form has a SplitContainer that has a listview in the bottom panel and a series of labels & readonly textboxes in the top panel. So I select text in one of the textboxes in the top panel. And now in my copy handler I...
  14. I

    Connection through HTTP

    it sounds like you want a webservice.
  15. I

    Copy/Paste

    OK I'll try my test again. But what I was telling you was, when the TextBox is *readonly* it appears that I can select text in that text box without actually giving the textbox focus. I can understand that Cut and Paste don't make sense for a readonly textbox, but Copy does make sense...
  16. I

    Copy/Paste

    i think i'll still have the basic problem that Activecontrol doesn't point to the control where text is selected.
  17. I

    Copy/Paste

    hi, I haven't looked into this extensively...but I'm trying to implement copy/paste in the main menu. So in the menu handler I need to know what the current selection is. I figured I could just do something like My.Clipboard.SetText(ActiveControl.SelectedText), assuming that the active control...
  18. I

    Default name stored in Text property

    So when a TextBox gets created, the Name property is set to "TextBox1", and so is the Text property. I'm wondering how to get the same effect when I have my own UserControl, i.e. if my class is MyCustomControl, then when the user drags it onto a form I get the Text field set to MyCustomControl1...
  19. I

    UserControl that acts like a container at design time.

    Eh...Not really, unless you have some suggestions. I have a UserControl that is drawn as two separate parts. The top part is a sort of title bar, and the bottom part is the Panel area where clients can drop whatever they want into it. Plus there's some extra drawing around the actual panel area...
  20. I

    UserControl that acts like a container at design time.

    I'm making my own user control, and I want it to act like a container at design. Basically the control is doing some custom draw code, and also contains a normal Panel. So now, when I put my control onto my Form at design time, I will obviously want to be able to drag other controls into my...
Back
Top