El Masidy's Q&A profile
Visual Studio Express Editions timer coding
hello I basically need to say.. If time is 2 am then run X PROGRAM thanks Your showing us C# code - are you looking for a C# answer or a VB answer. If a C# answer your in the wrong forum - this is VB.NET forum If your looking for and answer in VB You can use something as simple as If Now.ToShortTimeString = "6:23 PM" Then Process.Start("Notepad") End If This will open notepad at 6:23 PM if placed within a timer tick event which runs every minute. If you want to discount format you can handle it by doing something like If Now.Hours = 18 and Now.Minutes = 23 Then Process.Start("Notepad") End If ...Show All
Visual Studio Team System No warnings flagged by /analyze for uninitialized strings?
Hi, Why doesn't code analyzer flag any error in the below case. Incidentally, it does flag C6001 and C4700 if I uncomment the 'if' statement. Is there a way to force the analyzer to flag in direct assignment of uninitialized ptrs as well #include "stdafx.h" int _tmain(int argc, char* argv[]) { char* str; // if ( str) str = argv[argc+1]; printf("%s",str); return 0; } Thanks. The analyzer doesn't know how many elements of argv are valid. It probably should, though, since the contract for main is defined by the C++ standard. We'll look into that for the next release. However, you can use an annotation ( http://msdn2.microsoft.com/en-us/library/ms182032(VS.80).aspx ) to explici ...Show All
SQL Server Error rsAccessDenied
When I try to deploy one of my Reports I receive the following error : Deploying to http://localhost/ReportServer Error rsAccessDenied : The permissions granted to user 'BOGDAN\IUSR_BOGDAN' are insufficient for performing this operation. That is because I configured IIS for those 2 folders ReportServer and Reports to accept anonymous . If I turn anonymous off and let windows authentification on he lets me to deploy the project , but I can see anymore http://localhost/Reports and http://localhost/ReportServer because he asks for password and I don't have any password set for the computer , nor for SQL Server . I just use Windows Authentification for all. I searched through this forum but nothing is significant ...Show All
Visual Studio 2008 (Pre-release) DatePicker missing
hi there, ther is no datepicker or monthcalendar what to do hi there, thank you 4 the fast reply, I D/L but the example of MonthCalendar is not working (The example in the monthcalendar folder) so I'm stcu again, any idea does it work 4 you ...Show All
Visual Studio Express Editions how can i get/put data from/in a dataset with coding?
ok i know you can do it with this: object theData = theDataSet.Tables[ index ].Rows [index ].ItemArray [ColumnIndex ] but... what do i type where like where do I type what data i want to change/add, in what row, table etc it's prolly a stupid question but it would help me out alot :P Thx in advance. Hi, It seems you want some tutorials about how to use dataset in ado.net : http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ADOPlusOverview.aspx This can help you. Pls feel free to let me know if you have problems. thank you :) ...Show All
Visual C# Using Calendar.SelectedDate to update Gridview
Hi, I'm fairly new to C# and Visual Studio, so any help is much appreciated. I am attempting to create a webpage with two webzones, one containing a Calendar object and the other containing a Gridview which is (currently) linked to an Access database. I have a "Created" date field in the Gridview and I would like to filter the Gridview to show only rows in which the "Created" date equals the Calendar.SelectedDate. I've added the SQLDataSource to the page and configured the Data Source in many different ways with no success. The SELECT statement that I thought should have worked is: SELECT Created, Event, Personnel_Contacted, Remedy_Num, Created_By FROM tblOpsLog WHERE Created = wpCalendar.SelectedDate (th ...Show All
.NET Development Adding Features to Existing Programs
Not sure that I'm in the right place, but if not I'm sure someone will tell me where I should be. I want to write something that I can apply to executables (eg WinWord) that will ALWAYS comeup with an Are You Sure, irrespective of how the program is terminated - especially via the "x" in the top right corner. I have a couple of externally sourced programs from defunct vendors that I find very useful. They both involve long running processes and they unfortunately do what exactly they're told to do when I click the 'x' , terminate them via TaskManager or tell them to close from the task bar. I've tried a couple of products (free and costlee) that purport to do what I want, but either they don't work, they apply themselves to ever ...Show All
Visual Studio Express Editions Buttons
I'm wondering can i make buttons in a form link to a ms dos command and if this is possible respond pls greets a new noob. do you mean to start an instance of command prompt If so, this can be done using the System.Diagnostics namespace, in there a class called Process exists, and its assistant ProcessStartInfo, which allows you to configure how the application to be executed externally, is behaved. So, lets do a quick example. Import the System.Diagnostics namespace at the top of your class file, next to your import statements, then: private sub button1_Click(byval sender as object, byval e as Eventargs) handles button1.click Process.Start("cmd") end sub this will launch ...Show All
Visual Basic Clock in VB
Is there a clock that i could put into my program, either one that is already done or one tat i have to code The answers you got are certainly the simplest form of a clock and may be perfectly sufficient for your needs. But this question made me think: "how hard could it be to write a real clock ". The answer was "not very", so here ya go, a complete analog clock with a variety of display options. Create a new CustomControl, name it AnalogClock and then paste in the following code: p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} h4 {margin-top:12.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in ...Show All
.NET Development data multiple bursts?
Hi. This is a question I've been meaning to ask but then sometimes able to resolve it by adding a small delay before sending the next message. I have a server/client app client connects and sends data via the network stream. .. this .theNetworkStream.Write(bytesOfData, 0, bytesOfData); this .theNetworkStream.Flush(); Thread.Sleep(140); //small delay this works fine when sending 1 piece of data at a time, but when sending it in a loop, sometimes the data is sent properly whilst other times the data for some reason is recieved at the server end in 1 big string, instead of chunks of data, even with the delay from the client. When recieving data on the server, I am doing ...Show All
SQL Server Looking for sqlrun_tools.msi
Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever. When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi. I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one. I have no idea why its asking me for this at this time, nor do i know to do to get it to stop. Thanks in advance for any help. Do you still have the SQL Server 2005 Tools installed ...Show All
SQL Server User credentials delegation from IIS on WinXP to SQL Server on Win2003SRV fails
Problem: I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server cannot reside on the same machine and a stand alone web server is ideal as the website needs to access multiple SQL Servers. IIS is set to Integrated Windows Authentication. The machine running IIS & the SQL Server are set to be "trusted for delegation" in active directory. The domain user accounts that will be accessing the databases are not marked as "Account is sensitive and cannot be delegated". The connection string that the web app uses to connect to SQL database is: "Data Source=PWSSQ ...Show All
SQL Server SP1 R6031 when starting DTA
My environment at home is I am running Win XP Pro with SP2 and I am running SQL Server 2005 standard. I am receiving error message 'R6031' when I try to start DTA. I have gone into KB and found article 913395. I am unable to delete the key value indicated as I do not have that key in my registry. I would really like to use DTA! Any suggestions Your suggestion worked fine. While my machine did not have the HKEY_CURRENT_USER value, it DID have the HKEY_LOCAL_MACHINE value. Thank you. ...Show All
SQL Server Array of Value
I'm learning T-SQL, and I want to know what are the various ways to represent an array of values. For example, I might like to have an array of record IDs, which I feed to an "IN" clause. My guess is that such an "array" would be implemented by using a RecordSet. If yes, thats good - but what are the other ways (if any) If no, then what other kinds of variables or parameters allow me to do something like that But what about doing a select that has results stored in a (single-column) RecordSet I've not tried it, but can't that RecordSet be passed around as a parameter, and then fed "as is" into an "IN" clause Is that not a common/popular thing to do If not, why not ...Show All
Visual Studio Team System Getting a new work item field to display in the OLAP cube
I've created a new field named stage in our scenario template and updated VSTS. It looks like: < FIELD name = " Stage " refname = " Microsoft.VSTS.Common.Stage " type = " String " reportable = " dimension " > < HELPTEXT > Stage of the scenario in the development process </ HELPTEXT > < REQUIRED /> It's showing up correctly in VSTS and in the TFSWorkItemTracking DB in Team. The issue I'm having is that it's not showing up in the TFSWarheous OLAP cube. How can I get this in to the cube Thanks in advance for any help on this. Greg Once you set a field's reportable attribute to dimension, the next time ...Show All
