|
Hey thats cool, where did you get that info from, I haven't seen this one mentioned anywhere. Any idea if this stuff is in the March CTP drop.
|
|
|
|
|
Because I have the PDC bits of .NET 2.0 and VS.NET 2005 (being an MSDN subscriber).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I made a small bzip2 Managed C++ lib, here on CP. Simple, easy
|
|
|
|
|
That's cool leppie I didn't know about it, else might well have used that one instead. Now I am using SharpZipLib now - the class/method names are compatible with the buggy J# library classes.
BTW I presume you just wrote a wrapper, right? SharpZipLib seems to be fully managed code
Nish
Now with my own blog - void Nish(char* szBlog);
My MVP tips, tricks and essays web site - www.voidnish.com
Request - Could everyone who have in the past, posted on my personal forum on CP, be kind enough to delete all your posts please? I intend to start a personal non-technical blog there, now that it is RSSd and would very much like to empty the forum before I do so - because the posts that are there as of now are mostly test posts and posts that were made before we all knew it was a blog
|
|
|
|
|
Nishant S wrote:
I presume you just wrote a wrapper, right?
Yip, was gonna look into rewriting it in C# but never got around to it
|
|
|
|
|
I've got a Form that I created that has roughly 30 controls that I need to tab through. I set the Tab Index of each control accordingly, but the tab NEVER follows this order. I'm not doing anything fancy to the controls such as handling events. It almost looks like the form is tabbing through the controls in the order which I added them to the form. On a hunch, I even tried rearranging the initialization in the Component Designer Generated code so that they even appeared in the code in the correct order, but this still didn't help. Has anybody else ever had this problem? How can I take care of it? Would appreciate the help! Thanks
|
|
|
|
|
Set the tabindex AFTER you have added the tab page to the tab control
|
|
|
|
|
no no, it's not a tab control. It is a bunch of text and combo boxes that refuse to tab in the order I set the TabIndexes. Sorry for the confusion.
|
|
|
|
|
In Visual Studio .NET, use the View TabOrder menu item to set these. This should also change the order in which the controls are added using the AddRange method of their container control's Controls collection property.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you, I appreciate the response!
|
|
|
|
|
I'm writing an application at the time, an MP3 player (using DX9's AudioVideoPlayback class). I've got it fairly full-featured: ID3v1 and v2 tag reading, writing will come in the future (I use UltraID3Lib for this); playlists; shuffle and repeat, etc.
I've got two small problems though:
My first one is that whenever I try to set the Volume property of the DirectX.AudioVideoPlayback.Audio class, it throws an error. Anyone know why?
My second invovles the playlist: it's a regular listbox, which I simply feed with filenames (with full paths, so that the audio class can know what to open) - I would like to be able to display ID3 tags here though - I was wondering if anyone knew an easy way for me to display ID3 tags, but have a hidden field of some sort that holds the path for that particular item. I don't know if I could maybe do this with a listView or not, but if anyone knows, please let me know. If it has to be done using owner drawn controls, I would really appreciate if someone wrote the code, they would receive full credit for it.
Thanks in advance.
|
|
|
|
|
SeveredCross wrote:
ID3v1
Have a look at my nBass article. It has a small class for v1, v2 OTOH is rather complicated.
|
|
|
|
|
I tried using nBass..It really never worked for me. No matter what, I couldn't get files to play...DX9 works fine for now.
About the error, I'll get back to you about it as soon as I reproduce it. I'm writing this right before I get ready for a shower and some well-deserved rest, so that'll most likely be tomorrow. (I know, I should've posted it, but my mind slipped)
|
|
|
|
|
Why don't you tell us what error you get? Do you simply tell a doctor that you have a pain without saying where? How do you expect us to help you if you don't even say what exactly is wrong? There could be many reasons you're having problems. An exception type and message would definitely help.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
I noticed in an app sample that it uses an CustomersDataset.xsd file to create its datasets from it. Now in this xsd file is like a customers table with elements in it and also another table with the name of the xsd file as it's title with a ref=customers. This table is linked to another customers table. So there is two of the same customers tables in this xsd but only one is linked to the table with the ref. What is happening inside this xsd file. I noticed in code also that a procedures signature is defined as "CustomersDataset GetCustData()". That's it no public or private in front. How come this isn't throwing an error?
Thanks,
JJ
|
|
|
|
|
MrJJKoolJ wrote:
What is happening inside this xsd file.
You will have to read up on how XML Schema works (have some headache pills handy).
MrJJKoolJ wrote:
That's it no public or private in front. How come this isn't throwing an error?
WHy should it be throwing an error? type members by default are private , while namespace members are internal by default.
|
|
|
|
|
Hi,
I have a problem with creating a diffgram dataset. My connection to database is limited so when I'm not connected to database I need to create a diffgram dataset. But if I'm disconnected how can I get the scheme source for the dataset? I guess I need this in order to create a diffgram dataset. How should I approach this issue?
Thanks,
JJ
|
|
|
|
|
Create a typed DataSet . You can do this programmatically, but it's better and easier to use either the xsd.exe tool that ships with the .NET Framework SDK, or Visual Studio .NET. Right-click on your project or project folder and select Add New-<Add New Item. Select a "DataSet" from the list of choices and give it a name. Create your tables, fields, keys, and relationships. If you have a database connection in your Server Explorer, you can even drag and drop tables and views from it into the design surface for the DataSet . This is documented in the Visual Studio .NET Product documentation, but it's not hard to figure out. Just experiment.
Once you have a typed DataSet , you have the schema. The schema is what created the typed DataSet . This also gives you typed access to tables and columns, which is must faster than using indexes or names (names of columns and tables can be very slow for look-ups). Because the classes derive from DataSet , DataTable , etc., they have all the same functionality as their parent class but imply a schema.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Ok this is a Mobile app that doesn't have typed datasets. I was thinking of creating a typed dataset in a dumby Win project and move the xsd file that I create into the mobile app directory and add to project that way. Then I could just call the xsd file for the schema of the diffgram dataset. How does this sound to you?
Thanks,
JJ
|
|
|
|
|
So create a typed DataSet . It's just a class - nothing special. If the .NET CF designers don't support creating one, then make one in a Windows Forms application (like you mentioned) and literally move the source file to the mobile app. It should still compile since, IIRC, all the classes and members used to create a typed DataSet are supported by the .NET CF. If a particular member isn't supported, remove it or re-code the functionality. It's not magic - just a generated source file that extends certain classes in the System.Data namespace. After that, you can forget the XSD file.
Another approach is to create an XSD file and load it into a new, instantiate DataSet using the ReadXmlSchema method. The former approach will result in faster look-ups, however, since even a "simple" column lookup for a particular row goes through several steps to get the corresponding DataColumn . If you use a typed DataSet and instead refer to that DataColumn derivative, you forego all those extra look-up steps.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
Does anybody know the method of drawing 3D piechart? I mean only the 3D depth part.
Example[^]
I already have a piechart drawn, and tried to draw the 3D depth by drawing the dumplicated piechart along the Y axis with darker color serval times underneath the top piechart. but the result is not right. see my piechart here[^]
I also took a look at the code from http://www.codeproject.com/aspnet/webchart.asp[^] without success.
I hope I can solve this problem soon, and post this project to CP.
Thank!!!
|
|
|
|
|
// I'm using Visual Studio C# and the 'EmailMessage' class. Here you see me attempting to retrieve data
// from: newDataSet1 (dataset), Settings (table), SmtpServer (data column) and convert ToString (strSmtpServer)!
// However what I have below retreives the DataColumn name and NOT the actual data (ie... smtp.yahoo.com).
// I feel I'm so close is scarry...
//Create the SMTP object using the constructor to specify the mail server
string strSmtpServer = (newDataSet1.Settings.SmtpServerColumn.ToString());
SMTP smtpObj = new SMTP (strSmtpServer);
//Send the message
smtpObj.Send(msgObj);
// Have mercy on this newbie and help...
|
|
|
|
|
You need to refer to the row data - not the column:
string smtpServer =
newDataSet1.Settings.Rows[0][newDataSet1.Settings.SmtpServerColumn]; This gets the value in the first row under the SmtpServerColumn (you can also use the name or 0-based index, although using the DataColumn instance will be faster).
I suggest you read the documentation for the DataSet class and related documentation. If you're not familiar with this stuff, simply guessing won't teach you anything. Reading the documentation will help, and may be present you with some alternatives in order to do things more efficiently and with less development time.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
With making an arrays of Structures in C# .net, I have these questions:
How do I create?
How do I declare
How do I instansitate
How do I use it?
I have learned in C++ 6.0 how to such a thing and where should I place the array of structure?
Help ASAP and I have found this article named "Quick C#" on this site.
Sincerley,
ProgrammerA
Email me Please!!!
No foul language
Programming, Hardware, Software, Information System security, and OSs.
|
|
|
|
|
Well, you don't have to instantiate a struct, correct? So you should be able to just get away with this:
MyStruct[] structs = new MyStruct[100];
Remember that structs are value structures, so to change values on structs in your array, access the array by index each time unless you pass one by index into a method using the ref keyword. It'd be simplest to just access values the same way:
<br />
int i = structs[10].Data;<br />
-Jeff
here, bloggy bloggy
|
|
|
|