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 bkrike 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: mrdance
  • Content: Threads
  • Order by date
  1. mrdance

    DLL files in a special folder?

    I don't want all dll:s of my project to reside in the same folder as the application, how can I, for example, tell it to put and look for dlls in \appfolder\dll\ ? thanks --- neteject.com - Internet Solutions ---
  2. mrdance

    About timestamp

    1. How can I select and format the timestamp to, for example YYYY-MM-DD? 2. Timestamp updates only the row inserted not the whole table, right? thanks --- neteject.com - Internet Solutions ---
  3. mrdance

    Impersonation and start a process

    Since XP SP2 and Windows 2003 you can't use CreateProcessWithLogonW under the system account in a Windows Service. Does anyone have a working sample of using the LogonUser and CreateProcessAsUser together or any other example that works. thanks / Henrik --- neteject.com - Internet Solutions ---
  4. mrdance

    LogonUser and CreateProcessAsUser

    Does anybody have a working example of this? I can't use CreateProcessWithLogonW because it is not allowed for the SYSTEM account in XP SP2 and Windows 2003 SP1. thanks --- neteject.com - Internet Solutions ---
  5. mrdance

    Resource files and linking

    I am new to resourcefiles. I have created two .resx files with strings, the names of these files are: us-en.resx se-sv.resx Now I want to read those strings. The files are in a folder called "lang". I try to write the following: dim rm as new ResourceManager("us-en.resx"...
  6. mrdance

    Resource files - linking

    I am new to resourcefiles. I have created two .resx files with strings, the names of these files are: us-en.resx se-sv.resx Now I want to read those strings. The files are in a folder called "lang". I try to write the following: ResourceManager rm = new ResourceManager("us-en.resx"...
  7. mrdance

    Last event on page?

    I am new to ASP.NET. I do some database queries in my script and want to close the connection at the end of the script. Where should I put the disconnect? Maybe I don't know when the last execution will be and there will be several queries so I want to disconnect at the "last stage". Any ideas...
  8. mrdance

    Retrieve SELECT values from POST?

    How can I retrieve values from a SELECT-box with multiple rows selected on the POST-action-page? thanks! --- neteject.com - Internet Solutions ---
  9. mrdance

    Stored procedure, default value problem

    I have the default procedure below. I would like to return 0 if the sql can't find any voucherkey = @key. How do I do that? Thanks! CREATE PROCEDURE usp_verifyvoucherkey (@key varchar(8)) AS DECLARE @id int SET @id = ( SELECT isvalid FROM voucherkeys WHERE voucherkey = @key) RETURN @id GO...
  10. mrdance

    GetType of XML-string

    In order to deserialize you need to know the type of what you are deserializing to. I am transfering serialized versions of different classes over a socket. I need to know the type of the string received. I found one way but I believe that there must exist either a function or another way to...
  11. mrdance

    CreateProcessWithLogonW with system account

    Starting process with the above api function does not work with the system account. Maybe you have a code example that solves this or combines: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocessasuser.asp...
  12. mrdance

    Minimizing form increases avail memory - a lot

    I have an application which takes about 54 MB after being loaded. When I minimize it and then maximize it it goes down to 12 MB and stays there. Why is this happening? I have tried to run GC.Collect after loading the form but it does not change the memory. Is there anything I can do so that the...
  13. mrdance

    UTF8 jungle and .NET

    I really need help to understand and sort out my problem with "foreign" characters. Please read this if you now something about this. I have made some webscripts in php which some translators use. It is some forms which posts to a script which insert the text into a MySQL database 4.1.11 on...
  14. mrdance

    Why does not my program convert UTF8 chars?

    I have read an xmlfile with utf8-encoding into an arraylist of strings. The problem is that when displaying the characters in a form the utf8 is not converted but in it's raw format. I am using Tahoma as font. How can I solve this? --- neteject.com - Internet Solutions ---
  15. mrdance

    Binary serialization

    I am using simple binary serialization and deserialization from this page: http://www.dotnetspider.com/technology/kbpages/454.aspx The problem is that I serialize an array in one program and deserializing it in another. This causes the following error...
  16. mrdance

    Color question

    I am developing an application showing traffic in and out. What color do you prefer for showing traffic in and out? I would like to use different colors but is it any standard for that? Thankful for comments! --- neteject.com - Internet Solutions ---
  17. mrdance

    Global threadexception for Windows Service?

    I know that you can make a global exception for an application by adding a handler like this: AddHandler Application.ThreadException, AddressOf Application_ThreadException But what about windows services? Can you catch global errors there? thanks! --- neteject.com - Internet...
  18. mrdance

    Swedish characters in UTF8 (MySQL5)

    I'm trying to insert swedish characters through the MySQL Connector (using VB.NET). The string looks ok before inserting but for example does the swedish character "ä" look like "ä" in the database. Why is that, do I have to set any encoding or something when inserting? --- neteject.com -...
  19. mrdance

    "unlocking" tables

    I get this error when I try to truncate a table: Can't execute the given command because you have active locked tables or an active transaction How can I, by SQL, delete this active transaction or unlock table? thanks / Henrik --- neteject.com - Internet Solutions ---
  20. mrdance

    Change the font for the whole application?

    I am doing a japanese version of my program and need to change the font on all forms in the program. How can I do that the best way? thanks / Henrik --- neteject.com - Internet Solutions ---

Part and Inventory Search

Back
Top