|
hi,
May i know how to focus it.
Help me
Thank U
With Regards
Prasad ;);P
|
|
|
|
|
I don't even know what control you are using, so I can't help you more than I have. But you need to help yourself at this point, because this is a usual chore of programming. Look up your control in documentation, find its "members," and browse them. You should find a property or a method which will focus your line. If not, what you want to do is not supported.
(Surely it is.)
|
|
|
|
|
Hi guys ! I'm writing a win app that has two languages and i want to switch between languages. normally i press Alt + Shift to change the language, is there any way that i can do this automatically for example in an OnEnter event of a Text box !!! i tried somethin like sendkeys but didn't work for me !
Thanx
Mr.K
|
|
|
|
|
If you have a method that already does what you want (as you write), then simply call the method from your OnEnter handler.
|
|
|
|
|
Does anybody have a pattern handy for mapping design time help requests to name anchors in *real* online XHTML help? In other words, I assume I'd want to use an existing or custom attribute on properties, and somehow detect when help was requested for each property, then invoking a url to online help such as ourdomain/help/helpfile.html#PropertyName.
|
|
|
|
|
pls help to add exe in system try using C# ( It will also support for Vista)
s
|
|
|
|
|
|
hi,
i have created a editor in richtextBox
can any one help me in creating a copy,and paste method.
Thank You
Prasad
|
|
|
|
|
I thought the control gave you those for free ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all,
in my project i need to convert raw image to bmp or jpeg and i have some images with the extention .gry i dont know this is raw or any other special format but i am thinking this is a raw format so my problem is convert .gry image to bmp or jpeg in c#
so plz any one knows the way how to do it is plz tell me
thanks in advance
Regards,
santhosh
|
|
|
|
|
If you've got raw pixel data, you have a bmp, it just needs a header, assuming that it's word aligned, or that it has the right padding in it.
Where is the data coming from ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi Christian Graus,
we have live scanner that will be creating these images into one folder so now my responsibility is reading that .gry images and displaying in the form in c# .
Regards,
santhosh
|
|
|
|
|
You can create a bitmap object from a stream, you could try and see if the class can make sense of the data. If not, you could read my image processing articles, build a bitmap of the right size, and pass the data across one scanline at a time.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Isn't a raw image different then a bmp?
If not why would Xp have a powertoy Raw Image Support[^]
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
Yes, it is, but a bitmap IS 'raw' pixel data, with a bitmap header.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Im writing a test prep MDI program that calls random #s to select a question, im having a problem though i need it to only call those numbers once. A solution to this or something that will accomplish the same goal would be appreciated.
|
|
|
|
|
Use Hashtable to keep the record of these numbers and if they are repeated ignore them.
Regards
Shajeel
|
|
|
|
|
Create a list that contains all the numbers you may want, in sequence. When you get a random number, make a number that is a valid index into that list. When a number is selected, grab it, and remove it from the list.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all
i have to do something on remotesystem ....
now my application is ready
the remote sys. is my local server..
and client is my webserver...
i did all my things in console and got its exe
these exe works well
but how do i use it on webserver....
or do i need to change into asp.net applications
if i need to change how should i proccedd
please help me thanks byebye
|
|
|
|
|
Hello everyone,
I have created a Treeview which displays the DB server and Databases in the server.
I would like to add an extra option to my application. I would like the list of table to be open in another TextBox once a particular database is selected from the TreeView. If I am not mistaken I should use AfterSelect for this purpose. But I am not able to get the ChildNode name!
Could someone be kind enough to let me know how I can get this done or point me to some online code or tutorial?
As always, thank you very much for your help and have a great day.
Khoramdin
-- modified at 23:22 Wednesday 21st February, 2007
|
|
|
|
|
e.Node where e is the second argument of the event.
Regards
Shajeel
|
|
|
|
|
I have an object hierarchy where all of my objects in the application domain inherit from a base class. I also have a persistance layer which works using generics.
Looking at the code below, you realize that my object hierarchy is non-generic. But DBStore methods are genericised. How do I pass the type/class of current type?
e.g.
class DBStore
{
public T CreateObject<T>()
{
...
}
public void DeleteObject<T> (int id)
{
.. logic to delete from DB using metadata about T (containing table name) and primary key field matching 'id' ...
.. eg.. delete from typeof(T).Name where ID = id
}
}
abstract class DomainObject
{
private int _id;
private DBStore _dbStore;
public void Delete ()
{
_dbStore.DeleteObject<<big>WHAT SHOULD GO HERE</big>>(_id)
}
}
class Boat : DomainObject {...}
class Car : DomainObject {...}
I would like to be able to perform following:
Car car = new Car();
car.Delete();
or
Boat boat = new Boat();
boat.Delete();
Only things that come to my mind are:
1) Move "Delete" method from the base class to each of the deriving class: (code redundancy .. )
2) Ungenerecise the "DBStore" method (inconsistancy in DBStore -- all methods are generic, except for Delete object)
Thanks,
- Malhar
|
|
|
|
|
GetType() perhaps ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I wished! C# compiler expects a class, and not a variable of type 'type'.
<pre>Type t = GetType();
_dbStore.DeleteObject <t> (_id);</pre>
--> The type or namespace name 't' could not be found (are you missing a using directive or an assembly reference?)
-- modified at 21:22 Wednesday 21st February, 2007
|
|
|
|
|
OK, that really sucks.
C# generics are kind of gay, they are not much use for anything too complex. They are designed so people can't hurt themselves using them, I suspect.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|