Search results for query: *

  • Users: IfYouSaySo
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. I

    Changing Button.BackgroundImage

    In the following code, I am trying to get the background image for a button to change each time it is clicked. It stays the same when the click event fires. The debug traces indicate the logic is fine. I thought maybe calling Invalidate() was required, but this does not work either. Any ideas on...
  10. I

    Generating HTML Help

    Is there some utility in VS2005, that will help to generate HTML help pages for a .NET app? Or do most people just use some WYSIWYG editor for HTML + the web browser control that ships w/ .NET? Or some third party control? Thanks...
  11. I

    Data binding to objects

    Hi, I've been looking at data binding of forms controls to objects today, and I'm a little confused. If I understand correctly, the INotifyPropertyChanged interface is new to 2.0, and is documented well on MSDN. But when I bind a collection of customers to a DataGridView (as in the MSDN...
  12. I

    ObjectSpaces?

    I was reading something about MS building an O/R mapper into the 2.0 framework (ObjectSpaces). Then it got pushed back to when Vista gets released. Then back to when WinFS gets released. Then it looks like they changed the name (i.e. is ADO vNext/Entity Framework/eSQL somehow related to...
  13. I

    Moving image based on mouse click/drag...

    Ok, still working on my chessboard control, and another issue comes up. When the user clicks on a chesspiece and drags it to a new square, I want to animate that. So what I did is, I made a handler for mouse-down, mouse-up, and mouse-move. On mouse down, I populate what I call a drag-image and...
  14. I

    Overlaying colors on images...

    I'm trying to create a chessboard control. The basic idea is: 1) use a set of B/W texture bitmaps to make the squares look like wood. 2) Draw over top of the texture image a rectangle with a color that is semi-transparent. I use two user defined colors; and this gives me the light and dark...
  15. I

    System.Management.WqlEventQuery

    I'm having problems with the following code below. The call to ServiceWatcher.Start is throwing a "Not found" exception. My googling has determined that something about my query is incorrect. I'm not sure what about it is wrong though... Dim scope As New ManagementScope("\\.\root\CIMV2")...
  16. I

    Resizing a CheckBox control

    More a general interest. Let's say I want to resize a Checkbox control to always be just large enough to display whatever is in Checkbox.Text. It's easy to determine the string length using Graphics.MeasureString, and it's easy to figure out what handlers to do that in. I found one example...
  17. I

    Writing class to BinaryWriter

    Let's say I'm writing several classes to a BinaryWriter. And the number of members to these classes can be quite large. I know I can use the WriteXXX() functions, but that can get long and tedious. So I'm wondering if I can get away with this: Imports System.IO Imports System.Reflection...
  18. I

    writing an objectfactory

    So I'm trying to write an object factory, and I've got the code completed, based on how I would have written it in C++. It doesn't quite work. Here's a rundown of some classes and how they work. The class factory object has a dictionary data member, and two member functions: class...
  19. I

    GetTempFileName and UnauthorizedAccessException

    Ok. I'm about to go out of my mind here. I want to throw my computer out my office window. But I don't have a window in my office. Here's the problem. System.IO.Path.GetTempFileName() it seems determines the temp directory from System.IO.GetTempPath(), which in turn determines the temp...
  20. I

    Impersonation and environment variables

    Ok, so I'm running into a problem where I impersonate another user (using unmanaged call to LogonUser, followed by WindowsIdentity.Impersonate(), etc.), and the impersonation goes OK, but I'm finding that key environment variables are still what they were before the impersonation. I.e. TMP...
Back
Top