|
It is not going to that method!! I have placed a break point in the method, but it never goes to it! I even tried the Application_End, and it does not go there either untill all users are logged out, which is not my case.
|
|
|
|
|
Frndz,
i want to display my data in a horizontal pattern using a datagrid with 2 rows.
can someone plz tell me what settings do i need to make to achieve that ?
heading towards Geek-Age !
- Prasadd
|
|
|
|
|
Hi Frndz,
I don't quite get what you exactly have in mind.
You can always build a dataset containing two rows and the amount of columns needed for your data.
Bind the DataGrid to that DataSet and there you go. The DataGrid layout you need.
WM.
What about weapons of mass-construction?
|
|
|
|
|
Hi,
thanx for ur help
can you plz giv me some sample code for adding rows & columns to a Dataset ?
using that can i achieve a result Grid with [4 cols * 2 rows] ??
i shld also be able to use paging with that.
heading towards Geek-Age !
- Prasadd
-- modified at 8:06 Saturday 29th October, 2005
|
|
|
|
|
Hai all,
In my program an animation control is placed on the windows form. And the Avi file will be played when the form is loaded. Here the file path of the Avi file is assigned to the file name property of the animation control.
My problem is I want to make the program work when the program is deployed on different machines where the file path will be different.
I am placing the Avi file the with in the project folder it self.
Is ther any method to get the project folder path so that i can append the path to the file name.
Please help me
sukanyavarma
|
|
|
|
|
Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "my.avi");
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thank You Christian Graus,
It is working.
Thanks for your help.
I am a bignner in .net my learning curve is becoming lot more steeper because of the people like You and the code project.
Thanks a lot to all you people for your generous responces.
Sukanyavarma
|
|
|
|
|
I have an C# Winforms application that takes data in a small input file which happens to be in XML format. Prior to this, I gave the file a custom extension (let's call it .mya for example) and associated that extension with my APP, so when someone clicked on the extension, it looked for an app already running, and if it found it, it sent that as an argument, otherwise it loaded the file itself. The app then took the data out of the custom XML file (.mya) and, among other things, sticks the data on a column in a datagrid.
Now, I'd like to set things up so when someone goes to a file like this as an URL in IE or Firefox, it will recognize the extension and call up my app. To do this, I created my own MIME type "application/myapp", had the Apache web server on the other end send the file type as that content type in its HTTP header, and then wrote to the registry under MIME/Database/Content Type my new data. I added the extension string there as .mya I then tried it out with Firefox, and it worked just fine.
It did not work at all with IE. IE sniffs the file and says, "This is actually an XML file" despite the extension and renders it as such in the browser. If I encrypt or encode the file as binary, this may force IE but I'd prefer not to do that if I don't have to.
One possibility is to get this to work with IE, I have to generate a GUID for my app and and add it under my MIME registry key as the CLSID. Then, somehow I go to my app and register this as a COM object, and support the object passing.
All this seems quite complicated for something seemingly so simple. Anyone able to help me out -- perhaps there's a better way to do it. Or, perhaps generating the CLSID in the registry and then supporting that in my code is easier than I'm thinking.
Thanks a lot for everyone's help!
|
|
|
|
|
Hi all how is everybody hope good and fine
well i wanna to make a program which simulate the working of the Tower Of Hanoi i mean i will not do the towers of hanoi in console application i wanna to make a windows application and the users see the bars which he/she can move to the third column i know that i will use graphics to accomplish that but i dont know from where to start
hope anyone could help me in that
thanks in advance
byebye for now
Gego
-- modified at 22:29 Thursday 27th October, 2005
|
|
|
|
|
The old Tower of Hanoi problem. Isn't it a bit late in the year for people to get this as homework ?
A bar is achieved using the DrawRectangle method on the Graphics object. You should do all your drawing in the OnPaint method of your application. you don't need to create a brush, the Brushes enum will give you standard colors, the same is true of Pens. That should be plenty to get you started.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Nah, I did that one in two weeks, though I did use a console app to simulate the graph
WM.
What about weapons of mass-construction?
|
|
|
|
|
Hi,
I'm trying to write a C# .NET application that can read and modify an older Borland BDE DBase file.
I can write this in Delphi.NET using the VCL controls just fine, but I would rather use C#. The thing is, the .NET bdpConnection does not allow for connections to the older BDE format.
I think I might be able to create resource in Delphi and output the DBase into a TTable and send that to the C# code, but that is a bit more of a hack than I care for in this application.
Thanks in advance for any suggestions.
Kevin
|
|
|
|
|
Create an assembly using Delphi and VCL.NET, expose an interface in the assembly that can communicate with the database the way you want. Then create a C# program that uses the assembly created with Delphi.
It isn't a hack, it's perfectly fine, it's even better than just hacking a tool together for the things you wanna do.
WM.
What about weapons of mass-construction?
|
|
|
|
|
Not sure if I should be posting here, or in the c++ forum since my app's written in c#, but the error's being generated by a win32 api call. I'm using the following 3 api calls as demonstrated in the msdn article to monitor changes being made to a folder over samba (FileSystemWatcher won't do this). In my tes app the water class works perfectly. When I use my watcher class in my main app everything is fine with one copy running. With two copies though if, FindNextChangeNotification returns false and generates errorcode 0x64006e as returned by Marshal.GetLastWin32Error(). Win32Exception.Message describes this as an uknown error, and no error codes with this large a value are listed in msdn, or winError.h. Looking at the code between my main app and my tester I'm not seeing any meaningful differences, and with an unknown error I don't know wehre to be looking. The biggest difference between the two is that when a change occurs my tester just throws up a message box, while my main app reloads all the files in the folder. (There're only a handful so the performance hit from loading everything isn't enough to justify the extra work needed to ID which file was modified).
FindFirstChangeNotification
WaitForMultipleObjects
FindNextChangeNotification
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_directory_change_notifications.asp
|
|
|
|
|
I am making a program. When a button is clicked a new form is created (form1.IsMdiContainer = true;) and then I want to put a menu on that form1 so the user can make some choices.
How do I go about doing that? I keep getting into problems
Thanks,
FJ
|
|
|
|
|
Just simply design menu by drag-drop from Visual studio toolbox to the form1
<< >>
|
|
|
|
|
|
Thanks for the reply.
This not what I meant, if you look in the picture of the article you were kind enough to point me to you see that the big window that houses the smaller ones has menus, I want the offspring to have menus, the windows or forms that contain the picture in the article. How do I do that? That is what I couldn´t do.
Thanks,
FJ
|
|
|
|
|
Hi,
I am currently working on an encryption application. I created a windows service that watches over a directory and when a new file is added, it encrypts it.
Now here is the problem . I want to find out which user has added a file to the directory (which is o n network). Is this possible to find out which user has dropped or added the file to the directory in C#.
Thanks in advance
-Sandeep
.Net Developer
|
|
|
|
|
erm.. depending on the environment that you are using but..
..the owner of the file?
--
michael - www.code.ae
|
|
|
|
|
Hey Micheal,
Its not the file owner. The managers want to know who has dropped the file for encryption. We want the user who dropped the file into the folder in a network.
|
|
|
|
|
This information doesn't exist anywhere. Usually, depending on the network O/S, the person who dropped the file becomes that copy of the file's owner.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the info.
Is there a way to get the owner details from the file. I use windows XP.
|
|
|
|
|
Well, there's nothing in the .NET BCL that will do this, so alternate methods must be used.
Here[^] is an example in VB.NET using WMI to get the owner.
And here[^] is an example in C++.
I wasn't able to find a straight c# example.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey Micheal,
Thank you very much. I could convert the VB.NET code to C#. Instead of using WMI i used unmanaged code itself calling all the function manually. It summed up to 40lines code and works fine. Thank you very much for help
|
|
|
|