|
Windows application form on framework 2.0
|
|
|
|
|
mrcooll wrote: how can i create an object from " phisical Form files " at run time!
You dont have physical forms on your disk once you build and deploy the application.
|
|
|
|
|
hi,
and thank u for trying to help me,
m devloping an application that collect information "Forms, Controls,etc... " about other application before deploying it.
which means that i have the whole project files that m collecting its information.
private void GenerateNodes(DirectoryInfo dinfo)
{
//here i got all of the form names and its files
FileInfo[] files = dinfo.GetFiles("*.resx",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles
"*.AnyFormExtintion",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles("*.cs",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles("*.vb",SearchOption.AllDirectories);
}
What i need is a way to create an object from these forms to iterat over its controls.
Thx.
|
|
|
|
|
One way to do this is to load the file names in and compile[^] them up using the CodeDOM.
|
|
|
|
|
You cant create a form file from scratch at run time. What you can do is manually create controls on an form by calling the constructors of each control dynamically. You'll have to do all the setup that is normally done at design time manually. Look at what the constructor does behind the scenes to create each control on your existing forms.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Hello everyone,
I'm working with a database. Currently I am using the "Microsoft SQL Server 2005". But I would like to work with a database which is inside Visual studio. So I thought about using the "Local Database".
In my solution I added a new item called "Local Database". I created a new table and tried to connect with it in the same way as I used with the SQL server, but it didn't work.
I use this connectionstring with the SQL server: connectionString = "server=DERESEN\\SQLEXPRESS;Trusted_Connection=yes;database=master;"
And I use this connection string for the local database: connectionString3 = "server=Datatbase.sdf;Trusted_Connection=yes;"
The list in SQL server looks like this: DERESEN\SQLEXPRESS -> Databases -> System Databases -> master -> Tables -> myTable
The list in server Explorer looks like this: Data Connections -> Database.sdf -> Tables -> myTable
Does anyone know how to get this working? I cannot find it anywhere on internet.
|
|
|
|
|
|
Well, I can allready connect to a database. But do you know how to use the Local Database which is embedded in visual studio?
|
|
|
|
|
AFAIK there is no database embedded within Visual studio - unless you are talking about datasets?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Well I really am talking about a database. When you go to your project and add an item, there is also an item called "local database". This is the database I am talking about.
I've never heard of dataset's though, does this has to do something with databases too?
|
|
|
|
|
The thing you are referring to is 'An empty SQL Server Compact Edition database for local data'
So presumably you need to look at connection strings for that, but its not embedded within your app.
Datasets are collections of datatables. Try Google.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi guys! I want to know if it's possible to store PDF document at local database and then to retrieve the document and work with it? Thanks
|
|
|
|
|
laziale wrote: I want to know if it's possible to store PDF document at local database
Store your document in binary and do whatever you want
|
|
|
|
|
can you please give me a example how to do that, and then how to retrieve back and show on the screen as PDF file again. Thanks a lot!!
|
|
|
|
|
|
|
You are welcome
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hello,
I am working on asp and asp.net 1.1 with C#.
I am working with load balancer and providing feed to servers with some methods in my project. Sometimes when one server is busy because of heavy traffice its load is balanced by few connected servers and this time these servers receives data sent by different users.
Now my question is:
How can I get server information (like hostname, IP Adress etc.) which is recieving the data at this moment.
Thanks in advance!
Regds,
Sandeep
Ahuja
|
|
|
|
|
|
I think it's called Wireshark now. As I recall the name Ethereal caused some legal problem.
|
|
|
|
|
thanks tony & vikas..
Actually I am looking for some code (asp/asp.net) to fetch the server hostname/IP Address..
thanks again for your posts
Regds,
sandeep
Ahuja
|
|
|
|
|
thanks tony & vikas..
Actually I am looking for some code (C# with asp.net) to fetch the server hostname/IP Address..
thanks again for your posts
Regds,
sandeep
Ahuja
|
|
|
|
|
Dear All,
I want to design a form designer where i can put my own button control,text box control, image control and other such controls.
i am starting this from my c# knowledge but i dont know where to start and how to design such application.
plz give references where i can start for designing such application.
Thanks in Advance,
Abdul Rahaman Hamidy
Senior Student Student in Computer Science
Kabul, Afghanistan
Software Developer
|
|
|
|
|
|