|
Hello all!
A silly question concerning the OSVersion. When I call the following method it returns the platform as the following;
"Microsoft Windows NT 5.1.2600 Service Pack 2"
Despite under the control panel it is listed as;
"Microsoft Windows XP Professional Version 2002 Service Pack 2"
Is there anything that maps one from the other?
Many thanks!
|
|
|
|
|
|
|
Hi,
My scenario is as follows..,
1.On the User PC, an user will give click on a button then It will take a value to the server and update it to a file ......
2.then from server it will get the updated file to User PC and then it will invoke an exe in that user PC ..........
3.then up on entering some values again from client some values will be sent to server.
Here User PC and Server are in WAN
Iam Unable to get the proper Idea to solve this.....
What is the best machanishm to solve this?
How to solve the above Problem?
Kindly Guide me
|
|
|
|
|
www.rentacoder.com
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Yep. Maybe he can get someone to do a lousy project for 10 bucks
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
I need to some Idea or help to start but not some one to do my job.
Iam not a lasy person to give my work to some one...
I just need some initial Idea to start.....
ok ..byee...
|
|
|
|
|
Using this code to pull data tables to populate two datagrids yet when it calls the select query
I get just the first letter of the table.
The code that is commented out with the //places the dbo.Table in the dropdown combo box but error because the select query will fire with dbo.table.
private void EnumerateTables(ComboBox cmb, String databaseName, bool isAccess)
{
if (!isAccess)
{
var srv = new Server(Properties.Settings.Default.ServerInstance);
srv.Databases.Refresh();
foreach (Database db in srv.Databases)
{
if (db.Name == cmbboxSqlDb.Text)
{
BindingSource bs = new BindingSource();
bs.DataSource = db.Tables;
bs.DataMember = "Name";
cmb.DataSource = bs;
}
}
}
else
{
if (AccessConnString != null)
{
var conn = new OleDbConnection(AccessConnString);
conn.Open();
var schemaTable = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new Object[] { null, null, null, "TABLE" });
for (int i = 0; i < schemaTable.Rows.Count; i++)
{
cmb.Items.Add(schemaTable.Rows[i].ItemArray[2].ToString());
}
}
}
}
Learning to Code
|
|
|
|
|
Hi!
I am working on a desktop application in C#. I'd like to show a small icon whether the user has still access to the database or not. Therefore I try to open a connection periodically (timer tick event every 10 sec). When I tested this application something strange happened
1) sql service not running -> I started application -> con.open fails -> catch block -> show disconnect icon
2) i started sql service -> con.open works -> show connect icon
3) i stopped sql service -> con.open STILL works??? -> no exception????
Below you can see my code.
Thread t = new Thread(delegate()
{
SqlConnection con = null;
try
{
string conStr = "CONNECTIONSTRING GOES HERE";
con = new SqlConnection(conStr);
con.Open();
datenbankStatus(true);
}
catch (Exception ex)
{
datenbankStatus(false);
}
finally
{
if (con != null && con.State == System.Data.ConnectionState.Open) con.Close();
}
});
t.IsBackground = true;
t.Start();
Any help would be great!!
Thx in advance
|
|
|
|
|
I have an india map(single image).In that map if i click on Andhra pradesh it should show that Andhra Pradesh Map. please help me for this work. i want this application in c# windows application.
|
|
|
|
|
|
sorry this not suitable to my question.is there any other examples to find out the regions of a single image.
|
|
|
|
|
Hi everyone, I have a big problem I can't manage to solve.. This is the explanation: I have two windows form projects. The first one is needed only to output a .cs file, with inside parameters given by the user. And thi is ok. The generated .cs file should be the code file for the other windows form application. And this is also ok. Now I need to compile the project from the first application, and this is what's missing. Any advice? I tried to use the CodeDom, but I just could manage to create a console application,like in the example given in the msnd documentation. Thanks Bye Gabri
|
|
|
|
|
Now what is the problem you are experiencing? Cant you just add an entry in the second project for the generated file?
|
|
|
|
|
Hmm
I think I explained it bad, or perhaps I couldn't understand your answer..
I try to explain better the problem:
First application generates the .cs file and puts it in the second application folder. First application in still running. Now First application should compile the second application in an .exe file.
I just can't understand how to do this.
With CodeDom I understood how to create a simple console application, but it isn't what i need, my second application should be a windows form application.
If your answer was right, can you explain it better to me?
Thanks anyway for the answer!
|
|
|
|
|
Ok, I understand a bit better. The best choice IMO is to utilize MSBuild. The first application will call MSBuild on the seconds project file after the first project has generated the C# file.
You can call MSBuild either via code (hard) or just as a process (easy).
|
|
|
|
|
Yes, it seems to be the solution!
Ok, last two questions..
1)Have you ever used it? A little little explanation of how it works is possible?
2)What do you mean with "via code (hard) or just as a process (easy)."
Thanks again!
|
|
|
|
|
kontax wrote: 1)Have you ever used it? A little little explanation of how it works is possible?
Yes. Just type in 'msbuild /?' to get all the options. There are MSDN docs too, Google for a few tutorials to get the hang of it. VS uses it internally.
kontax wrote: 2)What do you mean with "via code (hard) or just as a process (easy)."
via code: Reference the MSBuild assembly (not sure about the name now), and call the method via code.
via process: Process.Create("msbuild ...")
|
|
|
|
|
|
|
Yes,i tried that way. But I understood only how to compile a source files. I could just compile from a .cs file to a .exe file. I need to compile a project made from a form and its .cs file together in an executable file.
Is there a workaround to do this with CodeDom or CSharpProvider?
|
|
|
|
|
If you put your form's designer generated code and the cs file into one file then you can compile it using CSharpProvider, but you can't compile a project.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
|
With CSharpProvider you have to programmatically add referenced assemblies. Did you have a look at the link I provided?
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Yes I did.. and it's a really good article!(I also didn't know how to drag files..)
I'd seen you used the CSharpProvider, i just thought it could be possible also with CodeDom like i did, cause I used it to compile other kind of .cs files.
Ok, I'll switch to the CSharpProvider..
THANKS for everything!
bye
|
|
|
|