|
There is no minimum. You could create a totally empty library if you wanted. You just put in it the things you want to.
What kind of library do you want to build?
Perhaps you should find a beginners .net tutorial to get you started with basic things like data types, object structure and how to compile an app.
Simon
|
|
|
|
|
hey thanx for the suggestion . But I already know the basics for .net
I have never created a library please provide me a link for a stuff pertaining to creation of library in dot net.
|
|
|
|
|
Click File->New->Project.
Choose your project type in the left hand box. (Either "visual C#", "Visual basic" then "Windows"). Then in the right hand box, choose the "Class library" template.
Enter the name and location in the text boxes at the bottom of the dialog.
Click Ok.
Simon
|
|
|
|
|
|
can any body guide me what are the key points to keep in mind while converting a desktop application to a web application whereas, language of both will be the same vb.net....
any article or guideline..
umerumerumer
|
|
|
|
|
Desktop apps and web apps are very different things. One can't really be converted to another.
If your desktop app is a client app that uses a server then that is good, you can keep the same server part. If not, and the desktop app does everything itself the first thing you need to do is redesign the architecture of the app into a server-client model. Once you've done that, you can write web gui version to present the information to the user, and talk to the server for the back end processing.
Simon
|
|
|
|
|
ok thanks and yes it is client server application and next question of mine is in previous application developer has used more than 20 datatables to in which on the beggening he is filling the data from the different tables and then using them in the forms...
now what will be the alternative or best approach to do same functionality in the web?????
1) do i have to fill all the datatables and keep them into sesssion if i do that will these session effect the website while loading time???
umerumerumer
|
|
|
|
|
There is a DataList control, or a GridView, both of which can be bound to data sources.
Your best bet is to start asking specific questions in the asp.net forum. Asp.net is not really my area I'm afraid.
Simon
|
|
|
|
|
There are certain programs that if we try to run them more than one time by clicking their icon, we get the recent opened one like Winamp or messenger or anti-virus programs. does such programs ban such a thing through the constructor?
Thanks,
Hesham
|
|
|
|
|
The way I prevent more than one instance of my application is to attempt to create a Named Mutex in the startup code.
If the mutex already exists, then you know that your application is already running.
“Cannot find REALITY.SYS...Universe Halted.”
~ God on phone with Microsoft Customer Support
|
|
|
|
|
Yes, yes... Using a mutex will be enough for the logic part...
Or you could try Process.GetProcesses()... I opted to scan through all the processes so that atleast i can get the hwnd of that process of mine and pop that window out immediately for the user to see...
think fast, be brave and dont stop.
|
|
|
|
|
I'm trying to save a file by putting all the file information in a class and serialize it then deserialize that file in another program. When I open the file in the same program that created it it's fine but when I try to open it in the other program with the exact same code it gives me an error because it appears that the serializer includes assembly info and those of course don't match in different programs.
So my question how can I get around this problem or is there anything equivelent to serialization that won't give me these problems?
thanks,
Mike
|
|
|
|
|
The problem is in the second program. Try to deserialize your class in an object variable. if it's working then the problem might be in the way you defined the class structure in the second program. if the solution of the "object variable" didn't work then the problem might be in the code!
wish this help!
|
|
|
|
|
|
Since it sounds like you have control over both applications, the simplest solution would be to just pull that class out into a common library and have both programs reference that shared library. Then the class would be from the same assembly in both applications.
|
|
|
|
|
Hi Guys,
I've got a little mechanism that handles Command Codes and Guard checks, and i'm wondering at the best way to handle the menu / button / toolbar controls that invoke them.
The basic principle is to loop through the menu items and test the Command Code associated with them, enabling / disabling as appropriate.
For MenuItems this is done on Opening, but i'm not sure what to do about UI Components that are always visible, such as buttons and ToolStrips. I don't really want to be turning them on and off from a different part of the application as they should be managing themselves. The only option i can think of is to have a timer that will trigger a loop through of the guard conditions, but that seems a bit clunky.
Any thoughts?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Could you use a delegate for that. Objects could have event handlers for the delegate and event would be raised whenever surrounding conditions change. Then it's up to the object (button, menu item etc) to investigate what it's status should be.
Mika
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I've added a GuardInvalidated event to my class and everything which depends on the guards will need to handle it.
Cheers for the thoughts!
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi,
I am preparing a crystal report which considers two tables from the data base,One of the table contains duplicate values,i want to sum those values and display it in crystal report in a single column.
Now using these column values i calculate the profit or loss in percentage.
I got the profit and loss calculation part but could not get how to sum up similar values in the database.
Weather i should write a query,how can i link this to my crystal report.
Can any one help..pls..
Regards,
Anu
|
|
|
|
|
There are several choices. Some of them:
- you sum the values before you send the data to crystal
- in crystal use formulas to calculate the sums and show the results of the formulas
- place the original rows in detail section and create a group for summed values. If detail rows are not needed, set detailes section to invisible.
Hope this helps.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I have grouped it by name but i am not getting the correct sum of similar row.
Can i use sm formula on these group fields,if yes how can i do it.
|
|
|
|
|
The easiest way is to first use Group Expert to create a grouping section and then use Summaty on that group to add summing field.
You can create a formula also. Simply add a new Formula Field and use Sum-function. After that place the formula on group section.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hello,
I have to use a smoothing algorithm in my COde. I am using Visual C++ .Net 2008 with 3.5 framwork.
I am reading a data through serial port from a target device and this data is store into a XML file. I have to display(plot) this data on the window. For ploting the waveform, i read the data from the XML file, and draw(Plot) the point using "Drawline" function. but the curve generated is not in Smooth shape. It shows some noise(like steps).So in this case I want to use smoothing algorithm but dont know how to use it.So plz can anyone tell me how to use smoothing algorithm? its urgent so plz help me out.
Thanks and Regards,
Abhijit
|
|
|
|
|
Microsoft Sync Framework v1.0 is now RTM and is now available to download[^].
Sync Framework Highlights
- Add sync support to new and existing applications, services, and devices
- Enable collaboration and offline capabilities for any application
- Roam and share information from any data store, over any protocol, and over any network configuration
- Leverage sync capabilities exposed in Microsoft technologies to create sync ecosystems
- Extend the architecture to support custom data types including files
Microsoft Sync Framework is a comprehensive synchronization platform that enables collaboration and offline scenarios for applications, services and devices. Developers can build sync ecosystems that integrate any application, any type of data, using any protocol over any network.
The Microsoft Sync Framework provides a platform for taking web services and databases offline. In addition, it provides optimized P2P sync of any type of file including contacts, music, videos, images and settings. The extensible framework includes built-in support for synchronizing databases, NTFS/FAT file systems, FeedSync compliant feeds (formerly known as Simple Sharing Extensions), devices and web services.
|
|
|
|
|
That's a bit puzzling as i thought it had been RTMed about two months ago. I upgraded to SyncToy 2.0 then and it said it was based on Sync Framework 1.0.
Kevin
|
|
|
|