Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

elena12345

@elena12345
About
Posts
32
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • setting include paths and executable paths
    E elena12345

    I know this is a RTFM kind of question, but I can't find the answer in the FM. I have a C# project that uses libraries from an external application. The instructions I have read: you will need to change your project settings to include the following folders: include paths: [drive]:\Program Files\Blah\Blah\SDK\Include executable paths: [drive]:\Program Files\Blah\Blah\Bin How do I do that? Thanks.

    C# question csharp

  • zip libraries
    E elena12345

    Hi, I was wondering who is using what for zip libraries. Turns out java.util.zip is a royal piece of junk and doesn't work with Japanese fonts. Thanks, Elena

    C# java

  • ListView
    E elena12345

    Couple of questions about ListView: Is there a way to make column headers invisible? Is there a way to increase the padding between rows? I have long text inside of some cells. How do I make the text wrap around and the cell height grow to make all the text visible? (instead of having the text all in one line and having to resize the column to read all of it.) Thanks, Elena

    C# question

  • unicode strings
    E elena12345

    Do I need to do anything special to handle unicode. (Japanese characters) Or will regular string variables work for that? Thanks, Elena

    C# question

  • StartPosition=CenterParent doesn't work half the time
    E elena12345

    The form I am dealing with pops up in the middle of the application only half time time. The other half the time it goes into the upper-left corner. If I set a break point inside the form to check what the parent is - it's always null. But it's null for all the forms in our app, yet this is the only form that is acting funky. I was wondering if anyone else ran into problems with setting StartPosition to CenterParent. Thanks, Elena

    C#

  • T-Mobile Horror
    E elena12345

    Have you ever had T-Mobile? Did you like it? My cell phone history: 2.5 Years ago I had a Verizon phone and it was perfect. They didn't drop one call in 2 years. In 2 years I could not find a location it didn't work from. And then I got cheap and switched to Sprint PCS... and I thought it was so-so. Did I learn my lesson? Nooooooo. I just got a T-Mobile phone today, and you will never guess how many calls have dropped for me so far... 5 out of 6!!!!:wtf: It took me over an hour to transfer my phone number cause I kept on getting disconnected. And the quality was bad, couldn't hear what they were saying half the time. Then I thought may be it's just the service number and called a friend... call got dropped. :( I have 30 days to play around with this worthless piece of junk. I have a feeling I will be transfering to Verizon in a week. May be it's the storm we had an hour ago (Novi, MI). Elena

    The Lounge question

  • local host is hosed
    E elena12345

    I don't know if the post belongs here. Please let me know if there is a more appropriate forum for this problem. I have a Web Server running on my machine. When I start the machine everything works great for about 20-30 minutes. Then something fails. When I open the server c# project in the Visual Studio I get this error message: The Web server reported the following error when attampting to create or open the Web project located at the following URL: 'http://localhost/Project'. 'HTTP:/1.1 500 Server Error. If I try to get to http://localhost/Project/ I get this error message: Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced. Has anyoone seen this? Why oh why would it work for a while and then fail :(( The only way I know to continue working is to restart the machine - royal pain in the neck. My virus files are all updated and the machine gets scanned once a week. P.S. OS is WinXP Elena

    System Admin csharp help visual-studio sysadmin question

  • registry permissions
    E elena12345

    I am trying to read HKLM, and it's not letting me. Elena

    C# csharp windows-admin question

  • registry permissions
    E elena12345

    A Windows user with regular "user" permissions is running my C# program, and it's not able to access HKEY_LOCAL_MACHINE/Software/Blah Does that sound right? What are the permissions rules for HKEY_LOCAL_MACHINE? Thanks, Elena

    C# csharp windows-admin question

  • setting time on Zip Entry
    E elena12345

    Is java.util.Date a part of vjslib or is it from a different library? Thanks for your help. Elena

    C# java question

  • setting time on Zip Entry
    E elena12345

    I am zipping up a bunch of files and "Modified" date on the files always turns out to be 1/1/1980 12:00AM The date I have is in DateTime format, and I tried zipEntry.setDate(d.ToFileTimeUtc()) zipEntry.setDate(d.ToFileTimeUtc()) zipEntry.setDate(d.ToFileTime()) zipEntry.setDate(d.Ticks) Nothing works!!! It keeps on getting 1/1/1980 12:00AM Do you have any idea why this is not working? Code: ZipEntry currententry = new ZipEntry(localPath); currententry.setMethod(ZipEntry.DEFLATED); currententry.setTime(createDate.ToFileTimeUtc()); m_zipstream.putNextEntry(currententry); try { java.io.FileInputStream current = new java.io.FileInputStream(fullPath); try { sbyte[] buffer = new sbyte[8192]; int buffercount; while ((buffercount = current.read(buffer, 0, buffer.Length)) > 0) m_zipstream.write(buffer, 0, buffercount); } finally { current.close(); } } finally { m_zipstream.closeEntry(); } Thanks, Elena

    C# java question

  • toolbar icon
    E elena12345

    I'm not sure if we are talking about the same thing. (Or I simply don't understand) When I talk about toolbar I am talking about the standrard Windows toolbar at the bottom of the screen that shows you the apps you are running. It always has a little icon. How can I change ImageList for this toolbar? Elena

    C# windows-admin question

  • toolbar icon
    E elena12345

    Do Windows store icons somewhere in the registry? Do you know the path? I had to change the toolbar icon for our application, and it works. But when you start the app, for a split second the old icon flashes on the bottom. I can't figure out where it's coming from!! I changed App.ico and the icon on the main form. Any ideas? Thanks, Elena

    C# windows-admin question

  • zipping files in C#
    E elena12345

    Hi, What library do you use to zip up files? I am using java.util.zip and it's giving me some problems. Everything works fine if WInZip is installed. However if you uninstall WinZip and it uses the Windows default compresser things don't work so well: the zip file is created but it's empty. Does anyone know a solution to this problem? Thanks, Elena Here is my code: ZipOutputStream m_zipstream; string filepath = @"C:\Elena\Junk\test\a.txt"; m_zipstream = new ZipOutputStream( new java.io.FileOutputStream( @"C:\Elena\Junk\test\zip.zip" ) ); ZipEntry currententry = new ZipEntry(filepath); currententry.setMethod(ZipEntry.DEFLATED); m_zipstream.putNextEntry(currententry); try { java.io.FileInputStream current = new java.io.FileInputStream(filepath); try { sbyte[] buffer = new sbyte[8192]; int buffercount; while ((buffercount = current.read(buffer, 0, buffer.Length)) > 0) m_zipstream.write(buffer, 0, buffercount); } finally { current.close(); } } finally { m_zipstream.closeEntry(); } m_zipstream.close(); m_zipstream = null; Elena

    C# csharp java help question

  • finding bad resource strings on compile
    E elena12345

    Yeah, thanks a lot :laugh: I am just moving a bunch of code. And a bunch of resource strings have to move from one file to another. So I want to make sure I didn't leave anything out. Don't tell me to architect better. I didn't architect this thing ;P Elena

    C# question learning

  • finding bad resource strings on compile
    E elena12345

    Hi, We have all strings that were not auto-generated stored in special resource files. I notticed that if the code refers to a non-existent resource string the compiler will not let you know about it, and you will find out things are not right until run time. Do you know of a way to make the compiler tell me about the resource problems? Thanks, Elena

    C# question learning

  • FileInfo.ValidateFIleName
    E elena12345

    Is there a way to validate a file name in C#? I know I could easily code this up myself, but this is something everyone always needs, so I am in total denial that there is no function like that in C# libraries. :omg: Thanks, Elena

    C# csharp question

  • System.Diagnostics.Process.Start
    E elena12345

    I am trying to bring up a directory in the Windows Explorer. System.Diagnostics.Process.Start("Explorer.exe") brings up Windows Explorer just fine System.Diagnostics.Process.Start("Explorer.exe", dirPath) brings up the directory in a regular window (with no folder tree on the left) How do I get the directory to come up in Windows Explorer? Thanks, Elena

    C# question data-structures

  • seting focus on a control
    E elena12345

    how do you default the focus to be on a certain control when a dialog comes up? the following line in the constructor is not doing it. this.m_OkButton.Focus(); Elena

    C# question

  • ComboBox events
    E elena12345

    For those interested, here is what I ended up doing. But first a little mode details on my case: it's a login dialog, and whenever the value in ServerComboBox changes I have to go and pull a list of databases off the server and put it into the DBComboBox. This might look like an overkill with ServerComboBox.Leave, ServerComboBox.SelectedIndexChanged, and DBComboBox.DropDown handlers. I would skip Leave & SelectedIndexChanged and just do DropDown if I didn't have to make a call to the server. When I do the call the the server on DropDown, the GUI hangs a little, so it's better to do it right when the ServerComboBox is changed. Why do I have the DropDown handler at all: there is one case when Leave & SelectedIndexChanged don't do it: on startup when there is no history in the registry and we use the hardcoded default value for the ServerComboBox. I don't know if I am making sence or it's too specific to my problem. Here it is anyway: Let me know if you see any way to improve the code. So here it is: /// /// The DbComboBox is dependent on the ServerComboBox and has to display the databases /// available for the selected server. /// class DbComboBox : ComboBox { string m_onEnterServerName = ""; //the name of the server we pulled databases from the last time ComboBox m_ServerComboBox; /// /// Constructor /// /// server combo box that we need to display Dbs for public DbComboBox(ComboBox ServerComboBox):base() { m_ServerComboBox = ServerComboBox; //handles user changes but not programatic updates //programatic updates are handled by SelectedIndexChange and a call to RefreshDbHistory //from Server property in the SignIn dialog m_ServerComboBox.Leave += new System.EventHandler(ServerChangedEventHandler); //handles selection change, but not when the user types in something new m_ServerComboBox.SelectedIndexChanged += new System.EventHandler(ServerChangedEventHandler); //in case there is no history and login defaults we need to load DBs for the //hardcoded default. this.DropDown += new System.EventHandler(ServerChangedEventHandler); } /// /// Event handler that is called when we suspect that the selection for the server combo box ha

    C# help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups