|
yeah I fell for it hook line and sinker. doh
Wish I knew of a really good advanced c# book though
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Well, everyone in CP recommends Inside C#. Personally I haven't tried the book yet ,but that Tom Archer bloke seems smart enough
Ista wrote:
I'm not an expert yet, but I play one at work. Yeah and here too.
Hey, me too. Just hope my boss and the people taking my advice doesn't find out.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Hi! I suggest you try ebook versions of both books.
I actually have ebook versions of Inside C# 1st edition
and Programming C# 2nd Edition. Although I haven't
read them all, Programming C# provides a clear explanation.
But I didnt buy any of these books coz its expensive here.
"To teach is to learn twice"
|
|
|
|
|
C# Unleashed, Sams
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
Would anybody know how to individually refresh propertyGrid items. My test is to use a timer to call propertyGrid1.Refresh() where one of the items (properties) is a string from DateTime.Now.ToString(); This does work except when you edit other properties and the current edit seems to get erased/reset.
of course this is understandable when using the Refresh(); so what I need I think is just to tell the DateTime property to refresh itself.
Knowing you code gurus out there, Im sure that there is a method Im overlooking.
Cheers
|
|
|
|
|
hello
can anyone tell me, how to code a custom PropertySort for a propertygrid?
maybe there is another better solution for my problem,
but i think it is the only way.
my problem: i have a class named person with different properties and so on.
i use this class as objekt for a propertygrid,
but the problem is, that the categories are sorted alphabeticaly,
but i want an own sort. i changed PropertySort to "NoSort", but it did not help.
can anyone help me?
thx
cya
|
|
|
|
|
I am wondering is it ok that reports (crystal reports) works slower when you report from dataset???
I am asking becouse when I report from ADO.NET dataset, reports open very slow, but when I report from database (SQL) directly - it works faster!!!!
thanx
|
|
|
|
|
That may not necessarily be the case.
They should not be slower in theory
But crystal reports has a bug in that if a fields gets corrupted it lags bad
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I just made a simple application with two reports where first one uses dataset and second one connects directly to database. Second one works much faster! (
|
|
|
|
|
I have a ASP.net application written in VB.Net which is the main application. I have another ASP.net application written in C#. I want to integrate the C# project files into the VB.net project ( without having to convert C# code to VB.net ) . The C# project contains few aspx pages and couple of C# utility classes.
What would be the best way to integrate the C# files into VB.net project and run these successfully within the VB.net app?
Thanks
Madhuri Mittal
|
|
|
|
|
The short answer is that you can't have C# files in a VB.NET project.
I'd recommend either writing your C# into VB.NET for inclusion in the VB.NET proj, or componentise the C# code into a .dll that you can reference from the VB.NET proj.
You could also expose the C# code as a webservice. It all depends on what the aspx C# files do.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
SimonS wrote:
The short answer is that you can't have C# files in a VB.NET project
uhh, no. Actually you misread his question. No you can't have vb files in a windows or console application but YES you can inside a web application You just redirect the file pointer at the top of the aspx page,
You can have many different files including java files in there. Although .net transforms it into J# and is utterly useless with J2EE at that point.
Just go to add existing item and add the code behind. Then at the top of your asp page change the finlename it points to and thats all there is to it.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I have a ASP.net application written in VB.Net which is the main application. I have another ASP.net application written in C#. I want to integrate the C# project files into the VB.net project ( without having to convert C# code to VB.net ) . The C# project contains few aspx pages and couple of C# utility classes.
What would be the best way to integrate the C# files into VB.net project and run these successfully within the VB.net app?
Thanks
Madhuri Mittal
|
|
|
|
|
just add the cs file and the top of the aspx page redirect it to that file
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Hashtable approval = new Hashtable();
//then I added some keys to it and set the value to ""
//I need to set its value to "" again by below foreach
foreach( object obj in approval.Keys )
{
approval[obj] = "";
}
//But it said that "Collection was modified; enumeration operation may not execute."
//Pls help me to make this possible. Thanks a lot for your attention.
|
|
|
|
|
MSDN - foreach:
The foreach statement is used to iterate through the collection to get the desired information, but should not be used to change the contents of the collection to avoid unpredictable side effects.
MSDN - Hashtable.Keys Property:
The returned ICollection is not a static copy; instead, the ICollection refers back to the keys in the original Hashtable. Therefore, changes to the Hashtable continue to be reflected in the ICollection.
An alternative approach could looke like this:
Hashtable ht = new Hashtable();
ht.Add("one", 1);
ht.Add("two", 2);
ht.Add("three", 3);
ht.Add("four", 4);
ICollection keys = ht.Keys;
object[] copiedKeys = new object[keys.Count];
keys.CopyTo(copiedKeys, 0);
foreach(object key in copiedKeys)
{
ht[key] = "";
}
Alexandre Kojevnikov
MCAD charter member
Leuven, Belgium
|
|
|
|
|
Thanks a lot. It is a good idea.
|
|
|
|
|
I need access to the parallel port, but as far as I can tell it isn't possible.
But, in c/c++ it's really easy...
Now, I want my application to be in C#... so would I be able to make c or c++ library and be able to use it in my C# app?
I already tried the NTPort library. But it costs money and it has alot of features I don't even use in it...
I have no clue how they get it to work...
So, is a C/C++ library (DLL) possible? Or, is it just possible to do it straight though C# in some werid way I haven't found???
/\ |_ E X E GG
|
|
|
|
|
Yes you can use C++ functions from C# as long as they are exported from your C++ DLL.
The function prototype in C# will look like this:
[DllImport("my.dll")]
public static extern int MyFunction(string param1, int param2);
You can check this MSDN arcticle for details:
Consuming Unmanaged DLL Functions[^]
Alexandre Kojevnikov
MCAD charter member
Leuven, Belgium
|
|
|
|
|
Ok, thanks.
I'll look into it.
/\ |_ E X E GG
|
|
|
|
|
|
how to write any string into bottom of ActiveDocument in Add-in Project??
somebody can help me?? please!!!
Thanks
Nho'c Ti`
|
|
|
|
|
Hi Guys & Girls,
Just want to know if any of you have had issues with using the axWebBrowser control in VS2003. When I place this control on a tabpage that does not have focus when the form loads the axWebBrowser control does not repaint. It causes a blank area on the screen.
Any ideas what this could be? I'm totally screwed over by this one.

modified 30-Aug-22 21:01pm.
|
|
|
|
|
Do you navigate the WebBrowser to any page in the form's load event? If you don't it wont actually do anything. Try this:
Object obj = null;
axWebBrowser1.Navigate ("http://www.codeproject.com", &obj, &obj, &obj, &obj);
- monrobot13
|
|
|
|
|
I know that in C# you can't directly inherit from two different base classes...
(1) (2)
\ /
\ /
(New Class)
but can you indirectly inherit from two different base classes?
(1) (2)
\ /
\ /
(3)
|
(New Class)
I'm wanting to have the same base class for both forms and controls.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|