martin.kolarik's Q&A profile
Visual C# How can I make an pictureBox "Blink" with a timer?
I want to make an image disappear, then appear again repeatedly. How can I do this with a timer Thanks, what i did was i just put the picture box inside a panal and on the Tick event of the timer i just hide or show the picture based on the privious state private void timer1_Tick( object sender, System.EventArgs e) { pictureBox1.Visible = !pictureBox1.Visible; } One more thing before you do any thing if you want you picture to appre and disapper you ahve start the time timer1.Start(); It works for me Cheers mamush ...Show All
Visual C# How many threads should a process possess?
Hi, everyone: My application runs with its thread number ranging from 40 to more 60. I wonder how many threads a windows process should have. I have checked a lot only to find that the general MaxThreadNumber for ThreadPool is "25". But how about threads created by Thread.Start Further more, after Thread.Start() was executed in my application, I was surprised to find the the thread may remain "Unstarted" under a uncertain condition which brings about a hang-up. Does this happen just because of too many threads in my application Thank you I don't claim to be an expert on threading, so please forgive my ignorance on the subject. I have read a lot of material about the dos and do ...Show All
Visual Studio Express Editions I Want to write a program for my sprinkler system.
I want to put a humidistat in the ground of my grass and when the humidistat reads a certain number i want it to trigger a program on my computer that turns on a sprinkler system. I am beginning in visual basic but i want to go all for it and i'm not great with hardware either so i want someone that can work with me step by step through this so if your interested please post with your email address. Thanks, Brady Some interesting sites for interfacing hardware to software using vb - http://www.emant.com/ http://www.phidgets.com/index.php Greg U ...Show All
Visual Studio About the Compability between .Net and COM object
I am currently working on inhouse libraries upgrade from .Net 1.0 to 2.0. In the .Net 1.0 libraries we have used COM object Craxdrt.dll and functions like craxdrt.AddPictureObject, craxdrt.AddTextObject. I would like to ask if there are any alternatives in .Net version, or I still have to use the COM object for compability. Using craxdrt.dll (Report designer component, RDC) is not even supported in the .Net 1.0 libraries let alone the 2.0. It is only supported through COM languages, and is being deprecated. The new way to do it is through the RAS SDK which requires Business Objects Enterprise or Crystal Reports Server, and if you are using Visual Studio 2005 you need the XI release 2 version of these pr ...Show All
.NET Development Webserver access & Proxy
Hi, My winform app needs to access a webserver and there is a Proxy in my network. Then I have this : The request failed with Http status 407 : Proxy authentication required. What should I do to get the Proxy credentials to access the webserver ( VS2005 + VB ) Regards. Hi, Thank you but ...what should I put in the " proxyAddress" The Proxy IP Regards ...Show All
SQL Server Desprate..Please Help
I wrote an application using Visual Studio 2005. This app requires a login that get that accesses SQL Express Data. I have an XP Pro box set up as a server using DSL Modem and connected to that is a Wireless hub. I used Network Wizard to set up a Home/Small Business Network on all the computers. My laptop has XP Pro and has Visual Studio and that's where I wrote the application. It's connect to the wirless hub with a cat 5 cable. The other laptop has XP Home Edition and is in another room is connected with wirless only. I set up a user called user1 in SQLExpress with a password. I set it up using MIXED MODE. (SQL server and Windows authentication mode) Connection String: myCn.ConnectionString = "Provider=SQLOLEDB;Data Sou ...Show All
SQL Server Help with getting last record
I'm looking for a way to get the last recordset from a column in my database. Can someone please help me I just need the SQL statement. Using ASP/ADO and MSSQL Thanks!! Sorry, this is very confusing. How can a column contain a recordset The opposite is true, recordsets contain columns. And why is this relevant to SSIS Can you elaborate -Jamie ...Show All
Software Development for Windows Vista How to debug a XOML-Only Workflow?
Hi, is it possible to debug a dynamically loaded workflow (XOML-Only) Did somebody done it Thanks Yes, it is possible to debug a xoml-only workflow. You will need to set breakpoint in the VS using breakpoints window. 1.Open Breakpoints window 2. Add New breakpoint and set function name equal to Id of the activity on which you want to break. VS will resolve these breakpoints after the workflow starts executing. Alternatively you can set breakpoint using the syntax QualifiedActivityId[:[Fully qualified ClassName][:InstanceId]] 3. Ensure to set Language = Workflow in the breakpoints dialog Do an F5 if you have the project, which starts the workflow, open or attach the debugger to the host w ...Show All
Visual Studio Express Editions adding a arraylist in a datagridview
what’s the fastest way of adding a row of values in a arraylist for example, if I have a arraylist arraylist arrayvalues = new arraylist(); arrayvalues.add("name1"); arrayvalues.add(3.56); how do I add this arraylist as a new row in a datagridview and how do I add it as a new column ahmedilyas, Thanks for replying, I'm not sure sure I'm following your example correctly. This line: this.DataGridView.Rows(counter).SetValues(curObj); Rows is a property of DataGridView but is being used like a method, I'm not sure how to modify this line to change the result. Thanks, emiller101 ...Show All
Visual Studio 2008 (Pre-release) Problem using XPath to investigate Message Headers.
I am having what appears to be a strange problem. My goal was to use XPath to investigate custom headers in a message. I would create an XPathDocument by passing it an XmlReader from the message.Headers.GetReaderAtHeader() method. Now, if I try to use an XPathNavigator and it's select methods on a Message object that was created by the WCF stack, it doesn't work. If I create a Message (the same EXACT message) via Message.CreateMessage(...) using a string representation of the SOAP message, the XPath queries work fine. I know why its not working, but not sure if its a bug or if there is a reason behind it. The Message instance that is built by the WCF stack is a BufferedMessage instance while that returned by Message.CreateMessage(...) i ...Show All
SQL Server No New Data Source Option in SSAS
I have just installed a new instance of SQL Server 2005 including Analysis Services. I have created a new Analysis Services database and assigned a role with full rights. However, I do not have the option to create a Data Source. Clicking the right mouse button only shows refresh. I am new to SSAS and any advice would be appreciated. You are probably working in SQL Server Management Studio. Choose SQL Server BI-Developer Studio instead and start an Analysis Services 9.0 project. Most objects in a cube are created in the BI-Developer Studio. Management Studio is only for maintenance. HTH Thomas Ivarsson ...Show All
.NET Development Publishing the methods with parameters
Hi , I want to create a class and define methods as Method1($param1$,$param2$) Method1 will have some business rule by using the parameters specified. the actual method will be Method1(int param1,int param2) . My requirement is to pubish the pseudo methods with parameters so that the application that was using this method will provide the parameters for me at runtime. Method2($paramx$,$paramy$) ........ Basically when they access this class they will getBasically when they access this class they will get these pseudo method names like Method1($param1$,$param2$), Method2($paramx$,$paramy$) etc...they will choose what the method need and application gives the parameters to the configured method will execute with the give ...Show All
Visual Studio 2008 (Pre-release) Converting DOCX to XPS
How to convert a docx to xps without using the printer "Microsoft XPS Document Writer" When I manually set the printer and run the code then it shows a dialog and ask for the file name. How to supress the dialog box Dim dir As New DirectoryInfo( "d:\xps" ) Dim filelist As FileInfo() = dir.GetFiles( "*.docx" ) Dim filename As FileInfo For Each filename In filelist Dim MyProcess As New Process MyProcess.StartInfo.CreateNoWindow = True MyProcess.StartInfo.Verb = "print" MyProcess.StartInfo.FileName = dir.FullName.ToString & "\" & filename.ToString MyProcess.StartInfo.WorkingDirectory = "d:\" MyProcess. ...Show All
SQL Server How to define a user variable on Execute Sql Task??
Hi everyone, How to define a Input variable in a Execute Sql Task I've defined a User::Inicio variable which contains 4 as value. In Parameter Mappins it has been defined. Then, I've gone to General->Sql Statement and allocated the following SQL Statement: UPDATE CARGAPROCESOS SET FECHAULTIMACARGA = [Inicio] or UPDATE CARGAPROCESOS SET FECHAULTIMACARGA = [User::Inicio] Anyway, I'm stuck, both did not work Thanks in advance for your comments Well, the error talks abour the ResulSet porperty; what is your value for that what is you set that to None. Also i think you do not need anything in your parameter tab since the SQL statement is being created by the expression RAfael Salas ...Show All
Silverlight (formerly WPF/E) WPF/E (TextBlock) is not rendering Unicode correctly
I have downloaded the WPF/E CTP & SDK, I played with them and have noticed that WPF/E does not fully support Unicode, as I use a TextBlock to test the display of Arabic text, WPF/E was rendering the text incorrectly as if it is rendering the text from left to right while it should render the text from right to left. This same behavior is true for Hebrew too which is also a right-to-left language. Hello Fayez, I tried also that and it did not work. I would expect full language support from MS soon hopefully. it is a must if they want it to pick up fully. I am interested in communicating with you to talk about common topics regarding WPF/E feel free to email me arabdad@hotmail.com ...Show All
