|
Well I wish i could help you but i work with web app not win , best luck there
|
|
|
|
|
Check your email Jim.
Kevin
It got bounced back. Send me an email and I'll reply with the file.
Everything makes sense in someone's mind
|
|
|
|
|
I am looking for a way to change the mouse scheme in windows and keep in changed even after my program exits
|
|
|
|
|
you mean Mouse Cursor ?
if so, try to change it from windows registry
Here Please[^]
I know nothing , I know nothing ...
|
|
|
|
|
Hi ,
I have an application which takes time to load data into a grid so inorder to see the status of data loading I want a small window to pop up showing how much is loaded in the form of progress bar . the application is in C#.... Can someone help me with information on how to do this. I know how to get it at bottom of page dragging progress tool bar.. but i want a small window wid % amount loaded in center !!!
Actually I have multiple forms so I want a generic progress bar form showing loading progress while in the background data is getting loaded. the form in the front shows how much % of data is loaded . sorry for mistyping
if you can temme how I can make this working while the form in the background is getting loaded with some data . I want this form to show the stuff it is showing in front while data gets loaded in back .. !!
|
|
|
|
|
|
|
hi, I am doing similar thing.. but I have some forms tht loads in grid in background. As its huge data, until it gets loaded I want this progress bar form show the status... how can I do that and call this? Please Help me out
|
|
|
|
|
You should not hijack other peoples threads. Post a question of your own. In any event there are two article linked to in this thread, if they do not help you, then your problem is not at all similar to the OPs.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello!
I have created a pretty cool application that works in the office environment, it allows for people to pass text, files and voice chat between each other. Its much like the Yahoo chat or those types of apps but allows you to select several people and simultaneously send encoded data. You can see the app here:
http://www.umbrasystems.com/gcomm.php
The way it works is; there is a server who sits listening on a port, the chat clients connect to that server. As chat clients connect, the server gives a list of the other connected chat clients, and informs the existing chat clients of the newcomer, so all clients now have each others names and IP addresses. When the user(chat client) wants to send a message to one or more users, he selects them from the interface and sends the data. The data is sent P2P because each chat client has its own listening server which the sender connects to to send the data, be it text or file or whatever.
This application system works great in a LAN environment but if there is a chat client outside, lets say the boss is at home but still wants to talk to the employees, he/she can't make a P2P connection to any of the others inside the LAN. This is assuming the boss can at least connect to the server(which may sit on the outside). The way I have it now is if the P2P can not be established then all data is routed through the host.
My question is this:
Assuming all chat clients have a connection to the server, how do I make a P2P connection to other chat clients on other LANs? How do other applications like Skype or Yahoo make that connection??? (and without having to port forward). I'm sure that Skype and Yahoo messenger connect to a common server initially as well.
In my server I can see that there are 2 connections, bill and Tom, who's addresses are the same 66.75.225.55:3045 and 66.75.225.55:4033, but the server has communication with them on different ports established by their LAN's router's NAT table. Is it feasible for the chat client 'Pat', who is on a different LAN, to use the address and port established by the host to directly send data?
I would appreciate any insight on how this is done!!
|
|
|
|
|
I have the same question.And there are no good answers to this question by Intenet searching.I hope who have solved this give the answer.
|
|
|
|
|
I have not really found a solution to the question but if you do a search on Rendezvous servers you can get an idea on how some of the professional applications solve this problem. Currently if the applications can't make a point-to-point connection then I just route all data through the host.
|
|
|
|
|
Has anyone used the Office View Component (http://www.ocxt.com) and had a problem with it not setting the Different First Page Header setting even though it is set in the underlying document?
|
|
|
|
|
In C# I need to serialize a List of Constraint objects. Each Constraint has a Group, Field, Condition, and some values depending on the CGF combination. I have been trying to get these serialized so that I can store them, preferably in an ASP.NET cookie. I cannot use Session to maintain the list because I was told we have 2 web servers and Session won't work, so I need to serialize the CList and push it off in a cookie...I'm new to ASP.NET, but I thought skilled in C# and started working on a test app to serialize a List of generic objects based on a sample app here but it is not working properly.
In this example I make a List and add to it a few employees, then try to serialize it and store off in a file. Reset my List and such, then open the file a read the serialized data back to the List.
When using the original project, one employee at a time worked. The original is here: http://www.codeproject.com/KB/cs/objserial.aspx
using System;<br />
using System.IO;<br />
using System.Runtime.Serialization;<br />
using System.Runtime.Serialization.Formatters.Binary;<br />
using System.Collections.Generic;<br />
<br />
namespace MyObjSerial<br />
{<br />
[Serializable()]
public class Employee : ISerializable<br />
{<br />
public int EmpId;<br />
public string EmpName;<br />
<br />
public Employee()<br />
{<br />
EmpId = 0;<br />
EmpName = null;<br />
}<br />
<br />
public Employee(SerializationInfo info, StreamingContext ctxt)<br />
{<br />
EmpId = (int)info.GetValue("EmployeeId", typeof(int));<br />
EmpName = (String)info.GetValue("EmployeeName", typeof(string));<br />
}<br />
<br />
public void GetObjectData(SerializationInfo info, StreamingContext ctxt)<br />
{<br />
info.AddValue("EmployeeId", EmpId);<br />
info.AddValue("EmployeeName", EmpName);<br />
}<br />
}<br />
<br />
public class ObjSerial<br />
{<br />
public static void Main(String[] args)<br />
{<br />
List<Employee> mp = new List<Employee>();<br />
Employee e = new Employee();<br />
e.EmpId = 10;<br />
e.EmpName = "Omkumar";<br />
mp.Add(e);<br />
e.EmpId = 11;<br />
e.EmpName = "this";<br />
mp.Add(e);<br />
e.EmpId = 12;<br />
e.EmpName = "is a";<br />
mp.Add(e);<br />
e.EmpId = 13;<br />
e.EmpName = "test";<br />
mp.Add(e);<br />
<br />
mp.Add(e);<br />
<br />
Stream ostream = File.Open("EmployeeInfo.osl", FileMode.Create);<br />
BinaryFormatter bformatter = new BinaryFormatter();<br />
<br />
Console.WriteLine("Writing Employee Information");<br />
bformatter.Serialize(ostream, mp);<br />
ostream.Close();<br />
<br />
mp = null;<br />
bformatter = null;<br />
<br />
Stream istream = File.Open("EmployeeInfo.osl", FileMode.Open);<br />
bformatter = new BinaryFormatter();<br />
<br />
Console.WriteLine("Reading Employee Information");<br />
mp = (List<Employee>)bformatter.Deserialize(istream);<br />
istream.Close();<br />
foreach (Employee f in mp)<br />
{<br />
Console.WriteLine("Employee Id: {0}", f.EmpId.ToString());<br />
Console.WriteLine("Employee Name: {0}", f.EmpName);<br />
}<br />
<br />
}<br />
}<br />
}<br />
Thanks for any help you might give.
jrk
|
|
|
|
|
godfetish wrote: .I'm new to ASP.NET
And I know zilch about it.
I'll bet there are a lot of people over in the ASP.NET Forum that do though.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Don't expect the help with ASP.NET, asked for help with serializing a List in C#, but thanks for reading the first sentance.
|
|
|
|
|
Sorry about that. My eyes are tired, that's my excuse, and I'm sticking to it.
solution:
public static void Main(String[] args)
{
List<Employee> mp = new List<Employee>();
Employee e = new Employee();
e.EmpId = 10;
e.EmpName = "Omkumar";
mp.Add(e);
e = new Employee();
e.EmpId = 11;
e.EmpName = "this";
mp.Add(e);
e = new Employee();
e.EmpId = 12;
e.EmpName = "is a";
mp.Add(e);
e = new Employee();
e.EmpId = 13;
e.EmpName = "test";
mp.Add(e);
mp.Add(e);
You do realise you will get two 13 employees, because of the last line.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
The output of the sample project is:
Writing Employee Information<br />
Reading Employee Information<br />
Employee Id: 13<br />
Employee Name: test<br />
Employee Id: 13<br />
Employee Name: test<br />
Employee Id: 13<br />
Employee Name: test<br />
Employee Id: 13<br />
Employee Name: test<br />
Employee Id: 13<br />
Employee Name: test<br />
Press any key to continue . . .
So, yes, two EId's of 13 should be there, by design or by fault...not 5 of them when deserialized.
I see that the de/serialization is only calling the get/set in the class object one time each way. Not 5 times, once for each record! This is an interesting problem...
|
|
|
|
|
I copied your code to a new Console Application and ran it. I got the result that you have just posted. Then I made the modifications, as in my previous post, and I got:
Writing Employee Information
Reading Employee Information
Employee Id: 10
Employee Name: Omkumar
Employee Id: 11
Employee Name: this
Employee Id: 12
Employee Name: is a
Employee Id: 13
Employee Name: test
Employee Id: 13
Employee Name: test
BTW When you post code snippets, if you are currently highlighting your code and then clicking on the 'inline code' widget (immediately above the text entry box) would you please use the 'code block' widget next to it. (explanation follows)
If on the other hand, you are typing in your 'code' tags could you please use 'pre' in place of 'code'.
EXPLANATION:
The 'code' tags give the horrible red and blue code colouration, which is very hard on the eyes and is one of the reasons I didn't read all of your original post. I'm being serious here, it actually makes my eyes hurt, and I know that applies to other CP members as well.
The 'pre' tags give much more restful colouring and what's more it preserves the formatting (well mostly) of your code, making it much easier to read.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You are right! Thanks Henry.
jrk
|
|
|
|
|
Pleasure!
Sorry again, for the misunderstanding.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I'm using a cascading dropdownlist using three tables. the code below works fine if my primary keys are numeric(integer) but my business rules want the primary keys to be alphernumeric(string).
[WebMethod]
public CascadingDropDownNameValue[] GetColors(string knownCategoryValues, string category)
{
StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
int colorId;
if (!kv.ContainsKey("Model") || !Int32.TryParse(kv["Model"],out colorId))
{
return null;
}
dsModelColorsTableAdapters.ModelColorsTableAdapter adapter = new dsModelColorsTableAdapters.ModelColorsTableAdapter();
dsModelColors.ModelColorsDataTable colors = adapter.GetColorsByModelId(colorId);
List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();
foreach (DataRow dr in colors)
{
values.Add(new CascadingDropDownNameValue((string)dr["ColorName"], dr["ColorID"].ToString()));
}
return values.ToArray();
}
How do I use my string primary key using the above code?
Please help an ajax technology adict.
ML Lingwati
|
|
|
|
|
You are aware that we have both 'Web Development' and 'ASP.NET' Forums?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi all,
I am trying to print a string that has alot of HTML tags in it. When I make use of the HTML visualizer, I can see that the output is correct. But how can I print it without showing the HTML tags, and only the correct format / output.
Many thanks in advance
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Set that string to a web browser control and call Print() method on that.
|
|
|
|