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
S

shultas

@shultas
About
Posts
146
Topics
76
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • State map with markers,info windows
    S shultas

    That's exactly what I would like to do! I have been searching for a little while as to an easy way to open google with coordinates. Everything that I have found so far requires custom web pages with all of that jazz. Any suggestions as to easy way to add points/coords to google map from within a browser in C#?

    C# help csharp winforms sysadmin

  • State map with markers,info windows
    S shultas

    Hi Everyone- I have built a help-desk application that allows agents to create tickets with issues that our technicians are dispatched to resolve. Our company for the most part operates in three states. What I am looking to do, is have a section in the application that displays a map of our region, with the three states visible, with markers or pins on them. The idea is a new call comes in with a problem in a city. The dispatcher can look at the map and see markers/pins of all of the technicians and where they currently are. The dispatcher can then make a determination "Steve is only 10 minutes away, lets send him after he is done with his current call". I am wondering if anyone knows the best way to go about doing this for a C# Windows Forms application. I was tossing around the idea of having a browser window somehow interfacing with Google Maps to tell it the area I want to display along with the pin/marker information, but was wondering if any of you could point me in the right direction! I would really like to accomplish this without the need for a local web server if that is possible. TIA!

    C# help csharp winforms sysadmin

  • imageList images appear to be getting "corrupted"
    S shultas

    Hello everyone- I have an imagelist in my application with 6 images, all .png, all 24x24, 32 bits resolution. I am using them in a treeview control. All is well they show up perfectly for a little while but then during the course of me making code changes and compiling they appear to be getting corrupted. After a few compiles / a few hours later the images will begin to show up on the tree view with hatch marks in them. If I click "choose images" on the image list, they show up in the last with hatch marks. A few compiles later or another hour or two goes by, and there are more hatch marks in the image. It appears to be like a gray grid. If I go into the imagelist and delete all the images and re-add them, they show up fine again, but some time goes by and they begin to start showing hatch marks in them. I cannot figure out what I am doing that is causing the images in that list to "corrupt". Any help would be greatly appreciated! thanks! EDIT: The imagelist properties is set properly. Depth 32bit, image size 24,24 which is what all of the images are. (And the imagelist "choose images" when you click on an individual image the properties match, 32b, 24x24)

    C# css data-structures regex help learning

  • How to have a "Loading..." Form
    S shultas

    Hi Everyone, I have a small application that I am developing that takes a half minute or so to load up (lot of stuff going on). I am wondering what the best way to display a "Loading" form is. For example, if you've ever used Adobe Photoshop, when you launch the program, a dialog/form shows up center screen and it tells you that its loading textures, fonts, etc. I want to do the same thing in my application. Is the proper way to do this actually creating another form, showing that form in the main form onload event, and then destroying it after the loading process is complete? Thanks!!

    C# adobe tutorial question

  • How to select right size icon from imagelist with multiple resolution icons
    S shultas

    Thank you very much! I was just making sure this was the "proper" way of doing things!

    C# tutorial question

  • How to select right size icon from imagelist with multiple resolution icons
    S shultas

    Hello Everyone- I have an imagelist that I have added .ico files into. The icons have multiple resolutions. I am trying to use one imagelist for multiple roles in my application. I set the default size to be 32,32. The places in the application where I set the image of the picturebox or a large button to an image in the imagelist, it works fine. But there are times when I want to only use a 16,16 icon, say in the treeview. When I set the icon of the node to the image in the imagelist, it is using the default size which is 32,32. I've tried setting the size on the fly of the imagelist, such as imageListStatus = new Size(16,16), but that appears to delete all of the images out of the list. Is there any way to use multiple resolutions out of an imagelist that is containing icons with many sizes? TIA!

    C# tutorial question

  • Image Resources - What is difference between Local Resource and Project Resource File
    S shultas

    Ahh! Makes perfect sense! Awesome, thank you!!

    C# question learning csharp tutorial

  • Image Resources - What is difference between Local Resource and Project Resource File
    S shultas

    Hello Everyone- I'm learning C#. I am working with adding some images into an application now, for example, on a button. When I select Image, I am presented with a couple of options. I can import an image under "Local Resource" or I can import the image under "Project Resource File". I am wondering what the difference is between the two, and which one I should be using? It appears that when I select an image to be imported into the project resource file, the next time I compile it, the executable is bigger, so I'm assuming that the images are compiled into the exe? (Ie, so I do not have to distribute individual image files with my application??) Thank you!

    C# question learning csharp tutorial

  • Talking to a telnet server [modified]
    S shultas

    Normally when I program an application, I simply connect to it, send commands to the socket and listen for commands back from the socket. It has always been straightforward. This device however, has something different. When I run the packet sniffer even with Hyperterminal, every command that I send out is proceeded by a ton of hex codes. I've tried to read on the RFC of how telnet works but I am just not that advanced. I'm used to opening the socket, reading and writing to it and that's it. I can't figure out how to get the server to just respond to me with simple ASCII

    C# sysadmin security help

  • Talking to a telnet server [modified]
    S shultas

    If I use Hyperterminal to connect, it does not ask me if I want to send my username/password when I connect to the server, it simply connects and says Welcome to Microsoft telnet server ... login: I am in need of whatever it is that Hyperterminal is respond to the server after the servers initial response (that appears to be putting it into dumb terminal / TTY mode). I've ran a port sniffer and I'm just not smart enough to figure it out, there is so much data being sent back and forth :(

    C# sysadmin security help

  • Talking to a telnet server [modified]
    S shultas

    Hello Everyone- I am trying to build an application that connects to a telnet server and interacts with it issuing various commands. I have done this in the past and it worked relatively painlessly. This particular device I am working with today however, is using some sort of advanced feature and is sending me an authentication request as soon as I connect to it. (If I use microsoft telnet client to connect, as soon as I connect it prompts me to send my windows login information, if I say no, I am brought to a login: prompt, this is what I want to get to with my program). I have been scouring the net and I cannot find what my response should be to this server to tell it that I do not want to use the NTLM authentication, I just want to be brought to the login: prompt. If anyone could help me I would greatly appreciate it! EDIT: By the way, as soon as I connect, this is what I receive from the server: FF FD 25 FF FB 01 FF FB 03 FF FD 27 FF FD 1F FF FD 00 FF FB 00

    modified on Sunday, August 9, 2009 2:28 PM

    C# sysadmin security help

  • MCI Video Playback - How to get MPEG-4 to work
    S shultas

    Hello Everyone! I am building a test application that plays video files. I found a tutorial and am importing WinMM.dll, and calling mciSendString to open the file and then play it back. It works great for almost all videos except MPEG-4. When I load an MPEG-4 file, MCI returns an error that the specified device is not open or not recognized by MCI. I originally thought this to be a codec issue, however I can open and play the file back in Windows Media Player just fine. I went and downloaded ffdshow just in case, but I still receive this error from the MCI device. Is there something I am missing to tie this together, or is it just not possible? If it is not possible, could someone please point me in the right direction to head so I can make an application that allows me to play back MPEG-4 video? I only need very basic control (Play,Stop,Pause,Seek). I am building an application that is going to view two video files side by side and display them simultaneously for evaluation. Thank you in advance! EDIT: I think they are using H.264 encoding on their MPEG-4 file if that helps, but none of the video inspectors that I have used on the file have been able to successfully tell me what codec exactly it is using.

    C# help tutorial question

  • Edge Detection in image to measure size [modified]
    S shultas

    First of all, your article series is AWESOME and I thank you for it as well as the help you've given me over the past few weeks! I am wondering if this scenario would work. Your input would be greatly appreciated! The camera is set to produce a 1024x768 image. The camera looks down onto a table that is 10' by 10' (100 Square Feet). I position the camera so that the image it captures exactly covers this table. The table is painted a bright orange color (R-255,G-162,B-59). (Now I'm just trying to work this out in my head, I don't know if this will work, but what I am thinking is...) The camera is looking on the table, so we know that the 1024x768 image that the camera is going to produce will cover exactly 100 Square Feet, every time. So, a grand total of 786,432 pixels. 100 Square Feet would be 30,480 sq millimeters. Each pixel would equate to approximately 0.03875732421875 of a millimeter. (I don't know if this is correct or logical or would work I'm just thinking out loud). I open up the image. I walk through the image using GetPixel, pixel by pixel, and check the RGB value of that pixel. If it is close to 255/162/59, i disregard it. Any other color would add the 0.038... number to the global count. After it is all said and done, I should have a value of how many millimeters in the entire space is "in use" and be able to calculate the total area of the wood or stones that are currently on the table. Basically a family member contacted me. He sells stone (they may be mosaic, so not necessarily always rectangular). I'm trying to think of a way to take pictures of the stone as he puts them into a bin in order to calculate the square footage on those stones that he is selling (ie, he sold 250 SQ feet to someone "by eye" and the person actually got out a measuring tape and measured all the pieces and realized there was only 240 SQ feet and had a hissy). So I was thinking if this method of analyzing an image pixel by pixel, when you know exactly how big the area is every time of that image, would work. Thanks much for the response!!

    C# help

  • Edge Detection in image to measure size [modified]
    S shultas

    Hi There- That is the article that I am reading now! What I am trying to do is figure out how to take the edge detection from that article and apply it into my solution (ie, somehow take the edges and do some calculations to figure out the square footage). That's kind of where I am stumped, I don't know how to "link" the two. Thank you!!

    C# help

  • Edge Detection in image to measure size [modified]
    S shultas

    Hello Everyone- I am looking at making an application that will detect the square footage of a piece of wood that is placed on a table. I am thinking that the table will have a bright orange color, so the dark wood placed on it would provide a lot of contrast. I will use a camera to take a picture of the table (the table lets say is 6 FT by 6 FT) and analyze the image to figure out how big the piece of wood is that has been placed on this table. I am wondering if anyone can point me in the right direction here code wise (like search terms, etc). I've so far made it to Blob Analysis and have been reading about that. Any help or pointers into exactly what I need to learn to make this possible would be appreciated immensely! Thank you! EDIT: I also am wondering if it would be possible to somehow equate each pixel with a real life measurement, such as 1mm, and if it was possible to somehow calculate the pixels that were not orange, and come up with a measurement that way (Because some times the pieces of wood are not going to be square or rectangular ... but I figured I would get the sq/rect down first because I just figured that would be the easiest). I'm in the middle of reading an awesome multi-part article on this site about it, but just trying to figure out which way to go next. Thanks much!

    modified on Thursday, July 9, 2009 9:42 AM

    C# help

  • Proper way of creating a form with multiple pages
    S shultas

    Righteous. That's exactly what I was looking for, the proper thing to do, which appears to be a User Control! Now I can go look up how to do that! Thank you very much I really appreciate you taking a few moments to help me out.

    C# csharp visual-studio winforms design algorithms

  • Proper way of creating a form with multiple pages
    S shultas

    Ok I'm familiar with the form designer in VS. What I'm not familiar with is ... "create controls for all the views, put them all in a control, and just change which one is visible". So "Put them all in a control", what control? What would I draw using the forms designer to place all of these controls into? I was thinking of something such as a panel, but when I set Visible of the panel to false in the designer it does not "disappear" from view, making it impossible to draw multiple panels with multiple controls and design it easily. Thanks!!

    C# csharp visual-studio winforms design algorithms

  • Proper way of creating a form with multiple pages
    S shultas

    Hello Everyone- I'm just getting started with doing some Windows Forms programming. I'm wondering what the proper way to go about designing a Form with multiple pages in it is. I am wondering if there is a way to design this all in the Visual Studio Editor rather than create all the controls in code and place them. Here's an example of what I want to do. If you've ever seen Outlook. Left hand side there is a bunch of options. Calendar, Mail, etc. You click Calendar and the right hand page shows you the calendar view. If you click on Mail, the right hand side shows you your mail. I'm looking to have functionality similar to this. You select an option on the left hand side, and the right hand page is displayed based on what the end user wants to do. I'm wondering if it is possible to create all of this in the Visual Studio Editor so I can draw controls and size them and all that good stuff. What I am basically looking to do is almost have a Tab Control on the right hand side with multiple tabs and different controls on those tabs, and the ability to edit them easily in the editor (like with the tab control, you click on the page and presto, you can draw whatever you like on there) ... looking for the tab control without the tabs on the top! Thanks so much in advance. I'm just looking to be pointed in the proper direction is all. Spent two hours searching but can't find exactly what I am looking for.

    C# csharp visual-studio winforms design algorithms

  • Where to start? - Calculating the size of an object (square footage) in an image
    S shultas

    Hello Everyone- I have been programming with C# building database applications for a year or so. I have a new side project that I am working on and quite frankly, I don't know where to start! (I can't even figure out what to type in to google!) What I am looking for is a starting point to get me going in the right direction. I am trying to build an application that will utilize a camera, take a picture of a table with a predefined (green) background, and calculate the square footage of the piece of stone that is laid on it. Interfacing with the camera is no problem, I can tell the camera to snap pictures and access them. I want to then open up this image that the camera took and analyze it. The table will be painted green (or white or orange). The stone will be laid on top, so for the sake of this message lets say its a piece of stone on a pure white table. I want to analyze that image and figure out the area (square footage) of that piece of stone. I know that I can do the mathematical calculations based on how far the away the camera is from the table, but I'm not sure how to open up an image and read that image, and tell the area of "space that is not white". If anyone could point me in the right direction I would really appreciate it! Thanks so much in advance!

    C# csharp database help tutorial question

  • Is it possible to have multiple "lines" in a datagridview?
    S shultas

    Hello Everyone, I am creating a small application that looks like an Excel Spreadsheet for scheduling purposes. It looks as such: Employee Name 1 | Employee Name 2 11/01 8:00-10:00 Blah | 8:00-10:00 blah blah 11/02 11/03 What I am trying to do is allow each cell to have multiple selectable lines in it. For instance: Employee Name 1 | Employee Name 2 11/01 8:00-10:00 Blah | 8:00-10:00 blah blah 12:00-1:00 Lunch | 11/02 11/03 I have seen other applications that are able to do this without creating another row and duplicating the date. I have read and read but I can't seem to find anything that points me in the proper direction, most likely due to the fact that I don't know what keywords to look up in order to find what I am looking to do. Any pointers in the right direction of how to achieve this would be greatly appreciated!

    C# tutorial 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