|
Does anybody have any advice on how to 'Step-up' my programming skills.
I have been developing apps for years but would like to get a little more serious about my development.
How do you gurus go about delving into the background of controls and functions? I am mainly used to coding my own stuff from scratch, but then I see a 'system' way of doing it in about 3 lines of code.
Any ideas on how to start delving into the depths of development?
|
|
|
|
|
LeeDaviesVBSource wrote:
Does anybody have any advice on how to 'Step-up' my programming skills.
static void Main()
{
StringBuilder yourName = "LeeDaviesVBSource";
yourName.Remove("VB");
return;
}
Seriously though, if you can, I'd go out and buy Inside C# (Tom Archer), Applied .NET Framework Programming (Jeff Richter), Inside IL (Serge Lidin), and Programming Windows with C#(Charles Petzold). They're all from MSPress. Another book to check out would be Essential .NET (Don Box) from Addison Wesley. These are some great books. Otherwise, just experiment. Find something obscure that you want to look at and go for it.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
What's the easiest way in C# to enumerate a systems
DSN settings ?
Thanks !!!!
|
|
|
|
|
hi,
beside a listbox,I put two buttons, one with up arrow icon, and one with down arrow icon.
I wish the selected item can be move up or down by pressing one of two buttons, for example,
there are 4 items in listbox, item1,item2,item3,item4, after selected item2, then press the up arrow button a time, the order become item2,item1,item3,item4, and if press the down arrow button three times,the order is
item1,item3,item4,item2.
and how can I do that?
thanks for any idea.
|
|
|
|
|
|
Hello all,
How can I specify two images for every button in a toolbar? One b/w image for normal mode and one color image for mouseover ? Just as we have it in Outlook Express. I can only assign a single image to each button So is it impossible ?
Thanks
Smitha
Whenever I see an old lady slip and fall on a wet sidewalk, my first instinct is to laugh. But then I think, what if I was an ant, and she fell on me. Then it wouldn't seem quite so funny.
|
|
|
|
|
I'm just curious, are there already simple but completed applications or games that use Managed DirectX?
|
|
|
|
|
|
I just posted a DirectDraw sample using C# and DirectX9. Its under the DirectX section.
Steve Maier, MCSD
|
|
|
|
|
Question: I have this function that I call all thoughout my code. 90% of the time it works without a hitch. But lately when debugging it will give me the same error every time when the function below is executed in a certain place in my code.
When stepping over the bold line listed below, I get this popup:
TITLE = Microsoft Development Environment
MESSAGE = There is no source code available for the current location.
So, I tried calling the exact function call a half dozen times in different locations working my way back up the callstack. Higher in the callstack I have no problem. But go down 5 or so levels and KAPOW!
FileInfo *FileGetList(String *filePattern)[]<br />
{<br />
FileInfo *fileList[];<br />
String *directory = filePattern->Substring(0, filePattern->LastIndexOf("\\", filePattern->Length));<br />
int pos = filePattern->LastIndexOf("\\", filePattern->Length) + 1;<br />
String *pattern = filePattern->Substring(pos, filePattern->Length-pos);<br />
DirectoryInfo *dir = new DirectoryInfo(directory);<br />
<br />
fileList = dir->GetFiles(pattern);<br />
<br />
return fileList;<br />
}
The strange thing is, if this were not strange enough, I can step over the DirectoryInfo constructor with no error but when I expand the dir variable in the watch window, 3 of its member variables read: error: cannot obtain value. It is then that I know that the dir->GetFiles() command is going to go nuts.
Is there a posibility that the DirectoryInfo class I am constructing is not allocating correctly? Am I out of heap space? Am I making a stupid beginners mistake somewhere?
Help
|
|
|
|
|
|
Sorry, This code is Managed C++. Just replace the -> with . and remove the * and its c#.
|
|
|
|
|
I have a windows application called X, I build it, and evidently I can run the executable X.exe.
But now, I build this application to a X.dll; and I want to load that X.dll from another application YYY.EXE, and start the X-application.
I tried in Y:
Assembly assemblyX = Assembly.Load("X"); // works
Type typeX = assemblyX.GetType("namespace + classname"); // works
MethodInfo methodinfoCOnstructor = typePlannet.GetMethod("?"); // ?
How can I start application X?
Thanks!
|
|
|
|
|
I just found it myself:
Assembly assPlannet = Assembly.Load("Plannet");
Type typePlannet = assPlannet.GetType("Conseur.Plannet.PlannetClient");
MethodInfo methodinfoMain = typePlannet.GetMethod("Main");
Object obj = Activator.CreateInstance(typePlannet);
Object[] args = new Object[1];
methodinfoMain.Invoke(obj, null);
|
|
|
|
|
I'm using ODBC to connect to an AS400 DB2 tables. I need also to get full information of each table, e.g. created date, last modified date, modified user Id, table actual size, etc?
Jassim Rahma
|
|
|
|
|
Can I have multi columns in a comboBox?
Jassim Rahma
|
|
|
|
|
Nope. You'd have to make a new class and then inherit from ComboBox. Then do OwnerDraw.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
If I have the following string :
CCCAABAAABC
and I neet to loop to replace all A to Z, all B to Y and all C to X. How can do it? can I have a sample code please?
Jassim Rahma
|
|
|
|
|
StringBuilder str = new StringBuilder();
str.Replace("A","Z");
str.Replace("B","Y");
str.Replace("C","X");
Hope that helps.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
Hi,
Our police department want to use the Win CE to allow the police me outside to check the status of a card or drivng license without calling the traffic department. I need to know the following please (note: this can be win or web application):
1. Do I have to connect to the Win CE to internet to get the data or I can connect to the police department network?
2. Any one can give his suggesstions on this plan?
Jassim Rahma
|
|
|
|
|
Several Police Departments are already doing this. I know at least one in Maryland, USA is - you'll have to search the net to find information on it but if you find an article I bet it would save you a lot of design work
As far as hooking to internet - that's probably the easiest way since so many 3rd pary hardware & wireless solutions exist. You can then send private Packets to the police dept servers. Not sure what you mean by or I can connect to the police department network?, if you mean private dial up into secure network, forget it I'd say - too slow & error prone. Just go through internet using secure sockets.
Good luck, and let us know how the project is coming along...
|
|
|
|
|
|
I'd say use the internet (using GSM or whatever the US mobile equivalent is), you'd need a big transmitter on you handheld otherwise - local wireless solutions are not powerful enough for city use.
secure sockets obviously and also make sure that it can't be abused eg - lunatic checking the name of good looking girl in car going by - so test test test and no real data available until you are satisfied.
Technically speaking the dictionary would define Visual Basic users as programmers. But here again, a very generalized, liberal definition is being employed and it's wrong - just plain wrong - Tom Archer 5/12/02
|
|
|
|
|
How can check the screen resolution of a system to make sure it's 800X600 and if not change it to 800X600 but change it back when closing without prompting the user to confirm?
Jassim Rahma
|
|
|
|
|
I don't know about changing the resolution, but to check it use Screen.
|
|
|
|