rokohl's Q&A profile
Visual Studio Express Editions how can i have the text in options form textbox 1 2 3 and 4 be listed in conbobox1 form1 as drop list items
Hi I am new to programming and am trying to do the following. I have form1 with 3 comboboxes. I have an optionsform with 3 panels containing 4 textboxes each. I need the text in the textboxes on panel1 to list the text as the drop down list items in form1 combobox1. I need the text in the textboxes on panel2 to list the text as the drop down list items in form1 combobox2. I need the text in the textboxes on panel3 to list the text as the drop down list items in form1 combobox3. The list items on combobox1 2 and 3 would be saved to the my.settings so when the program is restarted the same list items will still show for combobox1 2 and 3. How can I do this. Thanks Thanks, now how can i make it to where n ...Show All
Visual Studio 2008 (Pre-release) Resolution Independence with Canvas!
hello, I'm fairly new to WPF and have a question about how to gain resolution independence... I've developed an application which you can design screens similar to PowerPoint and it's player part will be done using WPF. All my objects have relative coordinates so I'll place them inside Canvas but the thing in here is that player might be in different screen resolution than the designed view and I would like to ask whether there was any simple way to resize and position controls inside the canvas so they keep proportion on different sizes. I can calculate and do this via code (Which I already do in Designer part) but as WPF provides so many new things in layout management, I thought there might be no need for this and this can be done ...Show All
Windows Live Developer Forums Performance of Polylines
Hi, I`m currently developing application for viewing driving routes on VE. The main problem is that routes contain many points and performance ir terrible. I wrote a function that displays only points visible on map in selected zoom, but it still contains too may points. If I show just few then routes are not correct, they go crosswise. Can anyone help with solution Good to hear. I've played with reducing the number of points in a polyline when you zoom out and it made virtually no difference unless you configure it very agressively and then it modifies the look of the polyline as mentioned above. For me the best solution for my geofences was to replace them with a pushpin when they get too small as you z ...Show All
Visual Studio Assigning Reportviewer datasource at runtime?
I have a winform with a reportviewer object on it. I'm trying to get data from a datatable to display on the report. myDatatTable is created and filled at runtime. I don't get any errors but only the literal below displays in the report. Or, the report is completely blank depending on what the literal is. Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource(); rds.Name = myDataTable.TableName; rds.Value = myDataTable; reportViewer1.LocalReport.ReportPath = "Report1.rdlc"; reportViewer1.LocalReport.DataSources.Clear(); reportViewer1.LocalReport.DataSources.Add(rds); reportViewer1.RefreshReport(); In the report designer, I have a textbox with this in it Fields!PersonCode.Va ...Show All
Visual C++ Impersonate user (seteuid/setegid for Windows)
Basically, I'm new to these forums, so I apologize if I am posting this to the wrong place. I am currently porting over code that was written for Linux that utilized the seteuid and setegid functions. These functions allow a high privileged user (root) to impersonate a user/group when trying to run certain system-level functions. Basically is there something like these functions that exist in Visual C++ I'd like to be able to call functions, like requesting to delete a file, while impersonating a user. I'd like to do this without having to run the process as that user. This way, I could perform the same function over and over using different user profiles, if needed. Please let me know if this makes sense ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Playing Cards ?
How would I approach a 3D representation of a playing card(s) If using a model, would 52 different models be required so that each card has it's own texture Can user primitives (i.e. 2 triangles to make a card shape) have different textures on each side What would be the best method for this Thanks for the reply, and yes, makes a lot of sense. I'm guessing that 3DS Max doesn't produce double-sided planes which is where I'm having some trouble at the moment. I guess I'll need to get some other software. ...Show All
Visual Studio Team System DoNotDeclareVisibleInstanceFields for value-types?
What's the recommendation regarding (large) value-type fields Have a Get method that has the value-type as an out parameter Also, the docs here say "Properties that just return the value of a private or internal field are optimized to perform on par with accessing a field; there is no performance gain associated with using externally visible fields over properties.", but that doesn't seem to be true for value-types. If I make a property exposing a large value-type, then it's going to copy the whole value-type on access, and that seems a perf hit. Thanks! David - that would be great information to mention in the rule (particularly about expecting value-types to be 16 bytes). Actually, I'm surprised I didn't get a FxC ...Show All
Software Development for Windows Vista Replicator with PolicyActivity hurts my brain
Even after some help from a kind poster I'm still not getting how to use PolicyActivity within a replicator. I created a new activity derived from SequenceActivity. I added a property to it, with the DependencyProperty gunk around it like the SimpleReplicator SDK sample shows. This all initializes fine. My problem is now I drag a PolicyActivity into my Sequence. How can rules in this PolicyActivity use my custom property on the parent Sequence Activity I've tried GetActivityByName to get the sequence, but it doesn't appear I can cast in a rule condition (or I don't know the syntax) to my derived type to be able to access the property in say, a condition. Even if I could, this would not be a great way to write rules against that property. ...Show All
Windows Forms Making big toolstrip
Hi, I'm back. And I've got another question; How can you make a toolstrip larger than normal Like 50 pixels high. I need to have larger buttons, because they will be the most important butttons of the applictation, plus they need to look good. I have tried making a progress bar big, which makes the tooolstrip big, but not the size of the buttons. Could someone please help me Thanks in advance, Buddy_15 Create some Image Say 40,40 and Put it on the ToolStrip Button you address not See properties of that button and Set ImageScaling property to None , It'll Automatically Size ToolStrip according to the size of that Bitmap! Best Regards , ...Show All
.NET Development Audit/Log the change in DataSet
We want to Audit/Log the changed data in DataSet and found DataSet.GetChanges will return whole changed rows even this row only have one field changed. We understand we can write our own script to compare original datarow and changed datarow finding out which column change. Does there have another way to Audit/Log the changed datacolumn Thanks, Hi, GetChanges is only valid until the dataset's AcceptChanges method is called (called automatically by the table adapter's Update function). The most flexible and non intrusive way to create a log of the dataset's changes is to attach event handlers to the tables RowChanged, RowDeleted and TableNewRow events for every table your interested in: ...Show All
SQL Server range lookup
how can i do a range lookup say i need the salary "range_key" for salary 30,000 which is between 10,000 and 60,000 table structure: range_key from_amount to_amount Julian Kuiters talks about how to do this here: http://www.julian-kuiters.id.au/article.php/ssis-lookup-with-range -Jamie ...Show All
.NET Development 64 bit
very simple question from my side. what is meant by 64 bit .net development.Are the classes in .net2.0 storing in 64bit memory or what. any advantages of it.I know about 64 bit processors,databus,motherboard but no knowledge about 64 bit .net Also is operating systems also classified as 32 bit,64 bit. if so then what is windows xp and windows 2000 bit configuration Cheers The 64bit versions of the windows xp or windows 2003 operating system which are required to use the 64 bit versions of dot net framework 2.0. You find info on the 64bit versions of the framework here . ...Show All
SQL Server Data migration from MSAccess to SQL Express 2005
Hi , I have a requirement to migrate the data from an existing MS Access database to a newly designed SQL Express 2005 database . Need less to say the table structures in both are totally different.I would like to know how can i handle a scenerio where i want to map table A in access to table B in SQL express (the schema of both different and the number of columns can vary too) , how do i migrate the data from table A in Access to Table B in SQL express using SSMA Also i would appreciate if some one can tell me is SSMA the right tool for this , or should i use the upsizing wizard of MS Access. The constraint here is that the data needs to be migra ...Show All
Internet Explorer Development Windows Vista and ActiveX registration
Hi all, I was hoping that the new Windows Vista could allow me to install our .ocx plugin on IE7 after IEInstal.exe allowed installation and it does not seem to work. I am using VS 2003 After reading http://msdn.microsoft.com/library/default.asp url=/library/en-us/IETechCol/dnwebgen/ProtectedMode.asp many times I would except the following scenario : 1- our activex is not installed 2- standard user browses a web page where our tag starts the downloading of our installer (lets call it installer.exe) 3- a prompt appears requiring administrator login and pass 4- installer.exe creates our destination folder (with low integrity level) and copy the embedded ourplugin.ocx file in the destination folder then 5 installer.exe ...Show All
.NET Development Problem with Environment.GetLogicalDrives method and Windows Service application
Hello, I am using the following method Environment.GetLogicalDrives to access all available drives on my system. This method works just fine when I run it inside the Windows Form application; however, when I run the same code inside the Windows Service application it returns only local drives without the mapped network drives. The Windows Service application runs under my user id. Thanks Tom Hello nobugz, Thank you for your reply. I actually implemented the API call to the GetLogicalDriveStrings method and I got the same result. Based on the article, I assumed that the drive is mapped in the LocalSystem context; therefore, I tried to use the drive letter, which was already assigned t ...Show All
