champa's Q&A profile
Windows Forms another problem with datetime picker column in datagridview
datetimepicker column's code is taken from msdn. the probelm is with time i set datetimepicker customformat option for displaying date and time like this "HH:mm:ss dddd yyyy" and i edit time and leave cell, the time becoms 00:00:00 any ideas I think you should show time and date in different colum box.DateTimeFormat - Various formats may be set. You may use a date/time format (like MMDDYY, MMDDYYYY, DDMMYY, DDMMYYYY, YYYYMMDD, HHMM12, HHMMSS12, HHMM24, HHMMSS24) to enable the date/time inserting and updating. Default is MMDDYYYY. ...Show All
Visual Studio Express Editions Download link returns blank page
If I try to download Visual Basic Express using IE, the subsequent page simply displays blank without a download run/saveas window. I can download using the AOL browser. Anyone know what in IE prevents this from my trusted MS site I'm running McAfee Antivirus and Spysweeper. Sounds like a popup blocker. Try disabling your antivirus software. -Tim <MSFT> ...Show All
Visual C# starting with graphics
hi, i was trying to start with graphics, i tought it would be something like: // form1 declared by default in project, then, somewhere else: canvas_oranyothersimilarnamedeclaredinnetframework=form1.getcanvas(); newpen=graphics.pen(someatributes); canvasetc.gotoxy(x, y); canvas.lineto(otherx, othery, pen) or something like that. in the dafault documentation (visual express), i can not find any examples about things like that, i see only one example that may be related (how to draw a non rectangular button), but in this example: 1. i can not compile it by just copy paste, the 'click handler' is out of the braces of both clases, both form1 and public class 'mybuttonobject', there are things like Graphics ...Show All
Windows Forms newbie: Can't find the duplicate (xxx.Form1.resources) in "Resources" parameter, help please.
Using C# and the latest VS 2005. Hunted for just about every combination and twist on this error information. This happens when I try to 'create project from existing code.' Haven't yet found the answer for this Ultimate Question (42, doesn't work.) Probably a very fundamental thing but I'm missing it as yet. Output C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CSHARP.Targets(147,9): error MSB3105: The item "obj\Debug\Webcam_Test.Form1.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. Done building project "Webcam_Test.csproj" -- FAILED. Error List The item "obj\Debug\Webcam_Test.Form1.resources" was specified mo ...Show All
SQL Server Where is Auto Save in SQL Management Studio???
I've done this twice now, I loose my sql script because I inadvertantly shut down management studio and a frantic click of buttons I do not click save! (yes I know, user error). What I am looking for is a function like in Microsoft Word where it saves your current document periodically. Where do I set that in management studio so I don't loose my scripts and that my changes are saved X # of minutes Regards, Matt Does Word's auto-save feature keep the interim files after you close and choose, "no, do not save my changes" I believe the only time when those files are kept around is when the application crashes. In your case, Management Studio isn't crashing, is it If you'd like to see ...Show All
Visual Studio Express Editions Fail to install c# express
When im trying to install c# express i got message that the Background Intelligent Tansfer System is disabled (this service i cant run on my comuer even manually), How can i install c# express Please Help Thanks Ron And this error may occur when the BITS service is disabled, does not exist, has been deleted from the services application, was stopped while download was in progress, or if any service that BITS depends on failed or was deleted. The error message for this problem is "BITS service must be enabled before you start the installation process. Enable the BITS service and run setup again." Reference to: http://msdn.microsoft.com/vstudio/express/support/troubleshoo ...Show All
Windows Forms How to loop through an unselected CheckedListBox ?
How can I loop through my checkedlistbox I am now using the following code : Dim checkeditemindex As Integer Label2.Text = "0" '#########Test############## For Each checkeditemindex In CheckedListBox1.CheckedIndices CheckedListBox1.SetItemChecked(checkeditemindex, CheckState.Checked) Label2.Text = CInt(Label2.Text) + 1 '#########Test############### Next Label1.Text = CheckedListBox1.Items.Count '#######Test########### Label1 can show the exactly record number of my Checkedlistbox but Label2 remain 0 (The codes seem skipped) BTW, My checkedlistbox has no checked item when the form show. So, I guess that I cannot use CheckedListBox1.CheckedIndices, am ...Show All
.NET Development Search, create or update a record
Hello, I'm trying to do a search on a dataset and if I find a record matching a value, I want to update the record; If i don't find any record, I want to insert a new. I've the following code: Imports System.Data.OleDb Dim cmd As OleDbCommand Dim dsNR As DataRow Dim cb = New OleDb.OleDbCommandBuilder(da) con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & DbSource & ";" sSQL = "SELECT * FROM [Numeros_Dia] WHERE (Data= '" & DataRelatorio & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) ds.Clear() da.Fill(ds, "Numeros_Dia") If ds.Tables(0).Rows.Count = 0 Then dsNR = ds.Tables(&q ...Show All
Software Development for Windows Vista Workflows and returning data
I have built a workflow which in the end gets an XML document. That document holds the information that has to be used by the presentation layer. The workflow is a part of a Workflow Library. How can I send that information to the presentation layer, I am not able to access any variable declared in the workflow Thanks in advance, Marko Vuksanovic. Hi Marko, a few options : 1° as described above, you can retrieve the property through the e.OutputParameters (workfowcompleted event) if you can wait for your workflow to be completed 2° you workflow can call a function in the host and provide the data (that's the local service option, with the callExternalMethod activity 3 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Resizing the gamewindow
Hello .. I'm just started, so if you could have some patience I'd be glad .. I've made my own snakegame and it's alright, but I can't find out how to resize the gamewindow .. All I see when i search on the net is something about clientbounds, but I cant find anything about changing these .. If this is a very stupid question I am so sorry, but I've grown tired of googling "resizing" all day, so now I'm asking here .. How do I change the size/dimensionon the gamewindow, so it's not the standard, but ex. 300x400 Thanks in advance Mikkel ...Show All
SQL Server Can You Use Variable Column Names in an Update Statement
I'm Creating a Table named Forecast with variable column names from month to month... This month Column 13 might be November; next month Column 13 would be December... After building the table, I need to Update the column's value (to start) to zero.... I would like to use " UPDATE Forecast SET @MonthName = 0; --- But, of course it doesn't work.... Anyone's help would be greatly appreciated. DECLARE @MonthName NVARCHAR ( 20 ) DECLARE @MyCounter INT SET @MyCounter = 12 USE Solaar ; WHILE @MyCounter < 24 BEGIN SELECT @MonthName = c . name FROM sys.columns AS c JOIN sys.types AS t ON c . user_type_id = t . user_type_id WHERE c . object_id = OBJECT_ID ( 'DBO.Forecast' ) AND c . col ...Show All
Visual Studio <see>, <see also>, and object browser?
I'm currently using VS2005 (with .Net 2.0) and am attempting to document some code with the <see> tag. Here's what I currently have: /// <summary> /// This type defines how intervals are drawn. /// </summary> public enum INTERVAL_TYPE { /// <summary> /// A fixed number of intervals (defined by <see cref="TimeLineViewer.ChartFormatting.NumIntervals"/>) is drawn. /// </summary> FIXED_NUMBER, I was hoping that the <see> tag would induce a link when I viewed the enum member in the object browser. Instead, I just get the text 'TimeLineViewer.ChartFormatting.NumIntervals.' Am I expecting too much intelligence from the object browser katesune ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX or XNA i don't understand which to use!
I first started MDX programming about a year ago, to create a simple 3D viewer app, after creating the app, I stopped and didn't touch mdx at all since then so i have forgotten quite a bit of it. Anyway I was suprised to find that mdx seems to be phased out and this new XNA thingy is replacing it. Is XNA just for games on xbox360 I am not interested in xbox360 or games programming, only programming 3D visualisation apps for windows pcs. I don't know if I should still learn MDX or learn XNA, i don't want to learn something and just have it phased out again... Any advice would be appreciated. ='( My app isn't very complicated, but native DirectX and C++ is not something i'm too keen on using for what will be ...Show All
Visual Basic How would I make a .XML doc like .INI?
Hi. So far, I think I have gotten my form to write .XML with this code... (This is just a test form, I will add it to the real one once I get this figured out) Dim Saved As New Xml.XmlTextWriter( "..\Test.xml" , Nothing ) With Saved .Formatting = Xml.Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement( "1stStartElement" ) .WriteStartElement( "2ndStartElement" ) .WriteElementString( "TextBox1_Value" , TextBox1.Text) 'Saves TextBox1's value .WriteElementString( "TextBox2_Value" , TextBox2.Text) 'Saves TextBox2's value .WriteElementString( "TextBox3_Value" , TextBox3.Text) 'Saves TextBox3's value .WriteEndElement() .WriteEndElement() .WriteEndDocument() .Flush() ...Show All
Software Development for Windows Vista When will SideShow drivers be available for my Windows Mobile 5 device?
I'm dying to run SideShow gadgets on my WinMo 5 pocket pc. When will drivers be available and will there be any hardware-related restrictions on what type of gadgets will run Thanks, Scott Hi Scott, The Windows Driver Kit has some excellent samples to help you get started on writing your own SideShow drivers. With the new User Mode Driver Framework it is now much easier to write your own drivers. As for hardware restrictions. There shouldn't be any at all. It really all depends on how much of the specification you (or the 3rd party) is willing the implement. Standard SCF gadgets don't require any complicated transfers so sending via Bluetooth/WiFi is simple enough. With any SideShow implemen ...Show All
