- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 17
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I have been a professional programmer for a bit over 15 years now (more than that if you could school time and such), focusing mainly on Microsoft technologies for the past 7 years (Mainly C#, it's such a beautiful language). I am a die hard programmer,…
- Interests
- Dean Koontz (I own about 45 of his books) NFL, XBOX 360 (gaming with my son), hunting and NASCAR
- PC Specs
- Current System: AMD Phenom II X4 965 Black Edition MSI 790GX-G65 Motherboard 6GB OCZ DDR3 Dual MSI TwinFrozr…
36 Posted Topics
Re: A constructor is a method in a class that is called when that class is first initialized. A constructor allows you to set default values to variables and limit instantiation (among other benefits. If a constructor is not defined in the class the CLR ([URL="http://en.wikipedia.org/wiki/Common_Language_Runtime"]Common Language Runtime[/URL]) will provide an … | |
This snippet takes a string as input and formats it to proper case | |
This is a snippet demonstrating how to create a new local Windows account, and have it show up in the Users section of the Control Panel. You will need to reference the System.DirectoryServices.AccountManagement Namespace | |
A C# snippet demonstrating how to merge 2 files (of any type) into a single file. Need a reference to the System.IO Namespace | |
Thought I'd take the time to introduce myself, considering I'm going to be around more. My name is Richard McCutchen, a.k.a PsychoCoder, I have been a professional programmer for 15+ years now (last 7 or so strictly in C# with some VB.NET thrown in if the clients requests it). I … | |
Re: If you're pulling back 60k+ records per query there's really nothing you're going to do to make it faster within the stored procedure. A server can only do so much so fast. Now you can make it not appear your UI is freezing if you were to use something like … | |
Re: That's happening because when you just open that page it doesnt have a referrer. You need to make sure it's not null before checking it [CODE] if (!Request.UrlReferrer.AbsolutePath == null) { if (Request.UrlReferrer.AbsolutePath == "/Home/Default.aspx") { Label1.Text = "You are coming from the home page."; } }[/CODE] | |
Re: One thing to remember, since you're working with VB.NET you really should stick with the native libraries available to you in the Framework, Shell is a legacy item left over from the VB6 days. For this you should be using the [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx"]Process Class[/URL] in the [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.aspx"]System.Diagnostics Namespace[/URL] | |
Re: If you ever have questions on what a proper connection string is supposed to look like for a specified database I suggest using [URL="http://connectionstrings.com/"]ConnectionStrings.Com[/URL]. They cover just about every database system that you can use, it comes in real handy | |
Re: This is not VB.NET code, it appears to be VB6 code. Mods is there a way to move this to the VB forum? | |
Re: That's an easy one. Until Windows is loaded the .NET framework isn't, thus your C# application cannot run | |
Re: Not going to happen with .NET. A .NET application required the .NET Framework in order to run, and the framework isn't loaded until Windows boots, so there's no way in C# to accomplish this. Also, this really sounds like a malicious action (in my opinion) | |
Re: If you're using SQL Server then your statement is wrong, not sire what the use of the [icode]![/icode] is for [code] [DaySchedule]![Shift Code Monday] AS Monday, [/code] That should look like this (if using SQL Server) [code] [DaySchedule].[Shift Code Monday] AS Monday, [/code] Your entire statement is riddled with those. | |
Re: Well we're not going to just write the code for you but I can give you a nudge in the right direction. The formula for converting centimeters to inches is [QUOTE]I = C * .39370078740157477[/QUOTE] So, if you enter 47 centimeters then in inches that would be [QUOTE]I = 47 … | |
Re: What you need to do is have a single loop, then inside the loop create a new [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.aspx"]ListViewItem[/URL] which will hold the main item in your array, then inside each iteration add a [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.subitems.aspx"]SubItem[/URL] to your ListViewItem. Here's an example [CODE]Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList(0); foreach (Wlan.WlanAvailableNetwork network in networks) { … | |
Re: What are the steps you're taking to make sure Crystal Reports is being included in your installer? Here's a thread on DaniWeb going through how to include deploying a VB.NET application with Crystal Reports included. Read [URL="http://www.daniweb.com/forums/thread104376.html"]here[/URL] | |
Re: Piracy is theft no matter how you decide to rationalize it. As a software developer I have a firm stance on this topic. You will not find a single piece of pirated software/movie/music on any system in my house, period. Just because you [B]want [/B] something does not mean you … | |
Re: Have you tried using [URL="http://msdn.microsoft.com/en-us/library/system.dbnull.value.aspx"]DBNull.Value[/URL] | |
Re: So you're just expecting us to do your homework for you? I'm pretty sure that isn't going to happen. We're here to help, and most of us love to help, but we're not your personal homework service. | |
Re: More than likely you're going to have to post the code that's causing those errors. Those errors can be caused from any number of things, and narrowing it down without seeing how you're accomplishing something is near impossible. | |
Re: What have you tried so far. We have no problem helping you with code you're having an issue with but we're not going to write the code for you. I can tell you that you can get the system memory with either WMI or with a [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx"]PerformanceCounter[/URL] | |
Re: One option you have is to implement the [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.imessagefilter.aspx"]IMessageFilter Interface[/URL] to filter out mouse clicks. When the form loads set the filter, when your process is completed remove the filter. Here's an example. First, when you implement IMessageFilter you have to have a PreFilterMessage functions that returns a Boolean [CODE]Public … | |
Re: If you modify it using the [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.login.layouttemplate.aspx"]LayoutTemplate Property[/URL] then it shouldn't be any different than a normal Login control | |
Re: You could also use an INI file. I know they're a little outdated but they do come in handy in situations such as this. Take a look at this: [URL="http://psychocoder.net/index.php/2010/08/18/working-with-ini-files-in-c-pinvoke/"]Working with INI Files In C#[/URL] | |
Re: Take a look at the [URL="http://msdn.microsoft.com/en-us/library/system.windows.controls.tooltip.aspx"]ToolTip Class[/URL], that will do exactly what you're looking for ;) | |
Re: 1) I would stay with MySql, depending on what the application is doing. If you go with MSSQL your users would have to pay to license it unless you were to go with the [URL="http://www.microsoft.com/sqlserver/2005/en/us/compact.aspx"]Compact Edition[/URL] and MySql is free. 2) You could if you want, but it makes more … | |
C# code snippet demonstrating how to set the status of a specified Windows service. Provide the name of the service and it's value (it's an integer value described in the comments) | |
This is a snippet that will get either all the child controls of a form (other other control) or controls of a specified type. This is for C# 4.0 as it utilizes an optional parameter. | |
Re: Then you need to get to writing code. This isn't a homework service, it's a help community for helping people with the code they've written | |
Re: I'm not sure why you're using GetManifestResourceStream, this is for loading a manifest resource from your application. Why are you trying to load a CDX file? | |
Re: Sorry but we're not just going to write your code for you. We're here to offer help, not for giving you your assignment on a silver platter. | |
Re: The easiest way would be to use [URL="http://msdn.microsoft.com/en-us/library/system.io.file.copy.aspx"]File.Copy[/URL] to copy your MDB file to a different folder | |
Re: If you've come here to DaniWeb looking for a hand-out, for someone to do your homework for you, then you've come to the wrong place. We're here to [B]help[/B] those with issues they're having [B]with code they've written[/B], not to do your homework for you. | |
Re: I would read through this on [URL="http://msdn.microsoft.com/en-us/library/ms972974.aspx"]URL Rewriting in ASP.NET[/URL], this (I believe) will accomplish everything you're after. | |
Re: One thing, if CustomerID is an INT value in your table you need to remove the single quotes from around it in your delete statement, like this [CODE]cmd.CommandText = "DELETE FROM CustomerInformation WHERE CustomerID =" & Trim(TextBox4.Text)[/CODE] Also, this code is primed for a [URL="http://en.wikipedia.org/wiki/SQL_injection"]SQL Injection attack[/URL], you really should … |
The End.