PlausiblyDamp
Administrators-
Posts
7016 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by PlausiblyDamp
-
Creating auto LastUpdated and FirstCreated columns
PlausiblyDamp replied to OnTheAnvil's topic in Database / XML / Reporting
http://www.xtremedotnettalk.com/showthread.php?t=92281 gives a very basic idea of the syntax needed to create a trigger, if you want a more specific example just ask... The performance impact of a trigger really depends on what the trigger does, simply updating a field shouldn't cause too much in terms of performance issues - however other aspects (indexing, validation) may add their own overheads. -
Setting file summary properties
PlausiblyDamp replied to mjcatt's topic in Directory / File IO / Registry
:confused: I stand corrected, I've never tried to manipulate the summary properties of a file through explorer for years, it does work :confused: Even more annoying before doing the previous post I did attempt to try and nothing was visible and nothing could be edited! Turns out this is very dependant on the file type. .txt you can, .jpeg has additional and you can edit some, .gif and .bmp - nothing editable, .html no tab present. .com you can't but .exe you can. Ignore my above post(s) - listen to marble_eater instead -
Setting file summary properties
PlausiblyDamp replied to mjcatt's topic in Directory / File IO / Registry
Yes I do use NTFS and I am aware of the alternate data streams NTFS exposes (which are extra data associated with a filename and are not extra information stored within the same file), these are not the same as the file summary information mentioned in this thread. IIRC NTFS at one point was going to make more use of the alternate streams for such purposes as summary data and this functionality did briefly appear in Win2k betas but was later removed. -
Setting file summary properties
PlausiblyDamp replied to mjcatt's topic in Directory / File IO / Registry
Does any information actually appear on the summary tab for all of those file types? The summary information is pulled from the contents of the file itself and differs depending on the file type. If you are using an office document then it is stored in a particular file format that allows summary information to be contained within it (search for Ole Compound File for more information. Other file types (avi. jpg, mpeg amongst others) also contain information internal to the file - this information is displayed in explorer via a shell extension which knows how to read this embedded data. Simple text files (.txt, .vb, .cs etc) do not have anywhere internal to the file to store this info. -
http://www.codeproject.com/csharp/iphlpapi.asp has a good sample in C#, you may be able to either translate it or use it as a DLL that can be called from VB.
-
http://www.microsoft.com/patterns
-
Are you getting any particular errors when attempting this? Does the PC in question have Outlook installed? If so it may be worth checking which version is installed and seeing if there are any slight differences in the Methods / Properties offered. Also are you attempting this from a Web application?
-
Have you looked at the .Net Compact Framework? That should allow you to use .Net and target CE devices. If you are using VS.Net 2003 it comes as standard.
-
Working with images on the project...
PlausiblyDamp replied to EFileTahi-A's topic in Graphics and Multimedia
You do have a valid point as to why I responded - a self bump within a few hours of the original post shows impatience - people access this forum from several different time zones and have other commitments, usually allowing at least a day before a bump is customary. Information about what you have tried to do so far can go a long way to helping people see what you are attempting, even if it is only 'I've added a bmp to my project via solution explorer, how do I use it in code' would have given far more of a idea. Also it does take effort for people to respond, and without being rude, why should somebody spend the time to write two possible solutions to a question when only one or possibly neither would be relevant to the original poster? Perhaps my original reply was overly harsh and you just happened to be on the receiving end of it after seeing several posts recently from numerous posters with little to no information provided in the original question and then a rapid and discourteous reply of their own. Now to be really sheepish but I forgot about this post -
If you are developing a web application then the client machines shouldn't be having any connections to the DB itself - the web server would be the only computer connecting direct to the database anyway. However as bri189a says - only connect as and when you need, release connections as soon as possible and try to work in a disconnected fashion when possible.
-
Working with images on the project...
PlausiblyDamp replied to EFileTahi-A's topic in Graphics and Multimedia
If you want a decent and timely answer it helps if you give a certain amount of detail in your question. When you say do you mean as an embedded resource, as an assembly resource? Is this for a windows app or a web app? Not everyone who frequents this forum has got the time and energy to request information from every post that doesn't bother to make itself clear in the first place, and even if they did you only waited 5 hours or so for an answer. -
I doubt you can run SQLServer on a Mac but that doesn't prevent you running a client to MS SQL on a Mac though...
-
Worry not about database support, if clicky is accurate then most popular databases seem to be supported.
-
If you are using MS SQL then you can create a trigger using code like CREATE TRIGGER ON FOR INSERT, UPDATE, DELETE AS --body of trigger goes here within the body of the trigger you would then access two tables (inserted and deleted) which contain the modified rows. It may help if you give a bit more detail about what you want the trigger to do.
-
You will need to add a reference to System.Design.dll
-
HELP!!!! I can't even start with directx programming.
PlausiblyDamp replied to Ieuan's topic in DirectX
http://www.xtremedotnettalk.com/showthread.php?t=87678 may be worth a read. -
There is no way to extend the existing base classes in that way - you couldn't simply get the existing controls to inherit from your base class. However you may want to look at the IExtenderProvider interface - this will allow you to add additional functionality to controls at design time e.g. the tooltip component.
-
I would personally go for the first option as it's not VB specific but common to all .Net languages, gives more control over the output and can be used with formating of the output without having to use a seperate function (Format rather than CStr).
-
Opening a 2005 project in 2003 would be potentially useless if the project used any of the newer constructs. Splitting a class over more than one file can be a major benefit if multiple people are working on a project and need to modify the same class but in different areas (think nested classes as a way to structure a large object model). Simply splitting off the auto-generate form code will help to prevent accidental modifaction without actually preventing deliberate changes from being made. As to it being all about money - MS are a business and in it to make money ;)
-
Where is Person.DiscountableTime declared and what do it's methods do? As a simple test if you subtract processingStart from processingFinish does the resultant TimeSpan exhibit the same problem or does it reflect a change in time?
-
How are you doing this in VB then? Is there no direct translation that would work?
-
http://gotdotnet.com/team/changeinfo/ is probably a good starting point, the apparent plan seems (quite rightly) to keep things as close to 100% compatible as possible. Although there is a lot of new functionality that will require modifications to take advantage of (generics, nullable types, anonymous methods etc) this doesn't mean you have to use them straight away - existing code should work fine. I do believe they have been willing to break compatability when it has been a decision between compatability and security or fixing a severe bug. Most of the methods that are now superceded are marked as obsolete but will not prevent the application working or even being compiled against the old routines.
-
If you bring up the properties for a shortcut there is an entry to change where it starts from (Start In). If you wish to learn more about VB then this is possibly too simplistic an example (that is also fraught with problems outside of your control i.e. notepad.exe ignores the working directory for open / save dialogs), however a working sample looks like Class SampleClass Public Shared Sub Main() Environment.CurrentDirectory = "c:\" Process.Start("notepad.exe") End Sub End Class just be aware that notepad will still default to the 'My Documents' folder...
-
windows forms exception and i dont know why
PlausiblyDamp replied to fguihen's topic in Windows Forms
Any chance you could post the code in question? Also are you looping over any arrays / collections in your code? -
http://nunitforms.sourceforge.net/docs.html may be worth a look. Not used it personally but plan to investigate it a bit more when time permits.