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
L

loyal ginger

@loyal ginger
About
Posts
265
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A place out of view
    L loyal ginger

    I did not hear screaming from the neighbors. Maybe the window was too small and they did not have glasses on.

    The Lounge question winforms

  • A place out of view
    L loyal ginger

    I was doing something with a Windows Forms application and noticed that when the main form is minimized, its Left and Top properties are both -32000. That's way out of view of a normal system. Why does it do that? I wonder if anyone has a system with high enough resolution to make one of the monitors display stuff in that location. Just curious.

    The Lounge question winforms

  • Reverse gears(MT) in cars
    L loyal ginger

    Among the three different vehicles I have driven, one of them had the same problem you described. That one (2000 Toyota Tacoma) had a reverse gear with straight teeth (the edge of each tooth is straight and parallel to the axle of rotation, also called spur gears) and no synchronizer (It has synchronizer on all other 5 forward gears). It is hard to shift it to reverse sometimes. The straight teeth is obvious because when it is in reverse the sound it makes is quite different from the other gears. I guess it is a little cheaper to make the straight-tooth gears, and we are not driving in reverse a lot so it should not bother too much. By the way, I bought this vehicle brand new in 2000 with only 4 miles on it. The other two vehicles (1993 Ford Ranger and 2011 Chevrolet HHR) don't have this problem. I can put in reverse easily even when the vehicle is slowly moving. All the gears are super smooth. The reverse gear also has the helical gears so it is as quiet as the other (forward) gears. For all these vehicles I don't have to depress the brake pedal to engage the gears. I believe for manual transmission, you don't need to depress the brake pedal to engage gears. My point is it depends on the design of the gear box. You happen to have the one with the reverse gear problem. You may need to double-clutch, or even move the vehicle a bit to engage the reverse. Since you bought a new one again from the same manufacturer you probably have the same type of transmission.

    The Lounge help regex question

  • MS Made Copying files on Windows Easier, kind of
    L loyal ginger

    I was copying a large amount of files from one drive to a USB flash drive on a Windows 7 box. I selected all the folders and files, copied and pasted to the target drive. The system gave me an estimate of 23 hours to finish the copying. At the point when roughly 80% was done I had to leave so I decided to cancel it at that point. Later when I was back I wanted to continue the copying. I was lazy so I selected all the folders and files again (even though 80% of them were already copied), copied and pasted to the target drive. I expected to see a message box showing "there is already a file with the same name in this location", and I would utilize the GREAT improvement MS had made over XP that I could just select "Don't copy" and "Do this for the next xxx conflicts" so the rest of the files would be copied. Instead, I was greeted by this message: "There is not enough space on xxx. You need an additional 22.0 GB to copy these files", with a "Try Again" button and a "Cancel" button. I think they should give the users another button "Try to copy anyway" so they can copy as much as they can. In my case the free space is large enough to hold the rest of the not-yet copied files! Besides, sometimes people want to stuff as many files as they can on a drive. All my files are small ones, the remaining space is not big enough for all the files selected, but it can hold thousands of these small files.

    The Lounge adobe json

  • retrieving index info
    L loyal ginger

    I am writing a utility to copy tables from one DB to another. This can be from MySQL, MS SQL Server, MS Access DB, or SQLite DB to another DB of one of the above types. The program handles any of the above combinations. For example, the user can choose to copy a table from MySQL server to an MS Access database. I am using ADO.NET to write this app. Currently I create a DataReader using the query "Select * from ", and then call its GetSchemaTable() method to obtain the field info of the source table. This method returns a DataTable that contains each field's basic info such as field name, type, size, whether or not it is a key, etc. These allow me to do the data type match and create the fields in the target DB. My question is how to obtain the source table's index info. The above DataTable object seems not sufficient for this purpose. Can you give me a pointer as to how this can be done? Thanks!

    Database database tutorial question csharp mysql

  • AT&T - Customer Unsupport
    L loyal ginger

    The price is high in some places because they believe they can get it that high. They have better coverage than other companies and other companies cannot compete with them. They are just trying to get as much out of your pocket as they can.

    The Lounge sales help question

  • Quotes to live by!
    L loyal ginger

    This may help: In Japan people travel on the left side of the road.

    The Lounge beta-testing testing help

  • SQL Group By Question
    L loyal ginger

    Thanks for your time!

    Database database question

  • SQL Group By Question
    L loyal ginger

    I am trying to do this in Microsoft Access. I seem to be unable to construct a 'simple' query. To illustrate, here is a sample table:

    Field1 Field2 Amount
    A New 10
    D Old 5
    G Old 1
    H Old 15
    H New 55
    X Old 20
    Z Old 100
    Z New 20

    I need to group by Field1 and only return the Field2 data for the record that has the maximum number in the Amount field. I tried to use the 'First' function but Microsoft Access sort the records internally so it does not return the right value even if I pre-sort the records with a sub-query. Do you have any advice? The result should look like the table below. Desired Result:

    Field1 Field2 Max(Amount)
    A New 10
    D Old 5
    G Old 1
    H New 55
    X Old 20
    Z Old 100

    I have trouble getting the value of Field2 in the record containing to the maximum value of 'Amount.' Any suggestions? Thanks in advance for your time!

    Database database question

  • send data from google api v3 javascript to c#
    L loyal ginger

    I failed to mention that you need to specify that the WinForm object is going to be used for the scripting from JavaScript. The following property should be updated from your WinForm class:

    webBrowser1.ObjectForScripting = this;

    Sorry for this oversight.

    C# javascript csharp html com iot

  • send data from google api v3 javascript to c#
    L loyal ginger

    I believe my answer to your previous question (http://www.codeproject.com/Messages/4243389/Re-csharp-windows-form-google-api-v3.aspx[^]) actually contains answer to this question. Check the first half of that answer for more information.

    C# javascript csharp html com iot

  • c# windows form & google api v3
    L loyal ginger

    Sorry I might have misunderstood you. In that case I really have no clue what went wrong. My original reply to your question was based on my error-free application, which happens to be very similar to your program. I don't have a complete picture of your program so it's hard for me to trouble shoot your program. Maybe somebody else here can give you a better answer? Thanks for your patience!

    C# question csharp javascript json

  • c# windows form & google api v3
    L loyal ginger

    In my example, wb_map is the WebBrowser control on the Form. You need to replace it with the WebBrowser control in your application.

    C# question csharp javascript json

  • c# windows form & google api v3
    L loyal ginger

    Your C# WinForm application with webbrowser control embedded in the form can use the following ways to achieve two-way communication between your C# code and the JavaScript code loaded by the webbrowser control. From JavaScript to C#, follow these steps: 1. Create a member function in C#. In this example, suppose we have a function called "report_location":

    public void **report\_location**(double latitude, double longitude)
    {
    	//you can do whatever you want to do in your C# function here
    }
    

    2. From your JavaScript code whenever you need to call the above C# function, do it like this:

    window.external.**report\_location**(...);
    

    In the above function call the "**...**" represents the arguments you pass to the function. Use whatever arguments you need to use. For example if you are using Google Maps API and you add a listener to the map's click event, the function will be like this:

    google.maps.event.addListener(
    	map,
    	'click',
    	function(event){
    		window.external.**report\_location**(
    			event.latLng.lat(),
    			event.latLng.lng()
    		);
    	}
    );
    

    Your C# code will be able to get the clicked location's latitude/longitude. From C# to JavaScript, follow these steps: (These will answer your specific question.) 1. In your JavaScript code create a function. In this example, suppose we have a function called "set_location":

    function **set\_location**(latitude, longitude){
    	//this is your existing statement
    	//var myLatlng = new google.maps.LatLng(30.050144, 31.240042);
    	//this is the new statement
    	var myLatlng = new google.maps.LatLng(latitude, longitude);
    	//do whatever you want to do...
    }
    

    2. In your C# code whenever you need to call the above function to set the location, do it like this (suppose your webbrowser control is represented by the variable **wb_map**:

    wb\_map.Document.InvokeScript(
    	"**set\_location**",
    	new string\[\]{
    		"30.050144",
    		"31.240042"
    	}
    );
    

    Of course if the numbers are stored in variables such as **latitude**, **longitude**, the above call will be

    wb\_map.Document.InvokeScript(
    	"**set\_location**",
    	new string\[\]{
    		latitude.ToString(),
    		longitude.ToString()
    	}
    );
    

    Hope this answers your question. Happy programming!

    C# question csharp javascript json

  • My computer died
    L loyal ginger

    A neighbor called me with a problem similar to yours. I went to her house and tried some tricks (some of them I found by googling the problem). The computer did not respond with anything on the monitor when the power button was pushed. The power supply seemed to be working. The computer refused to boot up. So I simply pulled one memory chip out (so the computer is reduced to half GB of memory, instead of the original 1 GB), and pushed the power button. The computer booted right up. I would imagine that if a memory chip was bad, it would show something in the booting process (POST), but it didn't. Reseating the memory chips will not solve the problem. You have to pull one out and try. If it does not work, put the one in and pull the other one out. It may not be the problem, but it worths a try.

    The Lounge adobe hardware question discussion

  • Screen Capture Software
    L loyal ginger

    I have a free screen capture program for Windows that seems to fit your need well. It remembers the area set by the user and sets it to the same location and size when it is launched again. It has a mode to automatically capture the current active window and save the images to a folder specified by the user. It allows the user to adjust the size and location of the area to be captured with the mouse, or by typing in the coordinates. It has the option of capturing the mouse cursor image and include it in the final image. The images can be captured to the clipboard, files, or (for a quick print out) directly to a printer. A document is included with the program showing the basic functions of this program, and explaining how to use it. If you are interested in trying this program out, please contact me through email.

    The Lounge csharp com tools question

  • Inflation
    L loyal ginger

    Right. Our VAX 11/750 cost a lot more and occupied the only air-conditioned room in our place. It had only 8MB of memory. However, it drove 40 terminals. When the load was high, our users often had to wait for 10 minutes to even open a source code to edit.

    The Lounge tools

  • Inflation
    L loyal ginger

    For $800 you can buy a computer that is more then 10 times powerful as a $8000 computer back then, with 100 more times storage.

    The Lounge tools

  • jkjkjjkj
    L loyal ginger

    This must be a certain type of test. Looks like it is successful. I suggest that this be the end of the test.

    C#

  • tasteless
    L loyal ginger

    I was following a link from todays CodeProject|Daily News to open the page for "6 Small Math Errors That Caused Huge Disasters" from my company computer. I was greeted by the following message:

    Websense enterprise

    Your organization's Internet use policy restricts access to this web page at this time.

    Reason: The Websense category "Tasteless" is filtered.

    URL: http://www.cracked.com/article\_19623\_6-small-math-errors-that-caused-huge-disast ers.html

    Options: Click Go Back or use the browser's Back button to return to the previous page.

    followed by a "Go Back" button. Tasteless?

    The Lounge html com question announcement
  • Login

  • Don't have an account? Register

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