dork's Q&A profile
Windows Forms DataBinding a UserControl
I have a UserControl with an ID property. How can I make this property bindable at design time (Framwork 2.0). ...Show All
.NET Development Connecting to a telnet server
Basically what i want to do is make my program connect to an existing telnet server, put in a username and password, wait til it receives a prompt then run a command and grab the next lines for me to parse and use. If anyone can point me in the direction of a good tutorial on the best ways to achieve this that would be great Martin, I was able to use this library located in the downladable source code to assist me in scripting my telnet session. You can find it here: http://www.c-sharpcorner.com/UploadFile/tylerkline/TelnetScripting11282005001158AM/TelnetScripting.aspx ArticleID=a8e0e439-14df-4d82-82ee-8cb4c110f9a0 If you are unable to figure it out, let me know and I can post some sample code ...Show All
SQL Server Time Series only predicts one step
I have a relational table with daily sales for 364 days (52 week span) for 60 stores. I have created a Microsoft Time Series model using store as the case and the historical/actual line charts appear in the Charts viewer for each store. But only one prediction step is shown no matter how many prediction steps I select. I have tried this with an OLAP-based model and also tried a simple DMX query, all with the same result. Thank you in advance for any help with this. P Taylor Jamie, I have e-mailed a CSV file to you, of data that I have been using. Many thanks Philip Taylor ...Show All
.NET Development Query regarding calling serial ports in C#!!!
Hi, I am porting an application written in C to C#. It includes Serial Comm. with the comms tty device (Serial Port). In C an ioctl call gets the device details in Termio structure, sets the device details (port) and writes the device details back making another ioctl call. I need to map the corresponding port settings (MARKED IN RED) in my C# code . Please find below the code written in C.. // open tty port for connection to LSA P_clock_lsa_fd=open(LSA_CHANNEL_DEVICE, O_RDWR|O_NDELAY|O_NOCTTY|O_NSHARE); // make an ioctl call to obtain device details in // the termio structure tbuf if ( ioctl (P_clock_lsa_fd, TCGETA, & tbuf )==-1) { // failed to ob ...Show All
Visual Studio Express Editions keyboard characters
How do i make a subroutine for a certain character on the keyboard. e.g. Private sub keyBtnA_Press(byval etc) xyz End sub you need to explain a bit more on what you need it for in order to help better. However lets give it a shot. Implement the keypress event for the textbox in question (click on textbox in designer view, select the events icon which is the lightning symbol and double click the keypress event). Then check the key pressed, depending on the key pressed then do your thing, such as call another subroutine or something. Example: private sub TextBox1_KeyPress(byval sender as object, byval e as KeyPressEventArgs) handles TextBox1.KeyPress Me.DoCheckKey(e.KeyChar) end sub pr ...Show All
Smart Device Development Using .Net web pages in mobile devices
Hi, 1)I have a ASP.Net web page and i would like to port it for mobile devices like PDA and Smartphones. Is it necessary that i have to re-write the application in Mobile web application If so, what is the advantage 2) If i have to convert the web page to Mobile web application page, is it enough that i convert the usercontrols and the aspx pages to Mobile user controls and mobile web forms and use mobile controls in these pages 3)Is it necessary that all the controls in the mobile web forms should be 'mobile controls' 4)What is the mobile control available corresponding to the table, div, span, dataview, hiddenfileds etc. Thanks, Lekshmi This forum is smart device devel ...Show All
Software Development for Windows Vista I have problem with IQualityControl::Notify(IBaseFilter *pSelf, Quality q)
I still try to write source filter which is connect with ffdshow mpeg4 video decoder my_source_filter->ffdshow mpeg4 video decoder-> render filter I have problem with render my h.264 video stream I catch IQualityControl::Notify from downstream filter IQualityControl::Notify(IBaseFilter *pSelf, Quality q) where q->Type= Flood (I think it means: too much data) q->Proportion=1000 (I think it means: rate of sending media samples in my case right) q->Late =3660000 ( I think that here is problem of my filter) Q->TimeStamp=0 (I think it is OK) I check what filter calls my function Notify pSelf->QueryFilterInfo(pInfo); It is: ffdshow mpeg4 video decoder I don`t know how to sol ...Show All
Windows Forms Help in implementation of a magnifying glass
I have an image viewer application which I want to apply a magnifying glass effect on certain area of the image. The problem I've run into is that when I slowly dragged the magnifying glass across (when left mouse down) the magnifying glass window didn't move smoothly. I believe it has something to do with drawing the graphics of the original image on the background. May someone please help me solve this issue Thanks. This "this.Update()" method call in picPanel_MouseMove() is probably the source of your problem. Invalidate(true) should be good enough. Actually, you shouldn't need anything there; Windows should detect that the moved magnifier window has revealed a portion of picPanel that ought ...Show All
.NET Development Best Practice for C# App and SQL Connection
Good evening, I am new to developing application in C# and Visual Studio 2005. I am an ASP guy, so I am finally moving to .net. I am writing a Windows application in C# and I need to use SQL as my backend to check usernames, passwords, and settings. What is the best practice for connecting to SQL for an application that is constantly hitting SQL up for some data In ASP, I open connection, get data (or update) and then close the connection. Is it done the same way in a Windows application in C# Since it is going to be constantly getting information from SQL, I want to write it so it is pretty efficient. I appreciate any feedback. Michael C. Gates Great, I will start fooling with it today. Should I create a class for handling ...Show All
Customer Care Framework Where to download
Hi, Can someone please tell me where to download the CCF Thanks Matt, Have you got a more specific pointer to the CCF 2005 (.Net 2.0) version on MSDN. The version that I downloaded from MSDN Subscriber Downloads was the 2.5.1 version with the various QFE's. But I'm at a loss as to where to find the 2.6.0 versions. (Obviously my colleagues have it, as I mentioned in the other thread, but can't get at those systems at the moment) Best regards Alan ...Show All
.NET Development vb.net and access
I have set up an access database and am trying to pull data from it. Everything was going fine until I closed out the program and tried to reopen it. I got the following error: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. What have I done wrong. There shouldn't be any type of security on this drive. Larry If it was all working ok, prior to closing your app, it may be possible that you didn't close the connection. I used to have a similar problem if I stopped a program with the debugger etc. Have you tried opening the db with access when youhave this condition ...Show All
Visual Basic Using String.Contains with case-insensitive arguments.
Is there any way to use Dim Str as String = "UPPERlower" Str.Contains("UpperLower") and have it return true The following will return true Option Compare Text Public Class Form1 Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Str As String = "UPPERlower" Dim b As Boolean = InStr(Str, "UpperLower") End Sub End Class ...Show All
Software Development for Windows Vista Visual Studio 6.0; VB6 GetAllSettings function does not seem to work in Vista RC-1
Visual Studio 6 seems to come up correctly however when testing stable VB6 application the following line: varFiles = GetAllSettings(ThisApp, FileKey) produces "Run-time error '5'; Invalid procedure call or argument. Both procedure call and arguments from this working program are valid. This project is completely stable on WinXP machines and below. I have not seen this error until upgrading to Vista. All other VB6 code seems to work correctly on Vista. Other registry access commands appear to work correctly. However, GetAllSettings seems to produce an invalid procedure call wherever it occurs. For some reason the service pack number does not seem to be coming up on the Visual Studio logo screen so I attempted to insta ...Show All
Visual C# Displaying a Generic.Dictionary object in a PropertyGrid
Hi, I have a property in one of my classes that returns a Dictionary object: public abstract partial class NonStationary : Structural { protected NonStationary( string name, Shape. Shape shape) : base (name, shape) { } private Dictionary < string , Motors. Motor > _motors = new Dictionary < string , Motors. Motor >(); [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( typeof ( CollectionConverter )),] public Dictionary < string , Motors. Motor > Motors { get { return _motors; } } } There are four classes th ...Show All
Windows Live Developer Forums Windows Live Contacts
Hi guys Is it currently possible to work with the Windows Live Contacts system It would be great to be able to access the Windows Live Messenger/Mail/Spaces contacts and use that same information to, say, synchronise with an email client address book, mobile phone contacts etc. Thanks for your time and assistance Agree,how is grant.I imagined the next generation NetWork is grant that can communication every contact method.cell-phone was the interesting and marketing owner in 3G scenarios.Windows Live if can interactive cummunicate via different equipment nowadays is so grant topic in my opinionn.If operate your mobile as well as use the Windows Live on PC.such as, it can be type the road name where y ...Show All
