|
oh, Encoding.Unicode = Encoding.UTF16
I got it, Thanks!
Charith Jayasundara
|
|
|
|
|
hi all, I need to build a project for school in C#
I need to build a generic application that is tracking the user when he enters a website.
meaning I want to know on which buttons he clicked(and how many times), the position of the mouse at any giving time etc.
I thought of 2 ways to implement it
1. to install the application on the website and by using JS to get all the information
2. to bulid an add-in to the browser, and from that to get all the information
what do you think I should do?
can you give me advantages and disadvantages ?
thanks
|
|
|
|
|
Hmmm... by add-in do you mean something specific to browser (like an ActiveX control or something). If that is so, I guess it can be used if you are cent percent sure your users would use the same browser.
JS way looks good to me as you can capture all these events and probably make AJAX calls to retrive the information and send them to server.
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
Browser addin can do anything, so you will be able to do whatever you want to do. But, you will have to create separate addins for separate browsers. There is no way to create a generic addin that can be installed with all browsers. So you have that challage there...
I also think JS will be the most feasible solution...
Charith Jayasundara
|
|
|
|
|
thanks for your answers
if i'm building an add-in using WPF can't it work with firefox?
|
|
|
|
|
I'm not an expert in browser-specific programming, so I can't answer you specific questions. The general problem to face is not what you are using inside your add-in but the problem is that different browsers have different plug-in interfaces and underlying programming models.
Regards
Thomas
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
Hi.
I am developing a windows application in C#.
I want the source code of Image Editor in C# windows application whose work like MS Paint. on which we can
write text on image dynamically through mouse drag and drop. also we can drag other controls like arrow or box.
thanks in advance
dhemittal@gmail.com
|
|
|
|
|
We answer specific programming questions, I think what you are after is here[^]
|
|
|
|
|
dheeraj.mittal wrote: I want the source code of Image Editor
and I'd like a new car for Xmas. Who is going to be luckiest? I'm sure you can get the source code if you have seep enough pockets.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi, thanks FYI.
but i don't have it.
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
dheeraj.mittal wrote: I want the source code of
What do you think this here is??
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
Even I am looking for the same source code... But for me ITS URGENTZ PLZZZ... wait this has become a common joke... lost its humor i guess
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
ditto everything said above.
What you want to do isn't that hard but it you really want source code (I doubt you'll know what to do with it and this will be total overkill ) - GIMP[^] is open source.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Gimp isn't C# through.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I'm sure a man/woman of his talents can translate it - shouldn't take more than a year or two
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
DaveyM69 wrote: I'm sure a man/woman of his talents can translate it - shouldn't take more than a Sednan [^] year or two
Fixed that for you.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I guess theres always Paint.Net
Oh did I forget to reply directly to his post? Guess he won't be seeing this then.
Oops
|
|
|
|
|
I have a windows forms application with a single form. On the form I have a ListView control in Details mode that I am using as a grid to display data; the ListView's Anchor property is set to all 4 edges (Top, Bottom, Left, Right), so it will retain it's distance to all edges when resized. The data is readonly, no changes will be made to it. The ListView has 4 columns, one of which is a dollar amount and I decided to put a Label control beneath the ListView control aligned with the amount column. In code, I set the label's Text to be the total of the amounts from the ListView's amount column; the label has no anchoring or docking and AutoSize is turned off. I decided that since the ListView columns can be resized and also the ListView itself can change size if the form is maximized or restored, then I'd like to move the label around so that it stays aligned with the amount column in the ListView. The ListView is named lstInvoices and the label is named lblTotalAmount . I hooked up the ListView's ColumnWidthChanged event handler like so:
private void lstInvoices_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
{
int columnIndex = lstInvoices.Columns.IndexOfKey(NETAMOUNT_COLUMN_NAME);
if (columnIndex != -1 && (columnIndex == e.ColumnIndex) || (e.ColumnIndex == columnIndex - 1))
AlignTotalLabelWithAmountColumn();
}
and here's the AlignTotalLabelWithAmountColumn function:
private void AlignTotalLabelWithAmountColumn()
{
int columnIndex = lstInvoices.Columns.IndexOfKey(NETAMOUNT_COLUMN_NAME);
if (columnIndex == -1)
return;
lblTotalAmount.Width = lstInvoices.Columns[columnIndex].Width;
lblTotalAmount.Left = lstInvoices.Left;
for (int i = 0; i < columnIndex; i++)
{
lblTotalAmount.Left += lstInvoices.Columns[i].Width;
}
lblTotalAmount.Top = lstInvoices.Bottom + 2;
}
In the function, I set the label's Width property to the same as the column in the ListView , and I calculate the Left position of the label by taking the Left of the ListView, plus the Width of each column up to the column I wish to line it up with. Last, I set the Top of the label to the Bottom of the ListView plus 2 pixels (for a small separation).
When I run it the Label shows up in the middle of the ListView . When I step through the code, I see that everything is set as expected and that (on my system, with 1280 x 1024 resolution) the Bottom property of lstInvoices is 920, so the Top property of lblTotalAmount is set to 922. But of course, the label is somehow rendered in the middle of the ListView and not at the coordinates I specified. If I resize the form and enter the code again, right at my breakpoint it shows the Top property of the label to be 523. It seems that even though I'm correctly setting the Top property of the label in the code, something is overriding that value and changing it to 523, but for the life of me I can't figure out what's causing it! Any ideas?
Keep It Simple Stupid! (KISS)
|
|
|
|
|
When I open my application, it automatically focuses on a button. I want it to focus on the text, so that the user doesn't have to click on the text box. I have already tried textbox1.focus(), but it still focuses on the button.
Any help would be appreciated.
Thanks,
Prateek
|
|
|
|
|
|
Thanks, that helped
|
|
|
|
|
Glad to help you
|
|
|
|
|
Hi I'm making a windows application that when the user selects it opens up a form for them to select the date from. Once they click the ok button it updates the text box on the first form. I have tried doing this a couple of ways:
1)I first tried it through a public method that is called from the click of the ok button and then changes the value.
2)I have changed the modifiers to public so that it can be changed from the second form and have tried to changing the text from here.
Neither have seemed to work it just leaves the text box on the first form empty. I was just wondering if there was a silly little thing that I have missed which is stopping this from working.
Any help is always appreciated.
Regards
Gretna
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
|
|
|
|
|
|
I am trying to create a password protected installer using c#.net. I have added a textbox(A) type to setup. In my installer class I am verifying this input text (which is supposed to be the password) in OnBeforeInstall() method. What I did is just through an exception from this method so that installation will not take place. However this code fragment is not effective when I installed in my machine. Can somebody advise on the correct usage model?
Here is my code segment:
>>>
Protected Overrides Sub OnBeforeInstall(ByVal stateSaver As System.Collections.IDictionary)
Dim myInputCompanyName As String = Me.Context.Parameters.Item("Message")
MessageBox.Show(myInputCompanyName)
Try
Throw New Exception("Invalid Company Name or Key")
Catch ex As Exception
End Try
End Sub
>>>
Thanks in advance.
|
|
|
|