|
Good question! I'm working on that. I'll upload the new control on my website when resolve the problem.
P.S.
Maybe my current solution will help you. See www.madartsoft.com
modified on Monday, January 26, 2009 7:27 AM
|
|
|
|
|
thanks but can u tell me the exact path in site from where i can take help.
|
|
|
|
|
i want to produce full exe with c#
|
|
|
|
|
Hi,
what do you mean by "full exe"? If you are using Visual Studio, it will build an exe from your console and forms/wpf application automatically.
Regards
Sebastian
|
|
|
|
|
Good for you
only two letters away from being an asset
|
|
|
|
|
Hi girl,
add new project> and choice setUp. And you may follow all
Wizard and add you desire database. The easy one try it.
About C#.net with window applications and ASP.net for webapplication
|
|
|
|
|
Zin Hsu Naing wrote: i want to produce full exe with c#
so, you have been creating a half-exe till now!
i'd like to learn that
regards
|
|
|
|
|
Is there any other thing we should know?
|
|
|
|
|
Create a Setup Project see this
http://support.microsoft.com/kb/307353[^]
http://www.codeproject.com/KB/dotnet/Win_App_Setup_Project.aspx[^]
Stop giving names that you dont know, people will laugh at you. What is "Full exe" was there a Half before ? lol!!!!!!!!!!!!!!!!
Hope it helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Buy a book on C#. Read it. Try learning to use google.
Oh, and press F5.
If what you meant is an exe that doesn't need .NET installed, then repeat all steps. You can't do that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: If what you meant is an exe that doesn't need .NET installed, then repeat all steps. You can't do that.
Actually he can, it's just that xenocode[^] is almost as expensive as visual studio itself.
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
|
|
|
|
|
i want to perform following functionailty from c#.net datagrid
--------------------------
name address
fist last
--------------------------
abc df pk
abc df pk
--------------------------
i.e. splitting column name into two columns 'first' and 'last'.
we can't span column in c#.net datagrid. can any body tell,how to add a table in a column of c#.net datagrid.
|
|
|
|
|
Override the ItemDataBound event and insert whatever controls you want.
only two letters away from being an asset
|
|
|
|
|
i m using c#.net not c#asp.net.can u plz tell me then what to do?
|
|
|
|
|
You are confused. C# is a langauge that implements .NET Framework. ASP.NET is a platform for developing and delivering web applications. DataGrid is a control used in Web Forms and GridView is a control used in Win Forms.
If you would explain clearly, with correct terminology, your chances of recieving an answer would be enhanced.
only two letters away from being an asset
|
|
|
|
|
sorry.i was making mistake.i want to implement this using dataGridView.now can u plz tell me?
i want to add table in a column just like this bold statement.but this is for datagrid can u tel me for gridview.
public void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Header)
{
e.Item.Cells.RemoveAt(2);
e.Item.Cells[1].ColumnSpan = 2;
e.Item.Cells[1].Text = "<table style='FONT-WEIGHT: bold;WIDTH: 100%; COLOR: Black; TEXT-ALIGN: center'><tr align=center><td colspan = 2 style='BORDER-BOTTOM:cccccc 1pt solid'>Name</td></tr><tr align =center ><td style ='BORDER-RIGHT: cccccc 1pt solid'>FName</td>< td>LName</td></tr></table>";
}
}
modified on Monday, January 26, 2009 4:23 AM
|
|
|
|
|
G'day all,
I'm writing an application that requires me to output the values stored within a DataGridView to an cls/csv file (or basically anything that M$ Excel can read). This is as far as i have gotten:
string strValue = " ";
for (int i = 0; i < stocksDataGridView.Rows.Count - 1; i++)
{
for (int j = 0; j < stocksDataGridView.Rows[i].Cells.Count; j++)
{
if (!string.IsNullOrEmpty(stocksDataGridView[j, i].Value.ToString()))
{
if (j > 0)
strValue += "," + stocksDataGridView[j, i].Value.ToString();
else
{
if (!String.IsNullOrEmpty(strValue))
strValue = stocksDataGridView[j, i].Value.ToString();
else
strValue = strValue + Environment.NewLine + stocksDataGridView[j, i].Value.ToString();
}
}
}
strValue = strValue + Environment.NewLine;
}
string fileName = @saveFileDialog1.FileName;
if (File.Exists(fileName) && !String.IsNullOrEmpty(strValue))
{
File.WriteAllText(fileName, strValue);
}
I'm sure its not very pretty and i have no idea how/where/why i have it in there, but all i can say is that it doesn't actually output anything.
Any and all help will be greatly appreciated.
Thanks in Advance,
Tom
|
|
|
|
|
Hi Tom,
are you sure that the command "File.WriteAllText" is executed? You only enter the if-block if your file exists! Maybe you have forgotten a "!" before "File.Exists"?
Regards
Sebastian
|
|
|
|
|
Thankyou so very much. I can't believe I would screw up something like that! Man I must be getting old...
Thankyou again,
Tom
|
|
|
|
|
Hello, Please help how to save Listview data to MSSQL database?
|
|
|
|
|
Tuntgerhuu wrote: how to save Listview data to MSSQL database
By iterating the listview rows. For connecting MySQL use the connector[^] provided by MySQL.
|
|
|
|
|
he want to use MSSQL, not MySQL,
Glad to discuss with you and best wishes.
|
|
|
|
|
oops. I read it as MySQL. My bad
|
|
|
|
|
|
Hi there i am a little stuck and need some assistance
The gist is i am calling a stored procedure from my executable, it takes to parameters FileName and FileType and returns an error/success code.
Based upon that error code i need to do some work.
In esscence this is the form i want
EXEC @Return_Code = the_StoredProcedureToCall ‘C:\\File.csv’, ‘FileType’
where @Return_Code = return status code
Within my C# i have the following.
private int callStoredProc(string fullPath, string type)
{
string connectionString = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];
string strRowAffect;
SqlConnection con = new SqlConnection(connectionString);
try
{
con.Open();
}
catch (Exception e)
{
this.lstEventsOccurred.Items.Add("ERROR: Database Connection could not be established in callStoredProc(): " + fullPath);
this.lstEventsOccurred.Items.Add("Exception Produced: " + e.Message.ToString());
return -1;
}
SqlCommand command = new SqlCommand("the_StoredProcedureToCall", con);
command.CommandType = CommandType.StoredProcedure;
SqlParameter retVal = command.Parameters.Add("@Return_Code", SqlDbType.Int);
retVal.Direction = ParameterDirection.ReturnValue;
SqlParameter inputFileName = command.Parameters.Add("@InputFilePathName", SqlDbType.VarChar, 120);
inputFileName.Direction = ParameterDirection.Input;
inputFileName.Value = fullPath;
SqlParameter fileType = command.Parameters.Add("@FileType", SqlDbType.VarChar, 120);
fileType.Direction = ParameterDirection.Input;
fileType.Value = type;
this.lstEventsOccurred.Items.Add("Calling:" + command.ExecuteNonQuery().ToString());
strRowAffect = command.ExecuteNonQuery().ToString();
con.Close();
return (int)retVal.Value;
}
Something is incorrect and having the darndest time figuring it out.
Thanks in advance
|
|
|
|