|
Please read Forum Posting Guidelines at http://www.codeproject.com/scrapbook/forumguidelines.asp[^].
Discussion forums are oriented towards helping out as troubleshooting aides and not pamper and support code solicitations.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I am new in .net. I am making an application using datagrid which is showing details about employees. So I want to make my data grid searchable. So i am using a textbox where user can enter some data into it and the matching result with all the columns will be displayed in the datagrid. If anyone knows how to do it or anyone hav a code for it. Please reply me
Rock Star
|
|
|
|
|
Typically you would not search your grid, you'd search your data source and fill the grid with filtered data
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Lately, I've been playing around with the idea of giving LinFu's
Simple.IOC container the ability to create different generic type
instances depending on the type parameters given to the generic type
at runtime, but I'm not quite sure how useful would it be.
Anyway, as an example, suppose that I have the following generic
interface:
{{
public interface IOperation<tresult, tparam1,="" tparam2="">
{
TResult DoSomething(TParam1 first, TParam2 second);
}
}}
...and for this example, I want the IOC container to use the following
class to implement IOperation<tresult> if the TResult type is a
numeric type:
{{
// Note : This is a hypothetical code sample; it won't compile if you
remove the comments!
public class SomeMathOperation // : IOperation<tresultt, param1,
tparam2=""> where TResult : IsNumeric()
{
// TResult DoSomething(TParam1 first, TParam2 second);
}
}
}}
Now, the biggest challenge here is that in addition to adding a
hypothetical generic type constraint, there is currently no language
available in .NET (not even IL) with any feature that allows you to
match an interface like IOperation<tresult, tparam1,="" tparam2=""> to a
single class implementation like SomeMathOperation without having to
specify all of the type parameters to instantiate the generic type.
Furthermore, it would be useful if (for example) I could specify an
alternative type to use in the event that the TResult type was a non-
numeric type:
{{
// Note: I don't want the compiler to evaluate TParam1 or TParam2 til
runtime; I want the type specialized
// to handle only *specific* TResult types
public class SomeStringOperation // : IOperation<tresult, tparam1,
tparam2=""> where TResult : IsString()
{
}
}}
For those of you who are familiar with Visual C++ and partial template
specialization, this concept should be immediately familiar.
Essentially, what I want to do here is generate an entire hierarchy of
classes at runtime depending on the type parameters passed to the
generic type definition. So my question is this--how useful would this
feature be if it were implemented with LinFu?
|
|
|
|
|
I can do a select within a dataset to search for a string. This works great.
When I try to do the select to search for a number I get a 'does not evaluate to a Boolean term'.
For example- matchingRows() = ds.Tables("Generations").Select("id = 3")
I get a simular error when I try to create a dataview that keys off of a number.
How do you search a dataset for a numeric value?
Thanks in advance!
|
|
|
|
|
kermit88 wrote: 'does not evaluate to a Boolean term'
That tells you something
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi
I am currently using the ilasm.exe tool to compile my CIL code. Right now I am using the Process.Start() method to run the tool from code. I'd like to know if I have the option of calling a particular method through a dll reference that also returns messages back to my code. Right now I can't tell from the code if my ilasm.exe invocation succeeded or not.
Thanks in advance
Zawar
|
|
|
|
|
How about instantiating Process class, then using its Start(), HasExited or WaitForExit()
and ExitCode members?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Have you had a look at the System.Reflection.Emit namespace, and the MSDN articles on dynamic assemblies. Using this you should be able to make a dynamic function, and then call it.
|
|
|
|
|
Hello everyone, has anyone managede to get two-way event remoting to work over the internet ?? I can't seem to get it working, not even over VPN, any clues??
|
|
|
|
|
|
Ok, I read those and tried out to redo some of it on my own setup........
I'm trying to make a sort of push service, but it just don't work... I think I've come to the conclution that the problem remains with 2k3 server, then I run the 'server' in a 2k3 env and the 'client' on XP the client never gets any response from events fired from the 'server' but in reversed mode running the 'client' on the 2k3 server and the 'server' on my XP everything works like a charme.
|
|
|
|
|
It sounds like you may have the firewall up on Windows 2003 Server. Did you check for that?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
yep, there is no firewall/ics, we use Cisco PIXs for such things, if something it has to be something that is dug into the system somewhere where you wouldn't normally look or have access to, the thing is that the same problem comes up when I'm running over ther VPN and use the LAN address for the server
|
|
|
|
|
booink wrote: yep, there is no firewall/ics, we use Cisco PIXs for such things, if something it has to be something that is dug into the system somewhere where you wouldn't normally look or have access to, the thing is that the same problem comes up when I'm running over ther VPN and use the LAN address for the server
And are you certain that your harware firewall is NOT blocking the connection?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
it shouldn't when i'm doing it over the VPN, btw. if I just setup a TcpClient vs. TcpListener and do a simple ping-pong it works fine
|
|
|
|
|
Its hard to pin point the cause of your problem without seeing the actual code. If you want you can email me the client and server software and I will take a look at it.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Hi all ,
How can I use farsi numbers in TextBox Left-To-Right Mode?
thanks
|
|
|
|
|
|
hi guys i am trying to make a software which can takes in data from the bar code scanner.
i have no experiance is this watsoever.
so i am here to seek advice weather there is a global standard class or anything which is for bar code scanner?
|
|
|
|
|
No, not even remotely. Any piece of custom hardware will come with an SDK. Most barcode scanners can be set to pass text through to the PC, so if you focus on a textbox and scan, you get the code passed into the textbox.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
What documentation generators do you use? I've been asked to research this so I thought I'd see what is popular. We need to document applications in both VS 2003 and 2005, both VB and C#. We do not currently have XML comments in the source code. In particular, my team lead is interested in documenting database actions, so whatever we choose, this would have to be a feature.
I've briefly looked at Doc-o-matic, Doxygen, Sandcastle, and NDoc. But, I'm just not familiar enough with what is available to even begin to compare these. I'm not familiar enough with .Net for that matter (I'm pretty much a newbie)! Is there anything else available? I think purchasing an application is acceptable, as long as it isn't too expensive. Which one has the most "bang-for-the-buck"? Which one is easiest to set up? Which ones can you recommend, and which ones should we stay away from?
Thanks!
PS. I asked this in the Visual Studio forum, but I have not gotten any responses, so I'll try again here.
Nancy K
|
|
|
|
|
Nancy K wrote: NDoc
NDoc doesn't support .NET 2.0 and last time I looked the project looked to be on hold indefinitely.
We use SandCastle - There are GUIs you can download for it also.
Our plans are to add it to our build server so that we constantly have up-to-date documentation.
Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland
My website
|
|
|
|
|
Yup we generate all our API docs using Sandcastle, take a look - http://dunnchurchill.com/support/documentation/diamondbinding/Default.aspx[^]
Quite happy how they turn out with very little effort. (Although there seems to be a few bugs in Sandcastle that kill your help-project file. Make sure you keep it in version control!)
-- modified at 20:01 Wednesday 21st November, 2007
And just checking that I find that a recent security update has broken opening CHM files from an untrusted internet zone. FFS! Looks like you have to save CHM files to your hard disk, go into properties and hit unblock before they work properly.
This isnt a Sandcastle issue though - it seems to be Microsoft pulling some kneejerk security and breaking things. KB902225 has more details...
|
|
|
|