|
yes thnx alot i will ..follow basic ..as much firstly if its done if i find any problems i will reply u in one day or 2 thnx ..
|
|
|
|
|
I need to write functions that will allow the user to change network settings ( we are doing this as part of an Embedded XP project and need to provide our own interface. )
Can anybody direct me to where I can find documentation on how to do this?
I realize I'll have to write the code myself and probably end up calling Windows APIs but I can't find anything helpful out there.
TIA - Jeff.
|
|
|
|
|
|
Thanks for your help. That worked great. Now on to my next problems:
Getting/setting the proxy settings
Setting the account a machine will log in as.
TIA - Jeff.
|
|
|
|
|
Hi,
can anyone help me , how can i change title of the folderBrowserDialog in c# .
thanx.
-- modified at 13:57 Thursday 5th July, 2007
Praveen Sharma
|
|
|
|
|
|
I guess you will have to try and use P/Invoke to call the Win32 function
SetWindowText() in user32.dll
|
|
|
|
|
Use SetWindowText
The SetWindowText function changes the text of the specified window’s title bar (if it has one). If the specified window is a control, the text of the control is changed.
but to use this function u have to use some other functions too
i suggest u to download and install "API-Guide" and look windows functions in it
|
|
|
|
|
Hey everyone,
This may be a very simple (hopefully it is) question and answer, but I'm having trouble figuring this one out.
I want a SaveFileDialog and an OpenFileDialog to start in a chosen directory. Seems simple enough, I'll just create the directory in case it doesn't exist, and then set the InitialDirectory property of the dialog -- but for some reason it's still opening in the last directory that I had browsed to in a previous dialog.
Here's the code:
private const string ATF_FILTER = "AOI Template Files (*.atf)|*.atf";
private const string C_SAVE_DIRECTORY = @"./Saved Templates";
private void Save_Click(object sender, EventArgs e)
{
Directory.CreateDirectory(C_SAVE_DIRECTORY);
SaveFileDialog diag = new SaveFileDialog();
diag.InitialDirectory = C_SAVE_DIRECTORY;
diag.DefaultExt = ".atf";
diag.Filter = ATF_FILTER;
if (diag.ShowDialog() == DialogResult.OK)
{
DrawBox.SaveTemplate(diag.FileName);
}
}
Any idea what could be going wrong?
Thanks,
Phil
|
|
|
|
|
PhilDanger wrote: Any idea what could be going wrong?
Relative path perhaps? As someone pointed out in the last few days, best practice is to use absolute paths.
|
|
|
|
|
Turns out it works correctly when I switch it from a forward slash to a backslash:
private const string C_SAVE_DIRECTORY = @".\Saved Templates"; //works!
Could you elaborate a bit on the benefits of using an absolute path over a relative path? My intuition and previous web experience tells me that using an absolute path would not be the best solution, but perhaps times have changed.
Thanks,
Phil
|
|
|
|
|
PhilDanger wrote: benefits of using an absolute path over a relative path?
Well they are "absolute". Relative is subject to the Current Directory so it's only as good as a guarantee that it hasn't changed or is not something other than what you expect it to be.
|
|
|
|
|
Hi,
it depends on FileDialog.RestoreDirectory which by default is false, but
it seems you want it to be true.
|
|
|
|
|
Hello,
Has anyone come across the following problem? We are making a client/server application in Visual Studio (C#) that runs on the latest Microsoft Platforms on both the web-servers and the database server.
The users are supposed to download their clients and install them locally. We are usingthe smart client technology to ensure that everyone has the right framework and the correct versions of the client, and this worls perfectly for users who run XP.
However, if the user runs Vista locally, it all falls apart. The version check runs much slower, and when the download finally starts, it goes VERY slow and eventually stops completely.
Anyone have any clue what is going on here? We have tested on several vista installations, and we gat the same results every time.
Any replies would be greatly appreaciated.
Baard Dahl
|
|
|
|
|
I'm working with VS2005, i create Crystal report bind it with DateSet and inside the form i put crystalreportviewer to display report data, after running project i foubd that crystal report is empty but DataSet has data inside it, i tried many time to check why this happend but i can't find any solution (note: i made DataSet with wizerd and crystal report too, so i didn't write any code).
please any one know why this happend please tell me
|
|
|
|
|
You have been here long enough to have read the forum guidelines. Do not use words like 'urgent' or 'help' in your message titles.
______________________
stuff + cats = awesome
|
|
|
|
|
Yep. Shame on him
"That's no moon, it's a space station." - Obi-wan Kenobi
|
|
|
|
|
try to search on google
http://www.vbdotnetheaven.com/UploadFile/sushmita_kumari/Report201242006041121AM/Report2.aspx?ArticleID=d6184a33-ee75-495d-9ef3-1fe3e9a24632
http://www.crystaldevelopersjournal.com/artman/publish/article_132.shtml
may be these articles help u out
|
|
|
|
|
Thanks for your help,I see this link and i didn't found any diffrance between what i did and what wrote in this page, i want to know if that maybe VS setup error?
Thanks again
|
|
|
|
|
try to see this too
http://aspalliance.com/articleViewer.aspx?aId=265&pId=
|
|
|
|
|
Thanks for your help,I see this link and i didn't found any diffrance between what i did and what wrote in this page, i want to know if that maybe VS setup error?
Thanks again
|
|
|
|
|
Is it possible to include the IIS into a Windows service?
I would like to provide from my Windows Service also a Web Service Interface (maybe running on another port) that can use the objects in the Windows Service. I know that I could use .net remoting but I don't want to have another Interface, if it can be avoided.
Thanks and Greets
Roland
|
|
|
|
|
I don't understand. If you want an IIS hosted WebService why not just create one?
|
|
|
|
|
Maybe I have to explain a little bit better (or at least I try to...)
I have a windows service that starts when the server is started. This windows service does its job in the background, receives data, makes function calls etc. and is allways running as it should. The windows service makes some function calls through web services.
Now I want to create a web GUI that shows the state of the windows service, using asp.net, ajax etc. One way to get the data would be to communicate with the windows service through .net remoting. But as the other Interfaces are web services and therefor are easy to call for testing I would like to be able to receive the data from the windows service through a web service interface.
But to be able to provide the interface as an web service I need a web server inside my windows service (or at least I think it could work like that).
Hope my idea is now clearer.
Thanks and Greets
Roland
|
|
|
|
|
Roland Bär wrote: One way to get the data would be to communicate with the windows service through .net remoting. But as the other Interfaces are web services and therefor are easy to call for testing I would like to be able to receive the data from the windows service through a web service interface.
Doesn't Remoting have an HTTP channel that uses SOAP?
|
|
|
|