|
|
thanks leppie my problem is like this i can get the total number of record from the database, but i want to keep track of the number of records the textbox / datagridview is displaying. so in the label RECORD 9 of 10 which 10 is the total record then 9 is the record on the textbox / datagridview if i move it forward the label must display RECORD 10 of 10.
sorry my english is bad so i cant explain it well..
im just new in c# and i have this project working on without me training in c#.
thanks..
|
|
|
|
|
Hi guys
I hoep someone can help me out here.
I have a C# app that runs on my development machine (WinXP with VS2005) and plays a flash (.swf) file.
On the target machine which is a vanilla Win2K machine, I have installed Flash v9.0.124.0 and registered the flash.ocx file. I can play the swf in IE, but my application does not play.
Have I missed something?
Any help will be appreciated
Thanks
Paresh
Paresh Solanki
"To the world, you may be just one person, but to one person, you may be the world"
|
|
|
|
|
Did you get an error message? Did you try debug it on the Win2k PC? Does the eventlog give you any hints?
|
|
|
|
|
nothing, just a blank page where the swf should be playing.
My test app has a web browser and the flash object on the form, both pointing to the same file.
it plays in the web browser part, but not in the flash object part.
Paresh Solanki
"To the world, you may be just one person, but to one person, you may be the world"
|
|
|
|
|
Sorry, cant help. Perhaps MSDN forums will provide an answer.
|
|
|
|
|
Found the problem
The flash installer creates puts some files in
system32\Macromed\Flash and one of these files is
NPSWF32_FlashUtil.exe , which should be run. This file then downloads some additional files into the
system32\Macromed\Flash directory and registers the correct version of
Flash.ocx
Why can't they put this all into the main installer?
This cockeyed install means I cannot install flash in unattended mode on my target machines, and they must be connected to the internet for flash to install!
Paresh Solanki
"To the world, you may be just one person, but to one person, you may be the world"
|
|
|
|
|
Hi,
This question may be a bit silly, but I still can't figure it out:
When entering a DataGridView DoubleClick event handler function (DataGridView1_DoubleClick(object sender, EventArgs e), e only has basic methods (Equals(), ToString() etc.).
However, at run time, e also have a 'Location' field, which I need. If I try to compile a code contains e.Location, it won't compile...
At google I found people that use e.RowIndex, but I don't have that one either...
Please help.
Thanks!
|
|
|
|
|
check whether u have imported all the files related to DataGridView properly.
rahul
|
|
|
|
|
Using VS2008 I have the same thing, e has very few methods. I got aroung it by this:
DataGridViewRow curRow = datagridview.CurrentRow;
I could then use all the columns etc from curRow.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
On double clicking on the grid, the event invoked is:
Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
End Sub
this gives RowIndex and ColumnIndex, whereas you will get e.location under the mouse click events, such as:
Private Sub DataGridView1_CellMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDoubleClick
End Sub
Hope this helps.
Vinay
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
hi all,
i have a huge problim i have been asked to devolep a small project to log errors and exceptions on widows EventLog and i have no privalge on it can any body help me on this .
i tryed
<assimbly:eventlogprivalge(securityaction.assert)>
and it dosent worked!
thx
|
|
|
|
|
AFAIK you only need elevated permissions for creating a new log, not reading from or writing to an existing one.
MSDN[^]
Dave
|
|
|
|
|
Dave,
i know how to create and write event but the problem i dont have a privlage to do that ,
i tried too many ways the problem stills.
thanks for trying to help me
|
|
|
|
|
Hi
I want to write c# application that simulate web browsing. For example, searching something in google, and getting the page of the first result.
It should work automatically, i.e a console application and not a GUI.
For this purpose I should know how to do the following:
1. get a page (google.com)
2. fill a form (the search text box)
3. press a button (Google search button) and get the result page
4. click on a link (of the first result) and get the page
I guess that if I know what classes and methods are required I will be able to complete the rest.
Thanks!
Moti
|
|
|
|
|
Look at WebClient for a start.
|
|
|
|
|
Well, this just plain can't work . How can you browse the web from the console ? You can do a http post and get the html of the response, that is true. But, you talk about pressing a button - there are no buttons in console apps.
Try to come up with a spec that makes sense, first. Then look into how to do a http request and response in code.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
HI, all, I want to ask a question as what I described in the topic.
For example, now I have some data in the text box, such like :
$VTG,,,,,,,,,N*30
$GGA,,,,,,0,00,99.99,,,,,,*48
$GSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GSV,1,1,00*79
$GLL,,,,,,V,N*64
$ZDA,,,,,00,00*48
$GSV,,,,,,,,,,00*67
.
.
.
.
.
From all these data, what I want is only the string starts with $GSV, so how can I pick this kind of string out and put them into another textbox?Should I save all these data first and use the [COLOR="Red"]StreamReader[/COLOR] to read each line of the saved file?
Thank you for your kind helping~!
|
|
|
|
|
A textbox has a Lines property. Use that.
|
|
|
|
|
asumming that all that is in a multiline text box you could try to use textBox.Split(); youll have to split it by the newLine character. the split method returns an array, you can then foreach the array and use if(myString.StartsWith(@"$GSV"))
hope it helps, good luck
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
HarveySaayman wrote: you.suck = (you.passion != Programming)
Me like ....
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
thanks
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
I would use a regex, if you know how the string starts. Or even just the string search functions in the string class.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i didnt see leppies post bofore i posted mine, use the textBox.Lines(as leppie said) property like this
string[] myArray = textBox1.Lines;
foreach (string myString in myArray)
{
if (myString.StartsWith(@"$GSV"))
{
MessageBox.Show("Found One");
}
}
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi, HarveySaayman, I found this code is very useful and I can get what I want with this code. Thank you very much.
Have a nice day~!
|
|
|
|
|