lschiedel's Q&A profile
.NET Development Search for most matching data in Dataview
Hi I've loaded my Excel file into a dataset and created a dataview. Now I want to filter the dataview according to the user input. What I want to know is that can I search for the most matcing item For example, there is a column in my dataview called "Length" which includes 4, 6, 8, 9, 10, 11, 12, 13. If user input is 5, I wanna search for next longer length which is 6, anyone knows how can I do it Many thanks in advance...... Carol great, i've tried and it works....thank you very much!!!! but do have another problem though . since my search is quite complicated and have several different dataviews, do you know that can I bind datagridview to multiple dataviews can a dataview hold previous views (i guess not) or do I ...Show All
.NET Development URGENT HELP - LOCAL DATE/MONTH
C# - Windows Applications (VS 2005) ----- Hi, I need some help here. I have a button that onclick, will have a function to check the current month (Local time), eg. if current month equal Nov, open form X else if current month equal Dec, open form Y. Tks. The property Month is already of type int, so just do this: cur_mth = DateTime.Now.Month; switch(cur_mth) { case 10: // do your October stuff break; case 11: // do your November stuff break; } Month will contain values from 1 to 12 with 1 for Januar and 12 for December. Do not call this.Close() before you opened the next form because if you close your last form your app will exit. If somewhere else you need ToString, this is ...Show All
SQL Server Hide Dcoument Map by Default while viewing the Report in SSRS
Hello Experts I use a Report where i have a document Map getting generated. but by default it is displayed and the user has to close the window to view the report. i wanted to know if its possible to hide the Document map window by default and based on the click of the icon the window will be show to the user when viewing in the default Report page. /chandresh soni Hi Jens Thanks for your suggestion. but i cannot expect my user to type rc:DocMap=false in the URL. as i deploy the report on the Report server and the user view the same through Report Manager. since the Report has a document map, it covers 25 % of the main screen. so i wanted a way that by default it should be hidden and only ...Show All
Windows Forms Using Flash movie with C#
Hi, i'm Alex and i write from Italy. Does anyone know how can i insert Flash movies into Windows Forms Hi, check codeproject.com, it has some documents about the subject: http://www.codeproject.com/useritems/FlashDBInteract.asp http://www.codeproject.com/aspnet/FlashPlayerCustControl.asp http://www.codeproject.com/cs/media/flashexternalapi.asp ...Show All
Visual Studio Express Editions Type comparison: GetType, TypeOf, Equals.... which one is most efficient?
Hi folks; suppose I want to figure out what type a certain control is. Then, what is the most efficient way to do it - use If (ctrl.GetType Is GetType(ComboBox) )Then ..... - or If (ctrl.GetType = GetType(ComboBox) )Then ..... - or If (ctrl.GetType.Equals(GetType(ComboBox)) Then ... - or If (TypeOf ctrl Is ComboBox) Then .... The first three can be used w. With ctrl < statements> End With, the last one is easier to read. But apart from that, is there any difference Greetings, Thymen You know what All of these questions really are answerable and there are two tools to do it. Reflector is a program available on the net. that will dissable a program and take ...Show All
Visual Studio 2008 (Pre-release) How can I clone BitmapImage
When I do: bitmap.CloneCurrentValue(); bitmap.Clone(); and set it as Image.Source I get an error that the decoder could not decoe the image. When I remove the cloning it works great, but now the file is locked and wanting to delete it throwing exception. any Ideas. btw This exact same code worked great in windows forms. Hi, Itzik. The Clone() operation won't actually help you here, because instead of releasing the reference to the file it will create another reference to it.To get around the file locking behavior, construct the bitmap with the BitmapCacheOption.OnLoad argument set: BitmapImage bi = new BitmapImage(); // BitmapImage.UriSource must be in a BeginInit/EndInit block. ...Show All
Windows Forms how can i get a username or password from mydatabase??
Does anybody know how can i get data from my database. I construct login and register forms. In the registration there is no problem. Form add all information of user to the database. But In the login form, I have to make search entered username in my database or mydataset. I tried so much but i have nothing. pls help ..... I have tried this code. But it didn't work. I have debugged project, view.Count never changed. Is view.Count changing when the username and password found in the mydataset One more thing, I have to write theView.RowFilter = "[username]=' textbox1.Text' AND [pas ...Show All
Visual Basic Question in adding item in ContextMenuStrip
Hello I have two questions about ContextMenuStrip: 1- I want to add items by using code. But I want when I click on it, an action happens Look at this line: ContextMenuStrip1.Items.Add( "Close" ) I want when I click on Close, end the program using ( End ) How can I do it 2- How can add separator using code Thanks I tried to comit Class but I didn't work, look: Friend WithEvents nimenu As New ContextMenuStrip Friend WithEvents foo As New ToolStripMenuItem Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load nimenu.Items.Add(CreateMenuItem( "Show&qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Loading 3D Landscapes
Hello, I would like to start this thread as hopefully a complete how-to with 3D Landscapes until the documentation is availalble. Here are my initial questions: These would pertain more for those that want a shooter or mmorg, but useful for all! 1.) How would one load a 3d heightmap and view it 2.) How can you apply splatting to the landscape using alpha maps 3.) How can one go about paging the landscape ie: each sector would be (say 512 x 512) - how can you load/unload the maps to save resources. 4.) Performance - why choose .png over .bmp or .jpg for heightmap, alphamp and textures Thank you everyone for your responses. I guess i need to decide how to proceed - i have invested a ...Show All
Visual Basic |DataDirectory| and Application startup
Hi I'm working on an application that I use SQL 2005 Express mdf files to store data I use the default connection string that created by connection wizard to connect to the data file I want to make sure that the mdf file is in it's location before using the tableadapter.update method to fill the data set at application startup the only problem I had here is the |DataDirectory| that is in the connection string I want to know at run time to which folder it refere my question here how I can programatically at runtime identify the |DataDirectory| is reffering to which folder so I can get the full path to the place of the data file Thank you all DMan1 wrote: ...on ...Show All
Visual Studio Team System Permanently Delete Work Items?
Hi, I'm running TFS Beta 2 and VS 2005 Beta 2. I was wondering if there is any way to permanently delete work items Not just to mark them as Closed, but completely get rid of them I have full access to the server. Is there a safe way to go into SQL Server and delete items from the database, or are there command lines tools to perform this Thanks, Kevin We had the same problem and where able to delete them via this SQL statement. Make sure you set the DELID (1729) to the Work Item ID that you want to delete. Tread Lightly.... I am no expert but it seams to work for us. Declare @DELID int set @DELID = 1729 DELETE FROM [TfsWorkItemTracking].[dbo].[WorkItemLongTexts] WHERE ID = ...Show All
Windows Forms Values dont change but.....
I have properites set up in my classes like this private bool _IsDirty = false; public int SomeProperty { get { return _SomeProperty set { if(_SomeProperty != value) { _SomeProperty = value _IsDirty = true // which mean the value has changed } } } now i have this in my form closing event because if the user changes information but tries to close the form before he clicks the save button it goes here....When the form loads it shows all the information pertaining to an object...the object properties are all binded to controls on the form so thats where the _IsDirty checks to see which ones have changed.... LoadFormToObject();// this is the binding of contro ...Show All
SQL Server Unable to install SQl Server 2005 SP2 - Unexpected error
I am trying to install SQl Server 2005 SP2 but it was throwing an unexpected error when trying to install "setup support files". O/s: Windows Server 2003 SP1 Product: SQL Server 2005 Standard Edition Log file shows: +++++++++++++++++++ === Verbose logging started: 2/20/2007 16:05:42 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: F:\SQL2005sp2\hotfix.exe === MSI (c) (74:68) [16:05:42:635]: Resetting cached policy values MSI (c) (74:68) [16:05:42:635]: Machine policy value 'Debug' is 0 MSI (c) (74:68) [16:05:42:635]: ******* RunEngine: ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi ******* Action: ******* CommandLine: ********** MSI ...Show All
Smart Device Development GIF in Emulators
Hi, How can we display GIF images in emulators and smart phone devices I am using CF2.0, SP CE 5.0 Emulator, VS 2005 Thanks Thanks Sorry i mean SP WM5.0 Emulator I tried the code but Gif image is not not blinking or rotating ..It shows like JPG or BMP image How can i see the GIF image like the 1 we can see in a desktop Computer Thanks ...Show All
Visual Basic accessing dataset fields
Hi, I can not get this for the life of me. I want to get a list (array) of all the values in a certain column in a dataset, how can I go about doing this Also, what is the format for getting the value in a certain field from a dataset Like "Row x, Column y" where x and y are specified by a unique row value and unique column name. If you know of a good tutorial for Visual Basic & using SQL (Binding sources, datasets, etc), please let me know as I think I'm having a more difficult time grasping it than other aspects. Thanks! Dear Sir, You can carry about your list into an excel sheet first. 2nd.With Access you can create a database with this sheet. 3rd. This Data ...Show All
