Software Development Network Logo
  • Smart Device
  • VS Team System
  • Visual J#
  • Visual FoxPro
  • Visual Studio
  • Microsoft ISV
  • Visual Basic
  • Windows Live
  • SQL Server
  • Visual C#
  • Visual C++
  • VS Express Editions
  • Windows Vista
  • Game Technologies
  • .NET Development

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

JFS

Member List

Wolfgang Rockelein
Marianor
eDirectGlass
Coleby
AlDeb
Piyu
Vasudha
Thomas Jakobsen
rkarem
Koldark
Kevin Rodgers
Kiran Suthar
TFSFailedInstall
Johannes Braunias
Digant Desai
abzA
shakil852
Jason Paige
Sharon277
jczarni
Only Title

JFS's Q&A profile

  • Windows Forms Main form inside another class...

    Maybe it's not very smart post title, but I can't find anyone adequate. Sorry about that. Iam creating some Windows App for my final exsam and I encouter with some problem. On main Form I have a tab control for every program options. In the same form file, I have declared another classes (for each tab) in seperate Namespaces. Sme functions in that classes suppost to do somehing with the controls in main form, but I can't seem to do it right. This doesen't work. Let me explain better. public class Form1 {     // .... }   namespace Functions {     public class FirstTab     ...Show All

  • Visual C# Current filename?

    This might seem silly, but i'm trying to figure out the name of the file being run. ...Show All

  • .NET Development Strange construct in template code

    When creating an a new ASP.NET Web Service project in VS2005 Beta 2, I am curious about the template generating the 'Public Sub Service' procedure within the genrated class (as demonstrated below). Can anyone enlighten me as to what this procedure is designed for and what, if anything I should be doing with it <WebService( Namespace :="http://tempuri.org/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ Public Class Service        Inherits System.Web.Services.WebService        Public Sub Service()        End ...Show All

  • Smart Device Development Read specific line from a file?

    Hi, Is there a method to read a specific line of a text file The StreamReader class does not seem to have a method to do so. The Peek method isn't what I'm looking for either. Would appreciate your help. Thanks. Will threading help If you know in advance what is the file to be processed, you can start a thread to index it first. I did a simple test program, and indeed, with indexing, reading any line is extremely fast. In my program, if the user wants to read a line that has been indexed, the result is displayed immediately, otherwise, a timer is started to repeatedly check if the line has been indexed. Here ...Show All

  • Visual Studio Express Editions Progress Bar Trouble (Beginner)

    Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My .Computer.FileSystem.CopyDirectory( "\\server\proj\stds" , "C:\dwgs\stds" , True ) End Sub Private Sub CopyWithProgress( ByVal ParamArray filenames As String ()) ProgressBar1.Visible = True ProgressBar1.Minimum = 1 ProgressBar1.Maximum = filenames.Length ProgressBar1.Value = 1 ProgressBar1.Step = 1 Dim x As Integer For x = 1 To filenames.Length - 1 If CopyDirectory (filenames(x - 1)) = True ...Show All

  • Visual Basic Multiple threads executing the same procedure.

    I am new to Threading in VB.NET and need help with the following questions. 1. Can we have multiple threads executing the same procedure 2. Will there be race condition if we code it that way 3. Lets say for example I have a procedure like this: Public sr as StreamReader 'A Global StreamReader Sub DoProcess() sr.ReadLine(); End Sub I would like to Create (10 or 15) threads based on the user entry. 3.1 How do I create specified number of threads (10 or 15) 3.2 How do I call the DoProcess function with the threads Is this the best way Please suggest. This is really urgent. Thanks ...Show All

  • Visual Basic CMD prompt

    I'm tring to open the command prompt from within my application it does seem to work with the code i used:   Dim obj as new cmd cmd = "c:\WINDOWS\_default.bat"   or even this me.show("c:\WINDOWS\_default.bat") or show("autoexec.bat")   can someone help me please... Protected Sub CreateProcess(byval filespec as string ) Dim startinfo As New System.Diagnostics.ProcessStartInfo Dim Proc As New System.Diagnostics.Process startinfo.FileName = "c:\windows\system32\cmd.exe" startinfo.UseShellExecute = True startinfo.Arguments = filespec ...Show All

  • Visual Studio Reseting a Property Value

    If got a Poperty called BuildStatus in my build file with an initial value of "Green". When particular errors are raised I want to reset that value to "Red". I can't find any obvious way to accomplish this. <PropertyGroup> <BuildStatus>Green</BuildStatus> <PropertyGroup> <Task Name="Compile"> <OnError> Set BuildStatus to "Red" </OnError> </Task> What about this You'll set the "BuildStatus" property to yellow first, then Error out: <Target Name="CompileDebug"> <CreateProperty Va ...Show All

  • SQL Server how to do the same thing in mssql as mysql?

    in MySql: SELECT * FROM table LIMIT 5,10 How to do this in MicroSoftSql *grin* then you should have asked about access to start with :-) I'd expect my first solution to work with Access, but I couldn't be sure, I don't use it. ...Show All

  • Visual Studio Express Editions running in the background

    how do i make my c++ application run in the background Your two best bets would be to either build a Windows Service around your custom code or simply hide the form when it is not in use with the form's Hide() method or toggle the form's Visible property. ...Show All

  • Visual C++ converting c++ stl strings --> Tchars? (NO MFC)

    How would I go about doing this Thanks! Maybe there is no need to convert something is the program is not UNICODE and you are using std::string ot it is UNICODE and you are using std::wstring, You can use the ATL. (USES_CONVERSION, A2T). You can use the CRT mbstowcs, wcstombs. ...Show All

  • .NET Development Limit on number of DIME attachments?

    Is there a limit on number of DIME attachments that can be attached to a response or request Soap Context Object ~Srilatha The RequestSoapContext and ResponseSoapContext objects both have the Attachments property which are of an unbound collection type. There is no limit to the number of file attachments you can add, however you may start to run into message/request size limits. You may also have to consider connection timeouts as the connection could get closed underneath you while uploading the files... in that case you'll either get an Underlying Connection was closed error, some other WebException& ...Show All

  • Visual Studio VB.Net 2005 gives invalid connection string with Interop COM object when VB6 to Com object with same connection string works

    I have converted a VB6 app to VB.Net 2005. When trying to run a com component api the Interop gives the following : Run-time exception thrown : System.Runtime.InteropServices.COMException - Invalid connection string. Yet if I use exactly the same code in the VB6 version passing the same connection string (which is valid) the same physical Com component runs the code. (this is on one PC so there is no issue with different com components, permissions, etc) Any ideas ...Show All

  • .NET Development Is gacutil.exe redistributable

    I am producing a bespoke software system in C#/C++ for Windows 2000 that uses the Office XP Primary Interop Assemblies (PIAs) to talk to MS Access. I am required to provide our customer with both the executable system and full soure code on CD for full system installation & recovery as well as post-development by the customer. I believe the Office XP PIAs are redistributable so we should be allowed to include them on our delivery CD. However, in order to install them, we need to use gacutil.exe (Global Assembly Cache Utility) which come with the .NET Framework 2.0 SDK but this does not appear to be redistributable. The ...Show All

  • SQL Server Optional Arguments in SQLCLR stored procs

    I expected Optional ByRef nArg as Integer=123 to setup a sp arg with a default value of 123. Doesn't look like it does. Anybody know what I'm doing wrong Also, I can't write a function with a return using AS System.Int32. There is no RETURN sp arg. Both situations compile/deploy without error. Turnbuckle wrote: I was hoping a function that is launched as a stored proc would create a return. Appears not to, so I'll probably end up altering the proc. I don't understand what you mean. Are you saying that you want to execute a user defined function in SQL Server as a proc, and receive the ...Show All

©2008 Software Development Network