|
I tried that one but it doesnt recognise RowIndex and ColumnIndex properties.
|
|
|
|
|
what do u mean it doesnt recognize rowindex and columnindex. show me the code plz
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Heres the code below.
<br />
dataGridView.CurrentCell.Selected = false;<br />
dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected = true;<br />
dataGridView.CurrentCell = dataGridView.SelectedCells[0];<br />
|
|
|
|
|
You can use gridview.CurrentCell.RowIndex or from the event args of the CellClick event e.RowIndex .
Hope it helps.
I will use Google before asking dumb questions
|
|
|
|
|
Hello *,
I would like to ask you how I can get last item in ListBox?
Not selected item.
E.g.
In List Box is:
Item 1
.
.
.
Item 13.
How can I get Item 13?
regards
|
|
|
|
|
listbox.Items[listbox.Items.Count-1]
I will use Google before asking dumb questions
|
|
|
|
|
I have a problem with writing algorithm in c#, I don’t know if here is the right place to ask my question, but maybe it indirectly connected to here:
In my program I had to find and display the shortest way from room to room in a building.
I used the djisktra algorithm – an algorithm to find a short way in directed graph.
I had the following problem:
a. many times the user wants to search a room that have been search in the past. I don’t want that each time it will be scanned from the beginning.
Is there a way to save the vertexes that were found in the past? I thought about an idea – to save in a matrix all the vertexes that there was an undirected path between them, with linkedlist to save the way, but it is not always happen to be shortest way – how can I do it anyway?
b. this algorithm is only for directed graphs. In my program most of the cases suits undirected graphs. If there is someone who knows how we doing it usually – I will be happy to get an answer!
For example: room a’ connects to b’, the price between them: 3.
Should I enter to the prices array (source, dest., price) once: a, b, 3 and second b, a, 3 or I can refers it first as source and second as destination?
I will be glad if someone will help me!
thank all!
|
|
|
|
|
ear All,
Good morning to all!!!
I have been developing the Microsoft Visual C# 2.0 Windows application.
Now I have completed my project development. Now I want create a Setup of my projects.
In my project have ‘ONE SOLUTION File’ and have THREE Different type of projects.
1. Solution File
a. Console Application (Project A)
b. Windows Service Project as well as console application (Project B)
c. Window Project (Project C)
I want to create a One Setup files for above solution file. How can I do this?
Kindly any one helps me to implement the Setup of my solution file (Contains 3 Projects).
Please kindly send me the solution for that and send me any related document or links for Setup the projects.
Thank for your time to look on my queries.
Thank you in advance.
Thank you,
Best regards,
Sundar.
B.Sundarapandian
|
|
|
|
|
Just add a new Setup Project to your solution and add the primary output for every project within your solution. When you will build the solution you will have only one setup file with all the output that the 3 projects result.
Hope it helps.
I will use Google before asking dumb questions
|
|
|
|
|
hi i m mica 25 female from soeul and i want to import some html files to mysql using c#. i dont know how can complete this job. thanks.
mica
|
|
|
|
|
What you don't know? How to store the file in MySQL or how to connect to it. Be more specific.
I will use Google before asking dumb questions
|
|
|
|
|
thanks for responding me.
well i know how to connect. but dont know how me import html files to mysql using c#. what will be procedure? As i have come to know from google that a command "LOAD DATA INFILE"like that command is used for loading csv files and txt files. "mysqlimport" is another command but me dont know how i can use it.?
please htlp me out?
thanks
mica
|
|
|
|
|
An easy way to achieve this is to declare a field within the table as BLOB and read the data from the html file, like any other file, and insert the data using the INSERT statement
I will use Google before asking dumb questions
|
|
|
|
|
Thanks buddy for ur sicere help for me.
But please can u tell me about "BLOB" data type used in Mysql. can it accept special character like enter. or just like these.
thanks.
can u give me ur email id. so that i can send u a file which is giving me error during insert command.
thanks.
mica
|
|
|
|
|
Try [this]. You can get more info there.
I will use Google before asking dumb questions
|
|
|
|
|
I am using unbound datagridview in which one data column is for deleting the row. I am using Delete image on this cell. Now when users adds a new row or even before adding the row. the Cross Image displays in it. which is not my delete image and to get the image in the cell I have to programmatically reload the row after editing to display image. Is there any way through which I can get my delete image as a default image on the column cells.
Regards
|
|
|
|
|
iwant code for creating menus with sub menus.please send to my email-id.
p.ayyappa swamy
|
|
|
|
|
As my mother always said, "I want doesn't get"
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
ayyappa swamy wrote: please send to my email-id.
No. If I help it is for the benefit of everyone.
Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland
My website
|
|
|
|
|
Go to www.rentacoder.com
They will give you the code.
You just don't get what this forum is all about? Do you?
People here HELP you when you have PROBLEMS. Of course this means that you have TRIED something. If you don't know the meaning of the bold word just the meaning of the words WANT then I'm sorry for you, and stay away from this forum.
I will use Google before asking dumb questions
|
|
|
|
|
Looks to me "Want Code Ninja" is out again...
|
|
|
|
|
I find it absolutely astonishing.
Not only have you received a verbal thrashing from one of the most sarcastic and ingenious users of said concept that I have had the fortune of conversing with on a friendly level, but also you still have the audacity and the perseverance to continuously post demands in such a way that would make a pacifists palms itch as if said pacifist has been rubbing his hands with poison ivy and kerosene since the morning, assuming that now is night.
Cease and desist your demands in such an infuriating way and actually attempt to be less pathetic than college student besotted with spirits and his head in a toilet bowl by writing your own code.
Should Pete actually decide to commence his international dragnet to completely ridicule you for all time to come, then Pete can consider me his first soldier to answer his call to arms.
EFT!
"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." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
Mustafa Ismail Mustafa wrote: Not only have you received a verbal thrashing from one of the most sarcastic and ingenious users of said concept that I have had the fortune of conversing with on a friendly level, but also you still have the audacity and the perseverance to continuously post demands in such a way that would make a pacifists palms itch as if said pacifist has been rubbing his hands with poison ivy and kerosene since the morning, assuming that now is night.
Where did you learn to write like that?
Mustafa Ismail Mustafa wrote: Cease and desist your demands [...]
Looks like the court trips are starting to influence your language.
Cheers,
विक्रम
And sleep will come, it comes to us all
And some will fade and some will fall
|
|
|
|
|
Vikram A Punathambekar wrote: Where did you learn to write like that?
I used to talk like that all the time until I became senior enough at work to actually meet clients... then I had to stop However, I will now declare it before all that I thank Pete O'Hanlon for inspiring me continuously to regain and practice this ability. Thank you Pete :wipes a tear from the corner of his eye:
Vikram A Punathambekar wrote: Looks like the court trips are starting to influence your language
Better believe it! Even though those dimwits are starting to really piss me off! The court hearings are beginning to influence my schedules
"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." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
My work here is done. The student has become the master.
A veritable panoply of humour, scorn, mischief and ingenuity.
|
|
|
|