|
How can we edit a data grid in win application (VB/C#) like we do it easily
in asp.net by property builder wizard ?
|
|
|
|
|
Can somebody please give me the example of operator overloading in C#
Thank You
Pankaj Garg
-- modified at 3:59 Sunday 23rd April, 2006
|
|
|
|
|
|
What is the meaning of unmanaged code in VB.net and C#
and what is meaning of line that we can write the unmanaged code in c# and not in vb.net
Thank You
Pankaj Garg
-- modified at 3:59 Sunday 23rd April, 2006
|
|
|
|
|
Managed code is everything that runs under the CLR. Unmanaged is everything that does not.
C# provdies this feature, VB.NET does not. It is as simple as that.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
If you want to use pointers in c# u have to write unsafe codes which result in unmanaged.
---
Eat Bytes Everyday
Zakaria Bin Abdur Rouf
zakaria7@gmail.com
|
|
|
|
|
Hi,
I am trying to implement a CSR(Coalition Service Registry). This is basically a registry where any service provider registers his/her service. Any service requesting user (initiator) contacts the CSR and the CSR forwards the request to the appropriate service provider and gets the result from it and forwards the result back to the initiator. I am implementing this in Visual Studio .NET C# language.
Generally in .NET to consume a web service we need to add a web reference to the client application. This leads us to use a static URL. But my implementation cannot afford doing this. So how would I approach it? To be more specific I need to implement the same functionality what "Add a Web reference" would do in .NET framework. Another issue I have is the invoking of the web service by the CSR should be transparent to the intitiator. Can anyone suggest a possible solution to this?Suggestions with a little detail of any libraries or classes existing in .NET which I could make use of is highly appreciated.
Thanks in advance,
Shobha.
|
|
|
|
|
You can change the URL of a web service dynamically.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for your reply.
I'm beginner in these web services so my question may be very silly too sometime. Yeah I came across that option of changing the URL dynamically. But in that case if I'm right the service directory and service file should it be same? A sample code would help me a lot. And after this how will my CSR invoke the service and get the result and give it back to the requested client? I'm kinda confused in this part too.
|
|
|
|
|
DotNet novice wrote: Yeah I came across that option of changing the URL dynamically. But in that case if I'm right the service directory and service file should it be same? A sample code would help me a lot.
I did this a back while, but unfortunately the code was for an application built for another company, so I can't share any of that code.
The principle however, is simply to create the object for the proxy and then change the property for the URL. I don't remember the details, but I was able to find it quite easily, and you even know what to look for.
DotNet novice wrote: And after this how will my CSR invoke the service and get the result and give it back to the requested client?
Once you changed the URL you use the proxy as normal. To get the result back to the client you just return it as usual (whether it's a web service or a web request).
---
b { font-weight: normal; }
|
|
|
|
|
I have a "test.cmh" help file that I compiled. Is there a way to restrict the use of the help file to be used only via an C# applications?. in other words, the CHM file will not run when user click on it.
|
|
|
|
|
Simply: No I don't think so unless you want to embed the help file as a resource and then extract it when you need but I'm not sure that this will work.
Another simple protection method would be to give it a different name without the .chm extension, for general users they wouldn't change the extension, but then again they probably wouldn't look for it.
Ed
|
|
|
|
|
I am facing problem to populate data grid control by oleDbDataReader object.
How to do it.
Shoaib Nawaz
|
|
|
|
|
Hey Guys, the windows application I use is in Persian, so when I enter to my form I gotta press SHIFT+ALT to change the language to persian from english, I'm looking for a code that does this for me !!! for example whe i load my form it authomatically chnages the language to persian and vise versa.
Thanx
Mr.K
|
|
|
|
|
You can set Thread.CurrentCulture and Thread.CurrentUICulture.
|
|
|
|
|
I was working on a project for a client who runs a scheduled backup daily. He needs to stop the SQL service, which I have done successfully, but I need to find a way to access a tape drive to see that the tape is actually inserted. I do not know of any way to do this with ntbackup.
I have tried to find this on the web but came up fruitless.
This is a windows form in C#, using .NET Framework 2.0.
The tape drive does not come up in the DriveInfo.GetDrives().
Does anybody know how I can verify that the tape is inserted in C#
Thank you in advance!
Jeremy
|
|
|
|
|
Hi everyone,
I have just began to create applications for Pocket PC, and I'm trying to add clipboard functionality. Unfortunatly the normal code doesn't work for some reason, for example:
Clipboard.SetDataObject(textBox.Text,true);
This works in a normal Win32 application, but when I try to use it in a Pocket PC application it produces this error:
The type or namespace name 'Clipboard' could not be found (are you missing a using directive or an assembly reference?)
Could someone point me in the right direction on how to solve this?
Thanks for any help,
From Daniel
|
|
|
|
|
Hello,
I have a problem with the progressbar in the following code:
FtpClient ftp = new FtpClient("ftpadres", "user", "password",ttl,21);
try
{
ftp.Login();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
ftp.ChangeDir("vrbo");
string fullPath = txtLoggedInSource.Text;
string[] dir = fullPath.Split(new Char[] { '\\' });
int length = dir.Length;
string directory = dir[length - 1];
ftp.MakeDir(bedrijfid + "_" + directory + "_" + timestamp);
ftp.ChangeDir(bedrijfid + "_" + directory + "_" + timestamp);
DirectoryInfo dir2 = new DirectoryInfo(txtLoggedInSource.Text);
FileInfo[] files = dir2.GetFiles();
int filecount = files.Length;
pbStatus.TabIndex = 0;
pbStatus.Maximum = filecount;
pbStatus.Minimum = 1;
pbStatus.Step = 1;
/* THIS WORKS PERFECT !!!
for (int i = pbStatus.Minimum; i <= pbStatus.Maximum; i++)
{
pbStatus.PerformStep();
}
* */
// HERE THE PROGRESSBAR DOESNT MOVE
foreach (FileInfo f in files)
{
ftp.Upload(txtLoggedInSource.Text + "\\" + f.Name);
pbStatus.PerformStep();
}
label1.Text = "All files are upload successfully";
ftp.Close();
Can someone please help me why it doesn't work with upload
Thx
wistiti 5
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
---
b { font-weight: normal; }
|
|
|
|
|
You're not giving the form a chance to update itself. See if this works:
foreach (FileInfo f in files) {
ftp.Upload (txtLoggedInSource.Text + "\\" + f.Name);
pbStatus.PerformStep();
Application.DoEvents();
}
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
-- modified at 0:15 Sunday 23rd April, 2006
|
|
|
|
|
Ravi Bhavnani wrote: this.DoEvents();
You mean
Application.DoEvents(); no?
Cheers,
Will H
|
|
|
|
|
|
Me and my partner are doing our final year project in Addis Ababa University.
The problem here is eventhough we are using one of the latest voice modems we can not have a live communication up on connecting calls. We have a demo C# code which can record calls (that worked).I donot think it is the code's problem but I wish if you guys out there help me use my voice modem for live connection.
|
|
|
|
|
Have you seen the TAPI articles here on code project.
|
|
|
|
|
How can I export a Ms Word file to text?
I need it badly! pleasssssse help me soon as possible.
|
|
|
|