|
Thank you a lot . I'm newby of C#, I don't know ref keyword. now I got it.
|
|
|
|
|
how can I create a map, and when I drag the map by the stylus, the map then change the view (move) according to stylus movement on pocketpc (.netCF).
|
|
|
|
|
How can i convert crystal report file to pdf
Thanks
|
|
|
|
|
Hi!!!
I want to create a bidimensional array of strings but I don't know how can I fill it with values.
I have this code but the problem is that I think it only fills one of the dimensions.
for ( int i = 0; i < 1; i++ )
{
for ( int j = 0; j < numRestrictions; j++ )
{
arrayPossibleValues[i,j] = arrayRestrictions[j];
}
}
Thanks in advance
Mónica Pinto
|
|
|
|
|
Hi
I have a simple C# Winforms app that needs to be deployed on various client PCs.
I know about XCopy deployment - just copy all the files and its done.
But i want to do more than that, create a GUI based app that lets the client choose the folder in which it can be installed in.
When the application executes it reads that value for looking at exe files.
regards
Rajiv.
rt7
|
|
|
|
|
Add a new project for your application solution. This project should be a Setup project. You can find it under New Project->Setup and Deployment Projects. Read the help on proceding further.
This will give you a MSI file which can be installed on the client applications using Windows Installer.
|
|
|
|
|
Hi! I'm having trouble trying to fill a DataSet with the results of a procedure I wrote. The procedure has 1 parameters and is composed of a select query (select id,text from Users where id=id_passed_by_param). My problem regards using this procedure to fill a DataSet. I was trying to do this:
try{
// create and open a connection object
conn = new SqlConnection(string_conn);
conn.Open();
SqlCommand cmd = new SqlCommand
("Proc", conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@id", 1));
SqlDataAdapter da = new SqlDataAdapter(cmd);
// I'm stuck here...what can I do to fill the Dataset?
// normally I would do this:
// DataSet ds = new DataSet();
// da.fill(ds,"TableName");
// but in this case, what can I do?
}
finally
{
if (conn != null){
conn.Close();
}
}
Also I'm not exactly sure how I can execute the procedure...I don't want a DataReader (so I can't use the ExecuteReader()), unless I can somehow convert the data received by the procedure to the DataSet....Any help would be great!
|
|
|
|
|
TechnoSpike wrote:
// normally I would do this:
// DataSet ds = new DataSet();
// da.fill(ds,"TableName");
// but in this case, what can I do?
Exactly the same (Although I never normally add a table name). The rest of your code looks acceptable.
TechnoSpike wrote:
Also I'm not exactly sure how I can execute the procedure
The same way as any bit of SQL. Using DataAdapter.Fill() , Command.ExecuteNonQuery() , Command.ExecuteScalar() or Command.ExecuteDataReader()
My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
You dont have to give the Table Name always
just specify the dataset object
da.fill(ds);
satish_sk
|
|
|
|
|
Hi All,
I am having one requirement for user selected color dropout in the image.
My requirement is that suppose user can load one image and select perticular part in the image and then press some button so my whole image should dropout that color from whole image.
can any body guide me how to do that?
montu3377
|
|
|
|
|
Hi!
What do you mean with "dropout"?
Each pixel with the selected color will be made transparent? Assigned a different color?
The class Bitmap has the two methods GetPixel() and SetPixel() you can use.
This will be quite slow, though.
There was a discussion on fast image processing not so long ago. Try searching the C# forum, you should find some helpful links and approaches.
Regards,
mav
|
|
|
|
|
Hi,
Yeah dropout means color filtering.I had successsfully filtered out the color from the whole image and it takes only 1 second so i am thankful to you.
Now another requirement is that i have to filter the color as per user selected area.
like
here i am describing whole:
when user select a particular area by rectangle then my function should filter(dropout) that color from whole image.
This is my requirement,Now can u tell me how to do that ?
|
|
|
|
|
When the user selects a rectangular area, there can be several colors included. Do you want to filter all these colors?
mav
|
|
|
|
|
Yeah.You understood my point.
I have to filter all these colors,so by that i am providing user facility according to his selected color filtered from the image.
what is now to do?
|
|
|
|
|
Hi,
Yeh Actually when user select one rectangle area then i am planning to take the Averange R,Average G and Average B value and after storing all the value in some object ,i can compare with all pixels and remove color which are related to Averange R,Average G and Average B,so can you tell me is that logic work for filtering the image in user selected color filteration?
can you pls tell me is that work out?
|
|
|
|
|
How can write a program can get(read) text any where on screen at a position.
|
|
|
|
|
levgiang, is that you, now trying anonymously?
This topic has been discussed in this forum before[^], please try using the search function before posting.
mav
|
|
|
|
|
How many times are you going to ask this question? Better yet, how many times are we going to tell you that it's EXCEEDINGLY difficult and there is no reliable way to do it, before it finally sinks in? The answer is not going to change, so why keep asking the question?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I've heard that definition before. It's kind of startling to consider what trusted figures and institutions are rendered insane by that standard...
...door to door salespeople
...lots of executive level managers
...many organized religions
...whole humanitarian organizations
...the US penal system
...tier one technical support operators
Okay. That's enough examples. The definition is satisfactorily proven.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
...the average corporation
/\ |_ E X E GG
|
|
|
|
|
Hi
I need to convert a bitArray over to bytes, byte array.
Or write the bits out to file to be read again as bytes.
Any advise or help would be welcomed
Thank you.
|
|
|
|
|
Hi
Try this:
<br />
BitArray Bits=new BitArray(10,true);<br />
int ByteArrayLength=(int)Math.Ceiling(Bits.Length/8f);<br />
int CurrentByte=0;<br />
int CurrentBit;<br />
byte[] Bytes=new byte[ByteArrayLength];<br />
for(CurrentBit=0;CurrentBit<Bits.Length;CurrentBit++)<br />
{<br />
if(CurrentBit+1%8==0)<br />
CurrentByte++;<br />
if(Bits[CurrentBit])<br />
Bytes[CurrentByte]|=(byte)(1<<CurrentBit);<br />
}<br />
|
|
|
|
|
Thank you that is beautiful and simple, just what I needed.
|
|
|
|
|
Hi,
I'm changing jobs soon and my new boss likes me to become an 'expert' in Crystal Reports. So far I've only heard of it.
A quick look on MSDN pointed me from link to link to link, without any descent information. (I truly hate MSDN, I'm never quite able to find anything useful on it and it's always pointing me to other pages that has the information I seek (another link) )
Can anyone give me a good link or point out where to look for a good start?
(So I'm a bit prepared when actually starting)
tnx!
No hurries, no worries.
|
|
|
|