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

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

Jeff54

Member List

Stephen Chiu
DonMartin
Richard Glanmark
JJ_Berg
Michael Bachar
QWERTYtech
Manoj Kumar Goud
MAwais
TomTom2000
Joe Albahari
Berky13
ssauerw
Jeff Putz
pexxx
arogan
su45937
Chris Richner
Begemot
Raihan Iqbal
Naveeeen
Only Title

Jeff54's Q&A profile

  • Visual C++ Tunnel over net

    Hello, I have two computer with non-public IP and one server with public IP. How I create tunnel between two computer with non-public ip For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups as these forums are dedicated for VC2005 specific issues. OTP Thanks, Ayman Shoukry VC++ Team ...Show All

  • Windows Forms Interacting with other windows/apps?

    I know this is possible, just wondering if it's possible in C#.NET, and how it's done. I'd like my application to interact with other apps/windows. Examples: 1) Type some text into a notepad window. 2) Force Firefox to do Help->About. 3) Read text from a notepad window. I realize #3 could potentially be a security risk and .NET may not allow it (imagine an app reading text from some open window and sending it off somewhere via the net). And in case anyone is concerned, no, I'm not trying to write any kind of malware or virus. I'm interested in writing a program that will automate tedious processes in another application. I guess this is similar to Rexx. So, how can I do something like this Yes actually ...Show All

  • Visual Studio Express Editions timers

    How can I add a timer to my program Like in admin center you can change the amount of time you spend on the program, then when times up in closes the program Then it wont let you on till the next day Thanks well the theory is this once the timer has been "ticked", save to a file some value, such as a boolean value or something to indicate "false" for not opening today. Or even storing today's DATE in the file. Next time you load the app, open this file, read the value stored, lets say the value stored was date, then compare today's date (DateTime.Now) with the date stored in the file. If both match, don't open it, otherwise, open it. this is just one simple solution but easily hackable - the ...Show All

  • SQL Server Using OPENROWSET with an IP address

    Hi I've got an openrowset query that works perfectly if I enter the computer name, but it fails when I enter the IP address. Is there a setting somewhere that I need to enable to make this happen Thanks in advance Everything seems to be in order according to your post. My problem does not seem to be connecting, as the connection works when I create an OleDb connection (c#) to the ip address. Also; the openrowset works when I use the remote machine's pc name. It just doesn't work when I use the IP address of the remote machine - login times out because of no connection. I've even tested it on the same machine (connecting to itsself): Working: select * from openrowset ( 'sqloledb' , 'pcname' ; 'sa' ; 'password ...Show All

  • SQL Server Accessing OLAP aggregates thru RS

    Hi, the dataset is from an OLAP AS 2005 cube, and I would like to get the aggregated results directly from the cube, instead of recalculate the sum into the report. Is that possible How can we do that Thanks. ...Show All

  • Connected Services Framework HelloWorld Sample-CreateSession times out

    hi, Can somebody tell, why should the CreateSession time-out . After clicking CreateSession button, the status continues to show "create session in progress", and after some time, it times out. Links are all proper. thanks,. anita hi, We had a look at the input trace at the location specified. We noticed that, there was an exeception getting thrown. <processingStep description="Entering SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingStep description="Exited SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingSt ...Show All

  • SQL Server SendResultsEnd Method

    Hi, I want to learn what is going on Example: Production Scheduling at http://msdn.microsoft.com/sql/learning/prog/clr/default.aspx pull=/library/en-us/dnsql90/html/sqlclrguidance.asp First, please interview Production Scheduling example. I'm curioing about SendResultsEnd method. foreach (Item item in items) { // Compute the schedule and report it item.ComputeSchedule(); item.OutputSchedule(pipe); } pipe.SendResultsStart(record); for (int i = 0; i < size; i++) { // Pipe each day of production. Omit zero production // days. if (schedule != 0) { record.SetDateTime(1, (DateTime)(dates )); record.SetInt32(2, schedul ...Show All

  • .NET Development Async operations in 2.0 framework

    Hello, Need some help here. We have a client/server windows app that is acting strange ever since we upgraded to 2.0 framework. We use async calls for all database operations. Some folks are getting the following error "Endinvoke can only be called once from an async operation". Some users get the error, some users don't, some times the user that gets the error will at times not have a problem, very strange. Here is a sample of our code: ProcessServer pas = new ProcessServer(); AsyncCallback RemoteCallback = new AsyncCallback(this.ValidateInspectorCallback); //call to server ValidateInspectorDelegate del = new ValidateInspectorDelegate(pas.ValidateInspector); IAsyncResult ar = del.BeginInvoke( mdiform.UserValidateData, proces ...Show All

  • Software Development for Windows Vista Error while using WDS to download winPE image using WDS

    We were able to setup WDS to attempt to provision a bare metal machine with Vista OS 1. When the machine to be provisioned boots up, it gets an IP address from the nearest DHCP server. It also gets the network bootstrap program (wdsnbp) 2. However the actual Winpe Image download fails The error on the screen is Fail to restart TFTP TFTP Download fail. Could anyone tell us if there's any step we missed out, or how to fix this error ...Show All

  • Visual C# How to retrieve value from key

    Hi all, I had a hashtable ht and I had added ht.Add("key1","value1"); May I know how to retrieve value1 based on key1 Thanks The next step is to grab all of the values in a hashtable. This should help. foreach(DictionaryEntry _d in ht) { MessageBox.Show(_d.Key + "-" + _d.Value); } ...Show All

  • Windows Forms Auto Centering Text fields

    I have a text field that I am populating from an Access dB table and it could contain any length of text upto 50 characters. Is there a way to center the text box on the screen depending on the length of text the user has in the table field thanks tattoo Add a new class to your project, then paste this code: using System; using System.Text; using System.Drawing; using System.Windows.Forms; class CenteredTextBox : TextBox { private void Center() { Size sz = TextRenderer.MeasureText(this.Text, this.Font); int w = sz.Width; if (w < 10) w = 10; if (w > this.Parent.Width) w = this.Parent.Width; this.Left = (this.Parent.Width - w) / 2; this.Width = w; } protected override void ...Show All

  • .NET Development How To Store Products with Attributes

    Hello I am building an application and website, However 1st of all I obviously need to design the database, and i was just woundering about the best way to do some things. For example my application/website must allow customers to purchase products, these products can have 0 or many attributes, such as size, flavour, colour etc. Which is the best solution to tackle this in regards of database table design This is the setup atm, but i would like some idea's/opinions Products Table - holds products information, and a base price information Attributes Table - holds many different attributes, such as name, description etc. ProductAttributes Table - This holds 2 foreign keys and some other information. ProductID A ...Show All

  • Windows Forms Permanent Cropped Image In Picture Box....

    Hi everybody, Do you have idea how to make a cropped image permanent inside a picturebox control I have a first image loaded into a picturebox control then I crop(cut/get) part of that image, but when the form lost focus and then return to focus, the first image is seen in the picturebox which should be the cropped image. Please provide codes. Thanks in advanced. [code] private void CropImage() { //bCrop = true; if (cRect != Rectangle.Empty) { Rectangle sRect = new Rectangle(); sRect.Location = pictureBox1.Location; sRect.Size = pictureBox1.Size; pictureBox1.CreateGraphics().DrawImage(pictureBox1.Image, sRect, cRect, GraphicsUnit.Pixel); // ...Show All

  • Visual Studio Express Editions Need help trying to recreate Notepad

    Hey all, I'm just learning VB.NET and I was trying to recreate Notepad. Things are going smooth except that I can't seem to get the Ln x Col x to work. I've tried within the textbox1.keydown sub adding Dim Ln As Integer = TextBox1.GetLineFromCharIndex(TextBox1.SelectionStart) Dim Cn As Integer = (TextBox1.SelectionStart) - (TextBox1.GetFirstCharIndexFromLine(Ln)) + 1 Ln = Ln + 1 Dim LnColString As String = "Ln: " & Ln.ToString & " Col: " '& Cn.ToString ToolStripStatusLabel1.Text = LnColString and it seems to work somewhat until I press the up key or down key or enter so forth and it displays the wrong line number. Anybody got any suggestions Thanks. Putting it in ...Show All

  • Visual C# converting a string to date

    I have a string that contains the a date in the format of "dd/mm/yyyy". I want to convert this to a datetime MyDate Can anyone show me the best way of doing this. Try this .sudetail .SuppF12 = Convert .ToDateTime (cRow [11] as string); I'm not sure what cRow is but ToString doesn't really convert one type of thing to another type of thing. Exactly what ToString() does is up to the maker of the class. ...Show All

©2008 Software Development Network