|
|
ace300 wrote: hello i need help i am working on database and i have connected it to the c#
i need small problem i have created a serach button but i dont want to show the
result on data grid view if u can help plz give me the answer and the code
I'm sorry, I don't have a clue what you're on about. You have a search button and you don't want to show the results on a data grid view. Well, don't write any code to bind the data to the data grid. Job done.
|
|
|
|
|
Problem is datagrid view he can not display the images and I need another tool to help me in any work when he hit the search button shows me the name of the worker that searching for him and his image and the national number
or if u have a sloution for this problem in data grid view tell me
and ty again
|
|
|
|
|
We still don't have a frickin' clue what you're talking about. Perhaps you need to find someone with better skills in Communication and English to pass on your problem?
|
|
|
|
|
I'm sorry. I've tried, but I simply don't understand what you're asking. Could you possibly get somebody else to translate this for you? I'm not trying to be funny here because your grasp of English is undoubtedly better than my grasp of your native tongue, but you still need some clarification.
|
|
|
|
|
Aren't you going to compensate him for all the univotes he got on that question? .
|
|
|
|
|
I'm afraid even a Jedi wouldn't have the force to do that.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
this is all you need to not show the data:
public void button1_Click(object sender, EventArgs e) {
MessageBox.Show("Nothing to see here, moving on");
}
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
public void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("These aren't the records you're looking for.");
MessageBox.Show("You can go about your business.");
MessageBox.Show("Move along... Move along.");
}
|
|
|
|
|
can't believe I'm about to use these words but... Google. Search feature on CP.. there are a number of options you can take besides "gimme code" for a unclear problem. a little advice from a newbie that I've learned
#1 break your problem down into bits. not one huge line of garbled question about a project we have no clue what you are doing.. Break it down into individual parts.
#2 figure out how to do each part separately.
#3 if at that point you still do not know how to make a specific part work.. Show some of your attempts,, Explain what you have tried, what errors you get,,, and for crying out loud state your problem CLEARLY and CONCISELY. Then the real programmers haunting these boards will be more than happy to help you a little bit. What they are NOT happy doing is doing the entire freakin project for you. Especially when nobody but you is even sure what the project is.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Nobody understands me - PLEASE, do my homework for me ...
|
|
|
|
|
It would be better if you tell us what is kind of a database it is and if you don't want to show it on data grid view, then where do you want it to be displayed?
|
|
|
|
|
first, the question is not well formed (ok, my english too)
second, what i read and understand: he dont like to use the datagridview "because it cannot display images".
i understand from this, that he found some piece of code in the internet, used it, but the sample uses a datagridview and databinding. and now he would like to change the sample program to search for a value, and fetch the values from the db to controls on the form, and he has absolutly no clue where to start (if this is homework, the question arise: why does he not know where to start? not listening? no teaching?).
beside the fact, that a datagridview definitly can be abused and [B][U]can[/U][/B] display ownerdrawn cells (=everthing is possible, images too), he can react on the click event of the datagrid and display the image in an additional control on his form.
all this assuming w´re talking about a windows form app. wpf would open other possibilities.
I cannot remember: What did I before google?
|
|
|
|
|
I second your thoughts Thomas. He does not even seem to be interested in replying our feeds.
|
|
|
|
|
Hi,
For your need follow these steps.
1.create a connection with your database
2.create an sql command to fetch the values from your database
3.next, fill the values in a datatable
4.and then bind those values to your grid
|
|
|
|
|
Google is your friend
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Hi..
I am developing an application in which I am sending a data packet using UDP 9050 port.When I run it disabling wifi, it works fine.But when I run it on a laptop with enabling wifi ON, It doesn't work.
Please guide me.
|
|
|
|
|
It's possible that you are hitting a port conflict with another application, or that the firewall is not allowing the application to pass through this port. To see if you're getting a conflict, try running netstat -a from the command prompt.
|
|
|
|
|
you may be binding to the wrong adapter... to see if this is the problem, change the order of the adapters:
To view order of adapters: on cmd prompt type: ipconfig (the result will be the default bind order)
To change order of adapters: last adapter enabled will become last in the list (so change the order by disabling/enabling in the network connections menu accordingly)
if you determine that this is the problem, then you have to manage your adapter binding a bit smarter in the code.
|
|
|
|
|
Hi,
I'm trying to create a memory mapped file file using
var mmf = MemoryMappedFile.CreateFromFile(@"C:\Temp\XMLFile.xml", FileMode.Open, "memMapFile");
in the OnStart() of the service class. The mmf gets created, but trying to access it from an application using
var mmf = MemoryMappedFile.OpenExisting("memMapFile");
leads to a FileNotFoundException.
When the file is created in an application instead in a service, this works.
What am I missing?
Thanks for your help!
|
|
|
|
|
You need to create an inter-process memory map file with MemoryMappedFile.CreateNew method. In this way you'll be able to access it from different processes.
|
|
|
|
|
Not if he's only accessing it from the Service, not from other processes.
|
|
|
|
|
Thanks for your reply Ciumac!
I went trough the description of the MemoryMappedFile class, but couldn't figure why MemoryMappedFile.CreateFromFile should deliver a result different than MemoryMappedFile.CreateNew. Nevertheless I tried it out - no success!
|
|
|
|
|
Is it a local variable in the method? Or a member of the class?
|
|
|
|
|
Thanks PIEBALDconsult!
It was a local variable.
Best regards!
|
|
|
|