|
Knowledgestudent wrote: after correcting every thing in the code , it started ,
Glad to hear it.
Knowledgestudent wrote: open a form it refuses to start
Might it be waiting for the opened form to close?
|
|
|
|
|
Stuart Celarier of CheckFree and I explore the new languages features in C# in a series of screencasts on Channel 9. Each is a whirlwind tours of the important language features since C# 1. Stuart describes the feature and why it is useful. But he doesn't get into best practices nor suggested usages. Just the facts about the feature.
Whirlwinds are bite-sized webcasts, each is shorter than 15 minutes. You can start anywhere in the series to learn about the parts you're most interested in.
Part one of the eight-part series has been posted Whirlwind 1: What's new in C# 2 - Generics[^]
In Part 1 about generics, Stuart describes:
- What generics are.
- How generics compare with collections.
- How the compiler treats generics.
- How generics increase performance and save memory.
This feature is part of C# 2 in .NET 2.0.
The remaining seven installments will be posted to Channel 9 over the next few weeks.
|
|
|
|
|
Version 2.0 of the .NET Framework has been available now for almost 3 years.
Is this a new definition of the phrase 'new language features' that I hadn't previously been made aware of?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Nothing like keeping up with technology and giving us cutting edge information.
Can we expect to see something on LINQ around 2011?
only two letters away from being an asset
|
|
|
|
|
Hi,
I have a project mixed with C++ and C# in VS 2003.
I tried to debug into the C++ code. but it never stop at any break point.
I use CoCreateInstance to create the C++ object (C# call a c++ library #1 -- managed C++, lib #1 call CoCreateInstance to create the final object). I want to step into the function call to that object. I have the source code for all the C# and C++ projects.
I set the "Enable unmanaged debugging" to true and also "allow unsafe code blocks" to true already. but it I can debug into library 1 only!!
does any one has some idea about this!!!
Thanks a lot in advance!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Small Rat wrote: I have the source code for all the C# and C++ projects.
You have them all included and compiled in the Solution you are debugging from?
led mike
|
|
|
|
|
yes, all the projects are in the same solution. and I can compile it and run it. all the existing functions work fine. I want to add some new funcitons, so I need to debug into it!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Hi,
Problem:
I'm using C# 2005. The data type of the bitmap file saved to database is "long binary data". It should be "OLE Object".
Source Code:
Bitmap myBitmap = new Bitmap(@"c:\Picture1.bmp");<br />
OleDbConnection conn = new OleDbConnection("<<My Connection String>>");<br />
conn.Open();<br />
string sql = "UPDATE Table1 SET fldOLE = @fldOLE WHERE fldID = 5";<br />
OleDbCommand command = new OleDbCommand(sql, conn);<br />
command.Parameters.Add(new OleDbParameter("@fldOLE", myBitmap));<br />
int rowsAffected = command.ExecuteNonQuery();
Question:
How can I save Bitmap to database with data type "OLE Object"?
Thanks in advance
|
|
|
|
|
The data types of your DB are set when you create the table, not when you insert data into it. If you read here[^], you'll find how to get the info you need. If you look here[^], you'll find that this works.
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,
Any one suggest me how to call a static method inside a class. I am having a class named as user in my project. i want to call the user type method which is declared as public static....................
In my aspx page i created an instance and trying to call the method. But it list all the method expect the method with static.
How to call it, please suggest me.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
You don't need an instance for static methods.
class User
{
public static void Foo() { ... };
}
call:
User.Foo();
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I suggest doing a bit of reading on C#. Or some googling. If you did any reading at all on what a static method is, you'd have found your answer, and it's obvious you don't know, so you should move beyond solving your immediate problem, and understand what static means, and what it's used for, so that you move forward in learning the basics of C# and OOP.
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 )
|
|
|
|
|
Thankyou very much..
ya you are correct i have to learn opps and c#. I will do that,.
Know is Drop, Unknown is Ocean
|
|
|
|
|
Hello, i´m very novice with Visual C#. I want to make a player that can establish marks points of start and end on a video to save a subclip, for example I have a video of 10 minutes, and i want a subclip that go through minute 2 to minute 5, it would be a subclip of 3 minutes, and i want to save this subclip. I maked a player with AudioVideoPlayback with DirectX SDK. Is it possible to make a video player that can establish marks points using DirectShow library without the AudioVidePlayback or i have to use both, or i have to use another differents libraries or anything else?
Sorry about my english, I´m Spanish.
Thanks a lot.
Regards.
|
|
|
|
|
xraziel wrote: i´m very novice with Visual C#.
xraziel wrote: I want to make a player that can establish marks points of start and end on a video to save a subclip
This doesn't really add up. I assume that you're not writing for a paid project and therefore a library like the tvideograbber from datastead is out of the question. That being the case, this task is probably beyond you, there's no built in support AFAIK, and you'd need to write a far amount of DirectX code. Learn C# first.
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 )
|
|
|
|
|
I am getting a double icon when I maximized a child window, I don't want this to happen, it looks terrible. Anyway to prevent this?
Unmaximized
Maximized
This is what happens if I start the child form maximized... THREE close buttons?!
Crazy
Whats going wrong here?
|
|
|
|
|
I think there might be something wrong in way you make the form MDIChild! Can you post back how are you doing this? Other than that I cannot think of any other thing that would cause such problem
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
There is a method on the mdi container form to launch children.
public void ShowMdiChild(Form form)
{
Cursor = Cursors.WaitCursor;
form.MdiParent = this;
form.WindowState = FormWindowState.Normal;
form.Show();
Cursor = Cursors.Arrow;
}
|
|
|
|
|
Try this code:
<br />
<br />
Cursor = Cursors.WaitCursor;<br />
<br />
YourForm frm1 = new YourForm();<br />
frm1.MdiParent = this;<br />
frm1.Show();<br />
frm1.WindowState = FormWindowState.Maximized;<br />
<br />
Cursor = Cursors.Arrow;<br />
<br />
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
System.Web.UI.UserControl (a)
Inherited by BaseSelectClass (b) this is a class inheriting (System.Web.UI.UserControl) and has its ow few methods. So “a” is inherited in “b”• User Control : SelectBuilding (c) ( I have to create the control inheriting the said Class HAS to be inherited the BaseSelectClass. So “c” inherits “b” )
o In my control I have button with events to be fired. So I delegate them as following.
public delegate void SubmitClickedHandler(string strValue);<br />
<br />
public event SelectBuilding.SubmitClickedHandler SubmitClicked;
In the page load of the parent form I check if its not page load
Else<br />
{ SelectBuilding.SubmitClicked += new SelectBuilding.SubmitClickedHandler(SubmitClickedHandler_Submit);<br />
}
My standalone version of user control that inherits “a” directly works absolutely fine, but it halts in the above scenario. And I have to use the above method to use the User-Control. Could somebody please help me in understanding my mistake above.
P.S. Please feel free to call me if you have time and feel like you need more info.
Very Thanks.
Regards
Sandesh
sandesh27uk@gmail.com
Sandesh Kadam
Tel. No. +44(0) 1753-711936
Cell. no.+44(0) 7818203452
|
|
|
|
|
I have just started worrking with Visual C# and I have just begun to read/write from an Access database. The application I built with guidance from the book I am using brings up all records in a database where you can scroll through, etc. The problem i am having is when i add a new record - the book doesn't show me how to check to see if the record already exists before adding it. The functionality I'm using in this application is ADO.net. Here is a code snippet from the book if that helps at all. I apologiz if i'm not being clear but i am really new to all this. Thanks for any help you can give.
DataRow drNewRow = m_dtContacts.NewRow( );
drNewRow[“ContactName”] = txtNewContactName.Text;
drNewRow[“State”] = txtNewState.Text;
m_dtContacts.Rows.Add(drNewRow);
m_daDataAdapter.Update(m_dtContacts);
m_RowPosition = m_dtContacts.Rows.Count – 1;
Contacts is the name of the Access DB.
|
|
|
|
|
|
TO check if a record exists first you do one of two things
1 - write a stored proc to do your insertions that does the check first
2 - run the SQL to check before you try to do the insert
Of course, if you have all the records in memory in a datatable, you can iterate over it, and I believe you can query it with SQL, too.
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
I'm using Graphviz to generate some diagrams of code relationships within our source code.
I have managed to get passable results with the jpg output, but the font rendering was pretty poor, therefore I changed to svg which produced better images and had the advantage of being scalable.
The next stage of my project is to embed an svg viewer into my C# app using .net2.
Does anyone have any tips or examples I could use?
Many thanks
Paresh
Paresh Solanki
"To the world, you may be just one person, but to one person, you may be the world"
|
|
|
|
|
Well, IE is how you view SVG documents usually, so embedd the web browser control, which is just IE, and will come with the SVG plugin you have installed.
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 )
|
|
|
|