|
You can't edit initializeComponent, the designer *generates* this code for you. InitializeComponent is called by your load method, you can add your own code either before or after the call. Search your code for InitializeComponent, and you'll find it easy enough.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes, but this is not the whole truth..
in a System.Data.DataTable we don't have the load method (only in controls as Forms etc.).
If I add some code in the InititializeComponent and change some propertis in the property sheeet, the designer removes my code from the InitializeCompoenent.
My issue is to get designer not to remove my code.. -Or get it to execute allso my method automatic at design time as it execudes the InitializeComponent.
|
|
|
|
|
Besinci wrote:
in a System.Data.DataTable we don't have the load method (only in controls as Forms etc.).
Sure - a DataTable doesn't need one.
Besinci wrote:
My issue is to get designer not to remove my code..
Not possible
Besinci wrote:
Or get it to execute allso my method automatic at design time as it execudes the InitializeComponent.
Also not possible. The best you can do if it's a control is put it in the constructor, because a control is constructed and initialised to be shown in your form.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No it's not a control -a DataTable.
- Do you have any suggestion on how to implement a custom DataColumn, inheritet from the System.Data.DataColumn
so that the designer is able to work on my custom DataColumn ?
- Or how to inherit from System.Data.DataColumnCollection and implementation of the inheritance??
thx
|
|
|
|
|
Hello Experts,
is there a way to write an audio CD from wave files, then rip the tracks and get the originals wave files again?
When I write a wave file of 14,323,726 bytes onto an audio CD, the track's size is 14,321,328 bytes. The size of the ripped file (done by CSharpRipper) later on is 14.321.374 bytes.
14,323,726 - 14,321,374 = 2,352 = Where did my 2.352 kB go?
Assuming that the loss was only caused by some kind of padding at the track's end, I tried to work with the ripped wave file, but my app (which is supposed to find certain samples in the data chunk) crashed:
The raw wave data of the new file was different from the raw wave data I wrote onto the CD!
I'm no expert regarding the Redbook standards, I just have to know why the waves get changed while burning to disc, and if/how I can burn/read lossless CDs.
Thanks in advance,
coco
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
If you compare the files, how are they different ? Are they the same length (i.e. in seconds ) ? Are the wave files at the same bit rate ? Do they sound the same ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christian,
the files are same length in seconds, but not in bytes.
To be sure there's nothing wrong with my recording programs, I recorded the same wave file with "NTI CD & DVD-Maker" (not normalized), and then copied it back to harddisk with "MusicMatch Jukebox" and "CSharpRipper" (both, not normalized).
Original file: 14.323.726 bytes
File recorded by Jukebox: 14.325.780
File recorded by CSharpRipper Demo Application: 14.321.374 bytes
AudioGrabber says, the track length is 14.323.680 bytes, which comes quite close to the expected size plus wave header, but it refuses to read from my CD drive.
I have another wave file which originally was 16.718.062 bytes.
Jukebox re-recorded it to an 16.720.116 bytes file.
CSharpRipper re-recorded it to a 16.715.710 bytes file.
For both re-recorded wave files, the beginning of the data chunk is not binary identical with the audio data in the original files, even though they sound the same and seem to have the same duration when played.
Thanks,
coco
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Hmmm.... If the bit rate is unchanged and the length is unchanged, then perhaps CSharpRipper is somehow sampling the data, as opposed to reading it directly ? Either way, if the file sounds the same in every way, is this a real problem, or just an annoyance ?
Hell, if it gets smaller every time, you could move it through the process over and over, and call it audio compression !! :P
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
if the file sounds the same in every way, is this a real problem
As I try to do this[^] with the waves and burn a "stegno disc", it really is a problem. Anyway, if I don't find a solution this week, I'll
switch over to this method[^].
Christian Graus wrote:
call it audio compression
It might be interesting to find out how many burn/rip cycles you need until the difference can be heard...
Thanks for you time,
coco
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Were the tracks normalized when they were written or ripped back?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No, they were written and read unchanged.
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Hi, Sir and Madam
How many rows a table in SqlServer can contain?
Sorry for bad English
Thank You.
|
|
|
|
|
The limitation would probably be the size of the disk where the database is stored.
There is no problem storing several million rows, though.
---
b { font-weight: normal; }
|
|
|
|
|
I have a little question regarding WebRequests i hope you can help me with.
I'm using a WebRequest to download some files from a remote server. Since these files can be quite big, i wondered if there's a way to "follow" the progress of the file transfer?
Regards
|
|
|
|
|
You can try if reading the response as a stream enables you to get the response as it arrives. I'm not sure if the entire response is recieved before the GetResponse method returns r not.
Here is an example from MSDN:
WebRequest myWebRequest = WebRequest.Create("http://www.constoso.com");
WebResponse myWebResponse = myWebRequest.GetResponse();
Stream ReceiveStream = myWebResponse.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("utf-8");
StreamReader readStream = new StreamReader( ReceiveStream, encode );
Console.WriteLine("\nResponse stream received");
Char[] read = new Char[256];
int count = readStream.Read( read, 0, 256 );
Console.WriteLine("HTML...\r\n");
while (count > 0) {
String str = new String(read, 0, count);
Console.Write(str);
count = readStream.Read(read, 0, 256);
}
Console.WriteLine("");
readStream.Close();
myWebResponse.Close();
---
b { font-weight: normal; }
|
|
|
|
|
Thanks! i will try to experiment with that!
|
|
|
|
|
Hi,
Hi,
is there any way, to organize files in a VS .NET project other than the way VS does it? I want to habe a seperate folder for my *.cs files and another one for the project files like *.proj and *.sln. When I create these folders on my hardsisk and move the source and project files accordingly, set the new locations in VS, then VS copies them back into the old directory.
Any solution to this? This was easy in visual studio 6.0 but I don't know how to do in in .NET.
Second question: When i have some local source files and add some external references to my project optione (i.e. source files on a server), vs doesn't seem to recognize them when i want to use their namespace. When I add them via "add - existing item", vs automatically copies them to my project folder, but I want them to be only on the server.
|
|
|
|
|
Solution 1: Create Folder in your projetc and keep your .cs files in that folder. Right lick on project and select "New Folder"
Soultion 2: Create an assembly of external classes and install in GAC. Now, you could access the code without copying to local directory.
Sanjay Sansanwal
www.sansanwal.com
|
|
|
|
|
Hi,
Does anyone know how to copy rows from one datatable to another?
What I want to do is combining the rows from many datatable
into one.
Thanks in advance.
|
|
|
|
|
You should write a program that connect tp database and choice the table to copy by using While NOT EOF to insert to another table
Nothing
|
|
|
|
|
Is there a way to hide the row indicator arrow in a DataGrid?
|
|
|
|
|
U can remove that column in the datagrid itself by playing with the TableStyles...
tableStyleObj.RowHeadersVisible = false;
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
I have a form with a datagrid. I am setting the datasource of the grid and with query that returns 4 columns. How can I control the datagrid column widths so that I can fill the entire datagrid region instead of having a large blank space at the right of the columns due to their widths are less than the datagrid width?
|
|
|
|
|
You will have to redesign the TableStyles for the datagrid and re-apply them... Check for TableStyle related examples
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
I want to create error logger file which will contain every error message, file name, method name and line number this is first
Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me
i want to know also microsoft error categories
|
|
|
|