|
Sorry, I have no project to point you to, but the documentation can be found here[^]. Adjust the properties Minimum and Maximum to determine the interval of the scroll bar. Respond to the ValueChanged event and read the Value property to reflect changes when the user scrolls (or optionally use data binding).
|
|
|
|
|
Dear Elizma,
U can do one thing.
Please take the contents in one DIV Tag and via that u can apply the VertivalScroll Bar.
Thanks and Regards,
Nitin Khubani
|
|
|
|
|
hi
i run a query in sql server 2005 , that show me follow error message ! how can solve this problem?
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Arabic_CI_AS" in the equal to operation.
tanks
|
|
|
|
|
It means you're trying to compare two strings that are in different formats. COLLATE[^] is, from memory, the thing you need to play with. Although I don't see how you can compate Latin and Arabic fonts.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
hello "Christian Graus"
i can solve my problem with your reference ...
tanks so much
|
|
|
|
|
Please read the forum guidelines and title your messages appropriately.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Hi all,
I did a chat application. But I stuck in the finishing point.
I used a windows service as server. This windows service will create and maintain a remoteable object. The clients are connected to this remoteable object using tcp channel. In addition, I implemented an application for the interface of server. This windows application will run on the server machine. Users are added throw this windows application. In addition, the available users and their status will display in this application.
The windows service with startup type automatic will always run on the machine. Whenever the windows application for the server interface started, It will call a function on the remotable object to attach this application to windows service.
remotableObject.AttachServer(this);
'this' will stored in the 'remotableObject'. So whenever the clients become online or offline, they will send a notification to windows service. If the server interface application is running the windows service will try to list the status of users in a list box. To do this, windows service will pass a serialized class of 'users' to server interface application. Everything is ok till here. I could deserialize the 'users' object. Now only one job is remaining is that list the users in a 'listbox' control. But when i call the functions of listbox, the program stop responding. No errors are displayed. Can you guess what is the problem?
Thanks and Regards,
Mic
|
|
|
|
|
Hi Mic,
As per my concern, You are going to update the UI (Form item). I would to say, If you want to update the UI then please do it with the help of delegates. I thought yor are update the UI in any event so it going to stuck.
Please go through how to update the UI via deligates.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Oh yes the scenario I explained above, it happened when the server interface tried to add a user to remoteable object. Its work in an event of server interface windows application. I tried another example, which is not call from any event. It is working. Therefore, as per you said I will use delegates. But how can you understand that it is the problem of events? Actually I didn't understand what is the real problem that's why I ask. Thanks for your precious advice.
Thanks and Regards,
Mic
|
|
|
|
|
Because i have resoved the same problem. I have experience in Instant Messaging architech.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Try Application.Doevents
Regards
Elayaraja.S
|
|
|
|
|
Hi there,
if i got an 3 arraylist to be serialize, each with different type(Point[] or int) how do i deserialize them back to the 3 different arraylist accordingly. Should i save the number of items in each of the arraylist? Check the type? What other methods would u suggest?
Thanks in advance.
|
|
|
|
|
If you serialize the lists into separate streams, just remember which list resides in which stream and you'll be fine. If you serialize the lists into one common stream, though, make sure you deserialize them in the exact same order they were serialized.
|
|
|
|
|
i need to save all the arraylists into a common arraylist and then serialize it because i want to save it into a file. Is this correct?
Below is part of the code i wrote:
In Save()
<br />
ArrayList arr = new ArrayList();<br />
<br />
arr.Add(Arraylist1);
for(int i=0;i<br />
{<br />
GraphicsPathData gpd = new GraphicsPathData((GraphicsPath)PathList[i]);<br />
Stream gpdStream = GraphicsPathData.Serialize(gpd);<br />
arr.Add(gpdStream);<br />
}<br />
<br />
arr.Add(Arraylist1);
<br />
formatter.Serialize(myStream, arr);<br />
myStream.Close();<br />
<br />
in OpenFile()
<br />
ArrayList arr =new ArrayList();<br />
if (openFileDialog.ShowDialog() == DialogResult.OK)<br />
{<br />
filename = openFileDialog.FileName;<br />
Stream myStream = openFileDialog.OpenFile();<br />
if (myStream != null)<br />
{<br />
IFormatter formatter = new BinaryFormatter();<br />
arr = (ArrayList) formatter.Deserialize(myStream);<br />
myStream.Close();<br />
<br />
.................
However the problem here, how can i separate the arr into the correct arraylist?
Thanks for your help
|
|
|
|
|
You don't need a common arraylist to serialize several arraylists into one file. Just make several calls to formatter.Serialize passing the same stream:
formatter.Serialize(myStream, arr1)
formatter.Serialize(myStream, arr2)
formatter.Serialize(myStream, arr3)
To restore the arraylists, make the calls to formatter.Deserialize in the exact same order:
arr1 = (ArrayList) formatter.Deserialize(myStream);
arr2 = (ArrayList) formatter.Deserialize(myStream);
arr3 = (ArrayList) formatter.Deserialize(myStream);
|
|
|
|
|
hi there,
Thanks for the reply. Your solution works perfectly for binary serialization. However, i was wondering, does this concept works the same if i want to use XML serialization?
Thanks.
|
|
|
|
|
Hi i am developing a windows application in C# (in 2003).
My form consists of buttons. I set Flat style to system in properties window.
But no change in the appearance of the button. It is looking normal.
How can i get this(System Style) affect.
Thanks in Advance
Ramu Medida
|
|
|
|
|
Change your Flat Style as "System" it will take your Operating System style/skins (Ex. XP).
|
|
|
|
|
Im extreamly sorry ., i might misled you please walk through the following
[^]
Thanks
|
|
|
|
|
Thank you Very much.
Thanks and Regards
Ramu
|
|
|
|
|
Hi
I did code to access my control(text box etc) inside the thread but when i upgrade it into VS 2005 it is saying "cross thread operation not valid" how can fix it ?
- Thanks
|
|
|
|
|
Dear Siva,
Is that is happening in debugh mode or it happens in release build also?
I also face the same problem while debugging the application but it works fine in release build.
Regards,
Sunil Tonger
|
|
|
|
|
Control.CheckForIllegalCrossThreadCalls = false;
Put this line in the constructor of your form.
|
|
|
|
|
Yes, when you are doing something referred to as "Illigal" then obvious choice is to disable the check so you can get on with your high quality code.
Look at Invoke and BeginInvoke. Yes, they are annoying, but not half as annoying as the deadlocks you get when not using them.
|
|
|
|
|
Control.CheckForIllegalCrossThreadCalls = false; will this cause any issues?
I have code in 2003 which access controls inside thread and so far it is going good. I placed this command in 2005 and tried it already and it looks OK, i want to make sure by making this "CheckForIllegalCrossThreadCalls" as false will not cause any serious issues. Do you think?
http://www.codeproject.com/csharp/threadsafeforms.asp[^] this should be the right choice but lot of rework
|
|
|
|