|
how i can understand ,which websites were opend
or
list of websites is open now
is this technology in winxp ?
thanks
micy c# program Developer
|
|
|
|
|
Hi
Any help would be greatly appreciated as I am very new to the .Net world. I was wondering if its possible to convert a string to an object - for example:
public void lala (string strReportName)
{
strReportName report = new strReportName();
report.SetDataSource(someDataSource);
//where the actual value contained within strReportName is
//a Crystal Report within my project
}
Thank you very much.
Linda
|
|
|
|
|
In the above example you are converting the string to a class name. This doesn't make any sense. However, you can create a Typeof Report from the crystal reports namesapce and then assign it using an if statement.
Report report = null;
if(String.Compare(reportName, "SomeReport") == 0)
report = new SomeReport();
To do it the other way would require reflection and is not a good solution in this case.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hi,
I am trying to create a setup program to deploy a .net 2 web app. When I right-click on the setup project and then go Add -> Project Output, I only see "Content Files" in the Add Project Output Group dialog box. Why do I not see the other options like "Primary output", "Localized resources", "Debug Symbols", etc.?
Any help would be greatly appreciated. Thanks in advance.
Regards,
|
|
|
|
|
Does somebody have any idea (or link) on How to customize the Serial Number Validation in a .NET Setup project?
Please don't tell me to look on the MSDN: I need something more than the % 7 method
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
|
Hello,
I want to create a control like a textbox additionally with a button inside. So i created a new class with base class TextBox. I wrote code into the constructor to create dynamically the button and position ist right-aligned. This works fine but the problem is that longer text is hidden behind the button. Is there any solution for this.
Using usercontrols is no solution because the new control should look as a textbox with all his properties and methods.
|
|
|
|
|
tabstop wrote: Is there any solution for this.
Of course there is, place the button to the side of the textbox rather than over it!
tabstop wrote: Using usercontrols is no solution because the new control should look as a textbox with all his properties and methods.
Thats a no-brainer. A usercontrol could have a textbox and button and then just wrap each property/method you would want and pass them through to the textbox.
for example (in the UserControl):
public string Text
{
get{ return this.textBox.Text; }
set{ this.textBox.Text = value; }
}
|
|
|
|
|
Or you could just expose the TextBox directly. Not good practice but I already question the value/validity of a button in a TextBox
|
|
|
|
|
Think about inputing a filename. You can enter the name directly or you can open another dialog to choose a filename. The button has the function to open another dialog depending of the context. The combobox has also the button inside.
We want to use these controls with normal textboxes, comboboxes and others together on one form. The alignment, the look and feel must be same for all controls. (Also the big boss has decided it.)
|
|
|
|
|
thank you for your answer.
i decided to use a usercontrol. There is one difficulty. The button must be inside the textbox and the entered text mustn't hidden by the button.
How to combine controls, that the result looks like one textbox with described features.
|
|
|
|
|
Hi im executing a sql command from my C# windows form.
Its a count command : SELECT [COLUMN NAME], COUNT(*) FROM [DATABASE] GROUP BY [COLUMN].
2 Columns load from the results, the column name, and the number of records (count).
How can i display these results in a C# windows form? Datagrid, large textbox?
Please help me on this.
|
|
|
|
|
|
This seems very long winded, is there another way.
|
|
|
|
|
You can easily displyed it with in DataGrid.
Just connect with database
Create DataAdapter (SqlDataAdapter da=new SqlDataAdapter(Command,Connection))
Create a Dataset (e.g Dataset Ds=new DataSet())
Fill DataSet With DataAdpter (e.g Da.Fill(ds))
And
DataGrid1.DataSource=Ds
Hope This will help
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|
|
I have tried this method, but did not display my count number results
|
|
|
|
|
why not ?
What error r u getting
|
|
|
|
|
You may need to Alias the count column to make it easier to identify in the resulting dataset... something like
SELECT foo, COUNT(*) AS countOfFoos FROM fooTable GROUP BY foo
|
|
|
|
|
Hello,
Hope you all are doing great. Does anyone of you know that how can I calculate bit rate of a stream? I am using c# and javascript. Please guide. Thanks.
Kind Regards,
Abubakar
|
|
|
|
|
What kind of stream? Download bitrate or playback bitrate?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
It is a playback bitrate and For a video stream.
I want to check bitrate of streaming whether bitrate is good enough to play the movie or not?
I still not clear plz ask again.
|
|
|
|
|
A Stream is only a sequence of bits. A rate means that something happens with the Stream.
For a video stream the bit rate is calculated from the number of pictures displayed per second.
For a network stream the bit rate is the number of bits transported per second.
For an audio stream you get the bit rate from the number of samples played back each second.
And so on and so on ...
What kind of bit rate to you need? Playback rates are usually stored in a header block. Network transport rates you have to measured at runtime.
____________________________________
There is no proof for this sentence.
|
|
|
|
|
The bitrate for the stream (assuming mpeg) will be contained in the frame header information for each frame. As for decoding the frames, I will have to leave you to the format specification,http://www.rfc-archive.org/getrfc?rfc=3016
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hi, i m building a html editor, all i want is how to insert a background image.
I have done it by replacing the tag with
but i wana somthing more professional... plz help me...
King
|
|
|
|
|
in which control do u want to image ? r can u kindly explain in details ?;)
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|