Software Development Network Logo
  • Windows Vista
  • Windows Forms
  • SharePoint Products
  • Game Technologies
  • Microsoft ISV
  • Visual Basic
  • Visual C#
  • Visual C++
  • Visual FoxPro
  • .NET Development
  • VS Team System
  • Visual Studio
  • IE Development
  • SQL Server
  • Audio and Video

Software Development Network >> iyeru42's Q&A profile

iyeru42

Member List

drdexter33
ennisb
gtimofte
Claudiu Chiorean
RomanAnanyev
CurtisDeHaven
Fiksman Evgeny
The MaiN MaN
Pak Lui
JTFML
Richard McEnery
Douglas H. Troy
HCarter111
ssboyz
mattdawg
Aspiff120
Steve1999
Kanhaiya
Intelligence
Stretchcoder
Only Title

iyeru42's Q&A profile

  • Visual C# Index out of Range Exception

    I am searching for a prticular character in a string using IndexOf() method. But i am getting a Index out of range exception . Can anyone tell me why this exception is coming . Please help me out . Thanks in advance a common error is that your for loop is running 1 time too many... for (int i = 0; i < MyString.Length; i++) // good if you run the loop to <= MyString.Lenth, you will have gone 1 character too far.. ...Show All

  • Windows Forms How to hide controls using a loop

    Hi, I'm trying to hide all the buttons and textboxes on my form using a loop, I used to do this is visual basic and i remember de code was something like this: For each(control in me.controls) If Typeof Control is Button Then Control.visible=false End if Next I'm trying to do the same using C# but it doesnt work, could someone help me please. Thank you in advance. Here's some code that hides all buttons and textboxes from a form: foreach (Control control in Controls) { if (control is Button || control is TextBox ) control.Visible = false ; } ...Show All

  • SQL Server SQLexpress command line error

    I have SQLEXPR (SP1) and expanded it with the /x switch. Next, I tried the following from the command line and the installation generates an error message about my test password not being strong enough. setup.exe /qn ADDLOCAL=ALL SECURITY MODE=SQL SQLACCOUNT="NT AUTHORITY\NETWORK SERVICE" SQLPASSWORD=elinor&2JACOB2#zinno SQLBROWSER="NT AUTHORITY\NETWORK SERVICE" SQLBROWSERPASSWORD=elinor&2JACOB2#zinno DISABLENETWORKPROTOCOLS=0 SQLBROWSERAUTOSTART=1 I'm trying to create a customized SQLexpr. Is this the correct way to do it What am I doing wrong Thanks, jerry hi Jerry, provide a SAPWD=<StrongPassword> as well, as indicated in http://msdn2.microsoft.com/en ...Show All

  • Visual C# WaveForm API

    Im using the Wave Form Audio Interface ( http://msdn2.microsoft.com/en-us/library/aa446573.aspx ) to play back streaming audio from mic inputs in realtime. I have 2 inputs, one sampling at 44.1 khz and another at 8khz. The 44.1 khz plays back normally with no distortion or delay. However the 8khz sounds perfect but has a 4 second lag time or delay It seems if I set the sample rate of the 44.1 khz to 8khz in the code I get the same delay as the 8khz sample rate. So, I guess my question is why does the Wave Form API introduce a 4 second delay with a 8khz sample rate. //No Delay WaveFormat fmt = new WaveFormat (44100, 16, 2); Player = new WaveOutPlayer (-1, fmt, 16384, 3, new WaveLib. BufferFillEventHandler (Filler)); //4 se ...Show All

  • Windows Forms create Custom multiple column comobox in C#

    Hello, how I create multiple columns comobox in C#.net Anybody can give code example Thanks. Hi, Please go through the below link which has similar scenario.Hope this helps. Link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=140362&SiteID=1 Thank you, Bhanu. ...Show All

  • SQL Server Eliminate Duplicate ID's in this StoredProcedure

    I have a stored procedure that I use for Monthly Billing delete from BillingCurrent insert into BillingCurrent([Name],Address,City,State,Zip,InvoiceID,CustomerID,[Date],InvoiceTotal) SELECT Customers.Name,Customers.Address,Customers.City,Customers.State,Customers.Zip,Invoices.InvoiceID,Customers.CustomerID,Invoices.Date,Invoices.InvoiceTotal FROM Invoices INNER JOIN Customers ON Invoices.CustomerID = Customers.CustomerID WHERE CONVERT ( varchar (15), Invoices.Date, 112) Between CONVERT ( varchar (15), dateadd (d,-30, GETDATE ()), 112) and CONVERT ( varchar (15), GETDATE (), 112) This works great, but if a customer has more than one invoice open it adds that Customer again (for each invoice that is n ...Show All

  • Visual Basic fairly new to VB, is my coding ok?

    i am fairly new to VB and i have made a calculator and the form looks like any normal calculator (screen, buttons etc) and it runs fine, but i cant help thinking that my coding isnt as optimal as it should be and it probably contains some 'techniques' which should not be done. any input or feedback on this code would be greatly appreciated. Public Class CalculatorForm Private FirstNumber As Double Private Op As String Private SecondNumber As Double Private PointAlreadyUsed As Boolean = False Private StoredNumber = 0 Private NumberStored As Boolean = False Private Sub CalculatorForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ScreenLabel.Text = "0" End Sub Private ...Show All

  • .NET Development FileStream in Visual Studio 8

    Hello everybody, Today is my very first day with Visual Studio 8, I was working on Visual Studio 6 before. I have an application that is using "fstream.h" and "ofstream" but they are not valid anymore in Visual Studio 8. Can anyone advice what have replaced these old functions or how to handle files input/output in Visual Studio 8 Thanks in advance. Close. Try this: #include <fstream> using namespace std; ... fstream gototownandhaveastream; ...Show All

  • Smart Device Development Unable to connect Web Services with Pocket PC 2003 Emulator in vs2005RC

    The output window: A first chance exception of type ' System.IO.FileNotFoundException' occurred in Mscorlib.dll A first chance exception of type ' System.Net.WebException' occurred in System.dll A first chance exception of type ' System.Net.WebException' occurred in System.Web.Services.dll Test of the Web Services in IE is good How to resolve this problem Hi fly_eye, I hope that i'll help you. I have the same problem and I solve it like this. If you like to call web service from Pocket PC 2003 emulator, which is hosted on your local machine, first of all you must change url in Web Reference : MachineName or IP address instead of "localhost". ...Show All

  • SQL Server SSIS - Data conversion failed - "The value could not be converted because of a potential loss of data."

    Hello   I have an odd problem that is driving me nutz. I have a very simple SSIS package that imports a 5 colum flatfile into a sql Server 2005 Table. When I created this package with the wizzard, it will execute perfectly fine and processes all rows into the destination table. But when I hit F5 to execute it manually it will fail before inserting a single row.   The error it generates is (Spalte 5 is a Datetime in the format DD.MM.YYYY) : Error: 0xC02020A1 at Datenflusstask, Source - Daten_NC_1_txt [1]: Data conversion failed. The data conversion for column "Spalte 5" returned status value 2 and status text "The value could not be converted because of a potential loss of data.". Error: 0xC020902 ...Show All

  • Visual Studio Express Editions Multi Column In ComboBox

    Hi All, how to create a combobox with multi-column and have gridline Pls help! Combobox doesnt support multicolumns. Listbox does, listview or datagridview do. If you want ot use a combobox, then you can possibly use a tab or comma to deliniate the values but you often end up with jagged columns. An example of an 1/2 decent implementation http://www.codeproject.com/vb/net/multicolumncombo.asp And some 3rd party controls such as infragistics have implementations (but your going to have to pay something) ...Show All

  • Visual C# Attenuating SoundPlayer Volume

    I use SoundPlayer to punctuate long file downloads and other processes and give me sound cues of the app state in broad sense. One problem I have now is that the volume is so loud that after a long pause it might frighten me a bit with some sounds. Manually adjusting volume in SoundPlayer 10 does not seem to help. I cannot get a hang of it although I tried numerous inroads. SendKeys.Send ( "VolumeDown" ); did not work. I tried to exploit Volume.exe: Set Volume Control Levels Using Visual Basic at http://support.microsoft.com/default.aspx scid=KB%3bEN-US%3bQ178456&%5d and another related sites to no avail so far. It may all boil down to controlling volume in MS kernel sound mixer or something, I do not know. Please, h ...Show All

  • Visual Studio Express Editions Select Distinct from dataset-filled combobox

    How can I enable filter Select Distinct from a dataset-filled combobox when it contains duplicate info WE have this simplified in .NET 2.0.. We have a inbuilt method on Dataview to do a distinct.. DataTable dt = dataView.ToTable(true, new String[]("distinctField1", "distinctField2")); the first param of the method is to indicate that u want distinct values.. there are three other overloads of this method too.. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Can a managed DirectX app keep running if a DirectX problem would normally crash an unmanaged game?

    We have probably all seen DirectX games crash, usually due to driver issues, or bugs in a particular game (where you may find a patch to fix them later, or update your drivers, and the problem doesn't happen any more) -- and they either drop you on your desktop or cause the PC to restart. Usually the games also lose whatever changed in the game since your last save as well.. In either of these cases, if the game were written in .NET, using managed DirectX, and caused exactly the same problem.. would it simply be treated as an exception, and the game could recover (assuming you programmed it that way), or would it crash just like an unmanaged game If it's possible for it to recover, it could re-initialize everything related to DirectX, o ...Show All

  • Visual Studio 2008 (Pre-release) WPF Overview for Executives

    An executive at my company expressed interest in WPF to me, but is not quite clear on what it provides over and above other UI platforms. If he knew what it is and can do, it would be easier for him to "sell WPF" to clients (i.e. provide me with the opportunity to work with WPF on the job!). Does anyone know of a good overview with images and/or videos which would help someone in that position gain a high-level appreciation for what WPF is all about I've looked around, but most of the things I've seen get too geeky and stray away from ways to justify including WPF in a new application's technology stack. Sorry for the broken link, here it is again: http://msdn.microsoft.com/msdnmag/issues/06/01/xmlpaperspecification/defa ...Show All

©2008 Software Development Network