|
I want to change the expand/collapse button to an arrow. Is there any simple way of doing this?
-- modified at 9:41 Wednesday 1st August, 2007
|
|
|
|
|
Hai All,
Is there any way to lock(Disable) my Mouse operations using API
Thanks and Regards,
Sharmie
|
|
|
|
|
Why do you want to do that? Doesn't sound very nice. How are you going to regain mouse operations later on?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I want to display questions on a page and onmouseover to any question, answers are shown of that question. I want that the divs expand and answer div is shown after a question.
How can i do this?
Can I develop an expandable gridview control?
If yes please let me know or give me any idea how to do that.
Thanks
|
|
|
|
|
Hi
I have had to move my work accross to a different machine as my laptop has decided to stop working!
I have pulled the project accross and i have the same setup as before with mysql 5 and connector.net 1.0.9
But i just can't get .net to connect to mysql using this setup for some annoying reason as there is no difference between the setup of the two machines
Does anyone have any suggestions my connection string takes the followin form
connectionString = "Server=localhost; Database=ftp1; User ID=;Password=;Pooling=false;Connection Timeout=10;Protocol=socket;Port=3306;"
|
|
|
|
|
Can't you rename the one project to make MSBuild happy?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: Can't you rename the one project to make MSBuild happy?
Why should i do it without any valid reason, and moreover in my solution there are many projects about 10 to 15 contain dot"." in their names.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
Hi,
I have install the Microsoft Ajax framework.
I have an application when I would like to check what the current user has tipped in a checkbox when he lost the focus.
I have search arround the autocompletion function but I didn't get my solution.
So if anyone could help me it will be great.
In advance thanks.
|
|
|
|
|
http://www.asp.net/AJAX/Control-Toolkit/Live/AutoComplete/AutoComplete.aspx
Hope u wil find ur needed articles here.....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
I have a solution that has two c# projects named test and test.test, but MSBuild doesn't compile test.test.
I am trying to compile like this
msbuild.exe "c:\test.sln" "/t:test" "/p:Configuration=Debug": This command compiles correctly test project in test.sln solution.
msbuild.exe "c:\test.sln" "/t:test.test" "/p:Configuration=Debug":But this command doesn't compile test.test project, and gives the error that unable to find project test.test in test solution.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
My query is something as under:
1) I have a .ico file
2) Now I have a "System.Windows.Forms.Cursor" constructor which accepts a Stream object
containing a file of the type ".cur".
3) Now, putting the ".ico" file in a Stream and passing it to
the "System.Windows.Forms.Cursor" constructor
gives an argument exception.
So, is there is any way we can provide a ".ico" file to the "System.Windows.Forms.Cursor" constructor in a Stream?
|
|
|
|
|
No, not really. The problem is that there is information missing from an icon file that is needed to create a cursor, namely the click hotspot. You can't tell it exactly which pixel in the picture is used to determine where the user clicked.
|
|
|
|
|
|
thanks once again dave. the detailed scenario is as under:
My requirement description is as under:
1) I have a ".ico" file in the solution explorer that I created.
2) Now I have a "System.Windows.Forms.Cursor" constructor which accepts a Stream object. This is one of the ways we can instantiate a System.Windows.Forms.Cursor object by passing it a Stream object.
3) I also have a ".ico" file in the solution explorer with me. Now, putting the ".ico" file in a Stream and passing it to "System.Windows.Forms.Cursor" constructor gives an argument exception.
My queries are:
1) Does .Net support the process of providing ".ico" file to the
"System.Windows.Forms.Cursor" constructor in a Stream?
2) Does .net provide a way to take the ".ico" file in a MemoryStream
and convert it to some format acceptable by System.Windows.Forms.Cursor" constructor?
|
|
|
|
|
Hi,
it will not work.
read up MSDN on the Cursor Constructor (Stream)
and you will see the remark: The data stream specified by stream must contain a cursor (.cur) file.
So you can't just give it any stream you would like (ICO file, some image, whatever).
Conclusion: you must interactively create your cursor, I guess either using
Visual Studio or some other tool.
|
|
|
|
|
thanks a lot Luc. there is one last question I have in this context .
If I take the ".ico" file in a MemoryStream. Then can I convert this MemoryStream to contain the cursor result? I am sorry to bother you on this again and again . But your reply will really be useful. Then finally I can decide which way to select.
|
|
|
|
|
p_s_i_20070730 wrote: If I take the ".ico" file in a MemoryStream. Then can I convert this MemoryStream to contain the cursor result?
No.
I dont know ANY way to programmatically convert from or to cursor format.
|
|
|
|
|
The point your missing is that the data expected by the Stream constructor requires that it contains certion information and is formmated exactly how it expects as a stream of bytes. The data you're giving this constructor is not formatted for a cursor file and is not in the proper format. You simply cannot use the Stream constructor how you want.
You have to build an array of bytes, or write to a MemoryStream and write the data from the .ico file, massaged and reformatted for the .cur format. You must also place the bytes describing the click hotspot into this array in the place that the .cur file format expects. THen you can pass the MemoryStream to the Stream constructor of the Cursor class.
In order to do what you want, you have to be familiar with the file formats of both .ico and .cur files, down to the byte.
|
|
|
|
|
Hi Dave,
seems we are missing a Cursor constructor that takes an image
plus some extra parameters as arguments.
We can convert an image to an icon without knowing the icon format,
it takes say 5 lines of code using a stream. We would like to be able
to do something similar for image-to-cursor.
Do you have the code available to do it at the byte level ?
|
|
|
|
|
I don't have any code for it and don't know of any. I just posted how I would approach the problem.
|
|
|
|
|
thanks dave.
Can you please let me know if there is any code where the same has been implemented? it'll be of great help. some piece of code to convert the ico stream to cur stream
|
|
|
|
|
I don't have any code for it and don't know of any. I just posted how I would approach the problem.
|
|
|
|
|
You seem to have a very similar post just a minute back.
|
|
|
|
|
Hi,
I have a query. Can we convert a Memory Stream containing a ".ico" file to the Memory Stream acceptable by the System.Windows.Forms.Cursor constructor that accepts a stream containing ".cur" file?
|
|
|
|
|
hi
yes and no
the ico and cur have the same file structure.
two things are different:
1. in the header info the type is 1 (for ico is 2)
2. windows can only handle B/W cursors, therfore the lenght of the cursor file is smaller.
hier is a good example of manipulating icons in windows.
you also finde the file structure for icons
http://www.codeproject.com/cs/library/IconLib.asp
regards
|
|
|
|