|
Hi I am fairly new to C# too. You can find help in the page in the C# section or just Google C# tutorial. "C# Station" was a big help at the beginning. Maybe you cannot implement the code because most examples and tutorials were written using C# 2005 I recommend you download and use that version at least while you learn the basics. 2008 is not much different but most of the code material was written in 2005 version.
|
|
|
|
|
Hi,
you seem to have two issues here. One is a new language, the other Windows programming.
IMO a language is best learned by studying an introductory book or tutorial on the language;
that way you get all the basic elements presented in a logical order, with examples and rationale.
You can get a good feeling for a language in a matter of say two weeks with a book and some experiments;
this of course depends on your background. Then start reading some articles on sites like this one.
Windows programming is a lot trickier; there sure are books that may help you with that too, but
I am afraid there is a much longer learning period. Tooltips are OK, not quite straightforward though.
Transparency is really tricky. I have been a Windows programmer for 20 years now, but I would
not volunteer explaining how transparency works (also due to the fact that I'm not that interested in it).
Hope this helps.
|
|
|
|
|
Cool you are new to C#, may I suggest you try simpler tasks first.
viciouskinid wrote: how do you apply the source code to a new project to implement the SkinTooltip control.
You can either compile it as a dll library and reference it, I did this earlier. Or, you can add a source file to your project and just add it in.
viciouskinid wrote: Can someone either let me know a good place to go and learn or even give me a bit of a walk through.
You came to the right place, this site is loaded with a lot of good help
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all,
The application I developed takes some memory while doing its processing.
The memory only grows if the app is kept idle. But when I minimize it, the memory suddenly diminishes.
How can I free the memory without minimizing the window?
Please guide.
Thanking you!
|
|
|
|
|
Just after posting this question, I came across this site:
http://www.itwriting.com/dotnetmem.php[^]
Thanks to this forum where I got to this site.
Any further expertise would be great though.
Thanking you!
|
|
|
|
|
Hi,
I'm in desperate need of help. I'm very new to C# and have only limited exposure to ASP.NET. I'm developing a win form application.
Basically, the user clicks a button and imports a text file into a sorted checkedlistbox. That works so far.
The text file will hold a list of IDs that need to be retrieved from a table in my DB. I have a stored proc in the db that does the same but when I ran that via GetStoredProcCommand, I'm getting 'Array out of Bounds' exceptions.
I've tried GetStoredProcCommandWithSourceColumns, GetStoredProcCommand, ExecuteReader, and AddInParamter, all of which won't work. I know I'm making it harder than it really is since I'm also using VS2008. If stored procs won't work, I will settle for a regular select * from table where user = CheckedlistBox.CheckedItem as well. Once I have the users I need to work with, I have several stored procs that should be run depending on the what control the user clicks. I just don't why it's not working trying to run a simple proc. Thanks in advance for your help.
I've read, read, and researched every place I could before posting here as well.
Code below
//code to load/process IDs (from import to checkedlistbox) with a stored proc in a sybase table
private void ProcessListbutton1_Click(object sender, EventArgs e)
{
try
{
//open up database connection
Database _db = DatabaseFactory.CreateDatabase();
foreach (object sysuser in CheckedListBox1.CheckedItems)
{
DbCommand cmd = _db.GetStoredProcCommand("sp_ust_user_retrieve");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message) ;
}
-----------------------------
//import text file into Checkedlistbox
private void Importbutton1_Click(object sender, EventArgs e)
{
this.checkedListBox1.Items.Clear();
//this.checkedListBox1.GetItemCheckState();
OpenFileDialog Open = new OpenFileDialog();
Open.Filter = "Text Document|*.txt|All Files|*.*";
try
{
Open.ShowDialog();
StreamReader Import = new StreamReader(Convert.ToString(Open.FileName));
while (Import.Peek() >= 0)
checkedListBox1.Items.Add(Convert.ToString(Import.ReadLine()));
}
catch (Exception ex)
{
MessageBox.Show(Convert.ToString(ex.Message));
return;
}
this.checkedListBox1.BeginUpdate();
for (int x = 0; x < 0; x++)
{
this.checkedListBox1.Items.Add(x.ToString());
}
for (int x = 0; x < this.checkedListBox1.Items.Count; x++)
{
this.checkedListBox1.SetItemChecked(x, true);
}
this.checkedListBox1.EndUpdate();
I've tried databinding directly from the checkedlistbox and it returned all rows in the table - and overwrote what I imported. I only need to return rows from that table that are checked.
I hope this was clear. If not, please be patient with me and I will post whatever is needed. 
|
|
|
|
|
[rant]There you go using those bloody build in data management thingies, why does MS do this all the time, if you feed a newbie a GetStoredProcedureAndMakeItWork widget how are they expected to learn to actually work with a database.[\rant\
Please do the following. Learn what a Data Access Layer (DAL) is. This will sit between your code and the database (you need to write or snaffle one). This should be the tool you use to manage the data. Most developers will then use an Object Relationship Map ORM (often a table) class to represent your data. Your orm gets the data from the DAL and you can bind the orm to the UI in 2008.
This way YOU manage the data, you understand the ins and outs of the data not some black box in VS.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I wasn't looking for a sarcastic answer but rather a real suggestion of what I should/shouldn't be doing to guide me in the correct direction.
If anyone can help, please reply. Thank you.
|
|
|
|
|
And you wonder why after 24+ hours you have no helpful supportive answer. Most "developers" will not be able to help with these MS supplied tools, simply because we don't use them. As for a senior dev pointing you in this direction, I would suggest the 5yrs may have been wasted.
The description of a DAL was meant to be helpful not sarcastic. Because of your moniker and the quality of the question I assumed you had no idea. Then again if you iknow what it is why ae you using the MS widgets to do your work!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: I assumed you had no idea.
Safe assumption
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
And also, the previous code for that was suggested by a Sr. colleague who's been doing .NET deveoplment for at least 5 years now. He obviously knows what a DAL is and so do I. Rather than insulting him, I thought I would look here first because someone could provide
some guidance. Thanks. 
|
|
|
|
|
Hi,
I had written a webservice.Now I need help to accompolish the following goals..
1.How to host the webservice?..since this i have to use in windows application.
2.How to consume this webservcie through the C#.net windows application.
My task is to write the Webservice,using this I will pick some data and that data I have to pass to a windows application/windows service where I will update the database.
|
|
|
|
|
... and don't cross post either - see C#
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi everyone,
I have written an application in c# .net 2.0 where i can convert a word2007 document to a pdf file...
But now i have to do the same thing for word2003 and i dont wanna change alot on my code. Coz the reference i add it is for office 2007 and if i remove it nothing works obviously...so i just want to add another reference for 2003 and include a method.
Is there anybody out there
who did this already? Please let me know if anyone can help me out!!!
Thanks n regards argun
|
|
|
|
|
Have you looked at any third party components? You may want to google around and I am sure something comes up. Better yet, do an article search on this site, I recall seeing an article using OpenOffice to generate pdf files in C#/VB.NET...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi Paul,
Well ya that is the problem i cannot look for a third party, to keep the cost low. And well i guess i have to google around to find the answer. Or like the good old times do it urself
Thanks anyway but ya still would be great if there is a solution for my problem out there.
|
|
|
|
|
Argunsun wrote: i cannot look for a third party, to keep the cost low
I hear you.
Generate PDF From C#[^] is the article I think I mentioned a little while ago. Worth looking at
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
please i want to create a AVI or WMV clip from a set of bitmaps images, i
am useing vb.net 2003 can any one help thanks.
Mohammad Al Hoss
|
|
|
|
|
You will have to resort to a third party SDK, their is no such capability in .NET. DirectX would be my suggestion.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
|
Hi,
I'm trying to find out if this is possible, and if so how to do it. From a machine running XP or Vista, as I understand it, when you send something to print, Windows/the print drivers render the file into a format the printer can read and understand (a spool file?). This file is sent to the printer then the local copy is deleted. I believe this file is held briefly in the 'C:\WINDOWS\system32\spool\PRINTERS' folder, which is effectively the shared print queue folder. for all printers on that machine.
My question is whether you can capture this 'raw' spooler data (I've managed to copy and paste to capture the files that appear in the spool folder, but you have to be fast!), and crucially, once you've captured it, can you then somehow send it to print again?
I have a feeling this is more complicated than I think. Presumably there are different formats of spooler data etc? Is there a utility that can do the printing/viewing of captured files?
|
|
|
|
|
I don't know wht is user control and custom control in windows form
If anybody knows this concept plz explain with example and difference between both
Regards,
Ashwini
|
|
|
|
|
Hi Ashwini,
"Custom" Controls: Controls that display UI by making calls to a Graphics object in the paint event. Custom controls typically derive from RichControl. A Chart control is an example of a custom control. There is limited design time support for creating custom controls.
"User" or Composite Controls: Controls that are composed of other controls. User Controls derive from UserControl. A control that displays a customer address using TextBox controls is an example of a User Control. There is full design time support for creating user controls using the WinDes application."
For information on User Controls and Custom Controls for WebForms, please refer to this [^] Link.
Hope this helps.
Vinay
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
|
Where are you getting RichControl? Or do you mean UserControl? I have never seen a RichControl in .NET before.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|