|
Thanks alot,
you help me.
|
|
|
|
|
I have a Data Base and i want use listView in my form in the my project(C#).
Now i want set "ListView" and show my data in it.
thaks
I can Because I want
|
|
|
|
|
Are you still having trouble with this?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hello frnd,
i have a XML document i want to read complete XML with DOM.
how can i do it...
cay code sample or link ????
thankx in advance
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Isn't that what System.Xml.XmlDocument.Load does?
|
|
|
|
|
Hello,
I want to save image/picture in my Database and retrive it
and how to display it in Datagrid
plse help me
came out of hardwork
|
|
|
|
|
|
Hi, I have a doubt regarding webservices..
I have written one webservice. where i have to put this webservice to use by internet users? what to do for this?
Is there a way to look all exsisting webservices? if so where can i found?
Is all webservices are under one website(i.e by showing what for this webservices and their description)?
How we can found webservices?
-- modified at 0:06 Saturday 24th November, 2007
|
|
|
|
|
Satish - Developer wrote: where i have to put this webservice to use by internet users? what to do for this?
A public server
Satish - Developer wrote: Is there a way to look all exsisting webservices?
Not really, no
Satish - Developer wrote: Is all webservices are under one website(i.e by showing what for this webservices and their description)?
LOL - no.
Satish - Developer wrote: How we can found webservices?
Usually by googling for the type of service you want. Why would you want to find them *all* ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,my platform is windows application(c#)
i have to place the datagrid values [cell values]multiplecells
into another windows form....
please give me suggestions or give any related code to this
murali krishna
|
|
|
|
|
Hi,
1) You can simply set the datagrid as public one.
Here is the code snippet:
public partial class Form1 : Form
{
public DataGrid dg;
public Form1()
{
InitializeComponent();
dg = new DataGrid();
dg.Name ="Sample";
}
private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.Owner = this;
frm.Show();
}
}
}
In Form2,
private void Form2_Load(object sender, EventArgs e)
{
Form1 f= this.Owner as Form1;
MessageBox.Show(f.dg.Name);
}
2) Another way, this is more securable one.
a) Move the datagrid values to DataTable. (ex: objDataTable)
b) Create a property (DTable) for getting objDataTable object.
public DataTable DTable
{
get { return objDataTable; }
}
c) Show the Form2 with the specified Owner.
Form2 frm = new Form2();
frm.Owner = this;
frm.Show();
d) Now, You can get the values in Form2 using DTable property.
//Form2.Load()
Form1 f= this.Owner as Form1;
DataTable dt = f.DTable;
Thanks,
Gopal.S
|
|
|
|
|
Hi,
Excel VBA - how to replace with .NET C# modules? Article, URL's and references? I hear about Visual Studio Tools for Office Developers 2005, but not sure how it actually work.
I can imagine, Excel 2005 scripts can be written in any .NET language? And can therefore load any dot net dll's from GAC?
Thanks!
|
|
|
|
|
How about translating each Excel VBA script by hand? Or is there too many?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Good Day,
I am using the Bgworker component in C# to do some CPU Intensive and time consuming work.
This work, to be exact, is to make a matrix (2D Array) out of a byte array.
So that's, byte[] 1D -> byte[,] 2D
So I'm using a for loop to do the convertion, so every step in the loop, I call the MatrixFormation_ProgressChanged to update the progress bar.
Now I ran the application but the problem is, eventhough I'm using BGWorker, when I try to do something with the form (Click on something, Minimize, Maximize, Move the Window) the form will just freeze (But the thread is running). After the process, the form will be back with the message "Matrix Completed!", the results are okay.
I also noticed that if I removed the ProgressChanged event to trigger the progress bar to update, freezing won't occur.
So how can I make the form NOT TO FREEZE during the work process without removing the ProgressChanged event?
PS: Matrix Formation isn't the only job I'm working so suggesting to change the process of the matrix formation won't help me.
Thank you in advance.
|
|
|
|
|
Hi,
sounds like you do have some illegal cross-thread access to some control.
did you by any chance:
- create or modify the progress bar in some thread other than the main or "GUI thread"?
as in the BackgroundWorker's RunWorkerAsync (e.g. make it visible?)
- access some other Control (say read a TextBox.Text) from inside RunWorkerAsync?
Normally these illegal actions should result in an InvalidOperationException, unless
you've set some Control.CheckForIllegalCrossThreadCalls false (which is a very bad idea).
If none of the above applies, I suggest you show actual code.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
The Progress bar and the Label that represents the percentage of the progress bar is created during design time. (Using the Designer).
Here's the code:
private void MatrixFormation_DoWork(object sender, DoWorkEventArgs e)
{
ByteStream = File.ReadAllBytes(LoadFile.FileName);
int Rows = ByteStream.Length / PasswordLength;
int Remainder = ByteStream.Length % PasswordLength;
double Percentage = 0;
ByteMatrix = new byte[Rows,PasswordLength];
int I = 0;
for (int R = 0; R < Rows; R++)
{
if (MatrixFormation.CancellationPending)
{
e.Cancel = true;
return;
}
for (int C = 0; C < PasswordLength; C++)
{
ByteMatrix[R, C] = ByteStream[I++];
}
Percentage=(double)I / (double)ByteStream.Length * 100.00;
MatrixFormation.ReportProgress(Convert.ToInt32(Percentage),String.Format("{0:f}",Percentage));
}
if (Remainder != 0)
{
RemainderPile = new byte[Remainder];
for (int R = 0; R < Remainder; R++)
{
RemainderPile[R] = ByteStream[I++];
MatrixFormation.ReportProgress(Convert.ToInt32(Percentage), String.Format("{0:f}", Percentage));
}
}
}
private void MatrixFormation_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
pbar.Value = e.ProgressPercentage;
lblPercentage.Text = e.UserState.ToString();
pbar.Refresh();
lblPercentage.Refresh();
}
private void MatrixFormation_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Cancelled)
{
lblS1.BackColor = Color.Red;
MessageBox.Show("Job has been cancelled!", "Cancellation Successful", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
lblS1.BackColor = Color.DodgerBlue;
lblS1.Refresh();
}
Note that ByteMatrix, PasswordLength and ByteStream are global variables.
Thank you!
|
|
|
|
|
Hi,
I suspect LoadFile; it'd better not be a Control (such as an OpenFileDialog)...
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I saw a post on here a while back that showed how to manipulate a bunch of buttons (button1, button2, button3, etc. ) with a for loop. Can anyone tell me how to do this with, say, 10 buttons? Thanks in advance.
- I love D-flat!
|
|
|
|
|
foreach(Control control in Controls)
{
Button btn = control as Button;
if (btn != null)
{
btn.BackColor = Colors.Red;
}
}
This will make all the buttons on a form red. The btn.BackColor line is a guess, the rest is golden.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
OK. Is there another way? The one I swa had like button(for blah..), or something like that. But thanks.
- "Achieving all knowledge does not mean achieving all wisdom." some wise dude
- I love D-flat!
|
|
|
|
|
hi.. is that a good idea to use the expression blend for my C# design.. ?
i would like to know if i had created a project completely in visual c# .. can i use expression blend to change the design of that project?
or i need to start a project completely from expression blend first?
|
|
|
|
|
angels777 wrote: can i use expression blend to change the design of that project?
I don't see why not.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
take simple example... if let say i create a button with functionality in visual c#... so i use Blend to open that project..
how do i change the button design which created in Visual c# in Blend? my previous idea was to delete that button and use blend's button to replace... but if like this the functionality will be lost if i delete the button..
my friend said i must create the design in Blend.. not in visual c#
|
|
|
|
|
If you want to use Blend to create a project, then unless it's already a WPF project, I think you need to use Expression to start with.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello all,
How do we read the .txt file and extract the data to DataGrid according to specific rows and columns? For example if the .txt file has a Table of Contents that has subcategories in it, how should I extract the Table of Contents as rows in the DataGrid and the subcategories as by columns? Do we have that similar kind of tutorial here?
I would be great if somebody here could write a similar running program for tutorial.
Thanks.
|
|
|
|