Pon t3h pony's Q&A profile
Windows Forms Need help on way of storing Data - Any advice would rock.
I'm new to Client side application development so my mind sometimes still works it's way back to ASP.NET development. I'm desiging a client application to help our users that user our website do some very advanced work that they cannot do on our current website until we start fully working with Web 2.0. Users can download objects called packages. In raw SQL Rows, a package will have over 8000 rows of data per package. A user might be working on 1-10 packages at any given time. I need a way to store the Data in a Package onto a clients computer. XML is the best way for me to do this. I've designed the XML format I need, and I've stripped out a lot of crap I don't need. Each Package has it's own XML file, this way 1 file will not get huge. I ...Show All
Smart Device Development RFID with Keyboardwedge
Hi, I have a Ipaq with rfid reader. When I am in notepad/word i can press a hardwarebutton and the id of the rfid tag will be entered by the keyboardwedge. So I thought oke lets do that in a c#program :) It works when i have a textbox with focus. My problem is that i dont have a textbox on the form and i dont want to put one because an user isnt allowed to see the id. I used the keypreview = true and a key_down event. When I scan the event is triggered but only once and i get a keycode=none . Does anybody know how to solve this or any other easy way to create an 'automatic' keyboardwedge Grtz Annihil8 You said in your original post that it works if your form has a textbox with the focus, b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Indexed Vertices - (in)visibility through index flip?
This is more a basic question and I currently lack the time to try it myself, so I hope that somebody can give me an answer to this: Considering you have a huge vertex buffer and index buffer that you blast to a shader, forming e.g. 100.000 primitives. Now I would like to hide a bunch of known primitives completly and I know that they form a fully enclosed form like a pyramid or a cube. Extracting them from the buffer would of course be an expensive operation as I would have to rebuild the buffers. But would it work if I just go ahead and flip the indexes in the index buffer for each triangle, e.g. the first and the second from each From my understanding the object would effectively become invisible (if the camera does not move inside t ...Show All
Windows Forms How to create window controls using database values
Hello everyone, my name is Brandon M. Hunter and I'm a programmer...(AAA introduction humor). Anyways I need to find a way to create controls at run-time (checkbox,radio buttons,etc) that is based off the number of records I have in my database. So for example, I have a 5 records that are defined as subjects that a school teaches, I need to create 5 checkboxes for each of those records Does anyone know I tried using this piece of code for example: Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 Dim stringTest As String For i = 1 To 4 Select Case i Case 1 stringTest = "checkboxvalue1" Case ...Show All
SQL Server How to enable range Date in Calender?
Hi, I am using Asp.net Calender in my application and i have two date (i.e StartDate and EndDate). I need to enable dates between these two date in calender. So the user can choose date with in this set of date. Can any one give me idea to solve this problem Thanks, Hi, Do you want to pass these dates to a report If so, you need to create 2 parameters and pass the start and end date to the report. If not, you should probably need to post your question in a different forum. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Basic Identifier Expected
Here is the code I have so far, the idea is that a file is read and info from the file is used to make the color of the screen and picture box. The problem is that I am getting a squigly under the & character with the message, Identifier Expected StrInfo = My .Computer.FileSystem.ReadAllText( "C:\SaverSupreme\" & sUserSelected & "\Info.txt" ) Dim lines() As String = StrInfo.Split(vbCr) ScCol = Trim(Replace(lines(LineGroupCount), vbCr, "" )) PbCol = Trim(Replace(lines(LineGroupCount + 1), vbCr, "" )) Me .BackColor = Color. & ScCol pbBlackout.BackColor = Color. & PbCol Your ScCol and PbCol variables prob ...Show All
Visual Basic Explorer's Send To
Hi everyone, I'm currently working on a very importent project, and I have a problem. On the explorer, when you right click a file, on the context menu, you can choose the "Send To" submenu, and there there are options. What I want to do, is to use that option, and to "Send" a specific file to there. It's not always a folder to send to it, it's sometimes a printer driver. How can I do it Ofir. 1) You can't print from a RichTextBox control.. I've tried an MSDN sample app. that prints from it, but it scrambles all of the text and images, making a lot of mess... 2) I have a send to submenu item, but I don't know how to call it... 3) Do you know how to use wordpa ...Show All
Visual Basic File Copy Time Estimator
I have a progress bar in my folder copying application that works great. How do I add and option that shows the estimated time to copy the entire contents of my selected folder. I am using a actual class to copy the files. Here is the code I. I have all the other items to call the class in the code of my main form. Imports System.Threading Imports System.IO Public Class CopyClass 'This will hold the reference to the client form Private _clientApp As Form 'Create a delegate method that will map to the CopyThreadMessage method of the client app Private Delegate Sub CallClientCopy(ByVal ThreadName As String, ByVal FilesRemaining As Long, ByVal Message As String) 'Create a delegate method th ...Show All
Visual Studio Team System Needed IIS and NTFS Permissions
Good day! Knowing me I've probably missed something, but after installing TFS the two admins (myself included) are the only ones who can connect. Being somewhat familiar with IIS and NTFS Permissions (actually just enough to be dangerous) we noticed that <machine-name>\Administrator, <machine-name>\IIS_WPG, and SYSTEM are the only users/groups who have have access to "D:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services" directory. Should a group like <domain>\Domain Users also have access If so, any idea at what level and why the install would not have set this for us Thanks! IIS_WPG should cover normal users as that's what the service account uses to access tha ...Show All
Visual Studio Tools for Office KeyBindings
Hi All, I am trying to create a function that would retrieve all Macros and the short cut keys (or Hot Keys) assigned to the Macros using C# with VSTO 2005. Using VBScript is working fine: Private Sub Test() For Each objKey In KeyBindings With objKey If .KeyCategory = wdKeyCategoryMacro Then sCode = objKey.KeyCode sShortcut = KeyString(KeyCode:=sCode) sCommand = .Command MsgBox "sCommand = " & sCommand End If End With Next End Sub Not sure if there is a way to convert the above code to C# I have tried the following: ApplicationClass objApp = new ApplicationClass(); String iKeyCount = objApp.KeyBindings.Count; MessageBox.Show(iKeyCount.ToStrin ...Show All
.NET Development VB and SNMP
Hi, I don't know is this is the right place for my question... But here we go. I need to do a program to works with a board through SNMP.. But I don't know how can I do it. Is there some body who can tell me how does VB works with SNMP Thanks in advance. We dont have managed implementation of SMNP in .NET. You can however P/Invoke into the Windows SNMP API easily using this. Heres some more information on the Windows SNMP APIs http://windowssdk.msdn.microsoft.com/en-us/library/aa379207.aspx ...Show All
Visual Studio Express Editions Regular Expression output to textbox
Hi - I am extremely new to programming so I apologize in advance for my lack of knowlege, vocabulary and if my code is sloppy. I will take any suggestions to clean up my code and to follow any best pratices that I missed. I am taking a stab at writing a program through Visual Basic 2005 Express Edition that will (don't laugh...) keep track, search through and find new friends with specific interests on myspace. The functionality of myspace is quite a let down so I thought I would try to create a program to fill my need. I am stuck at the moment on trying to do a httpWebRequest and regex to give me an output into a textbox of friend IDs. The HttpWebRequest part seems to be fine and the regular expression should be fine accorind to Expresso ...Show All
Visual Studio Web Client Software Factory: I cannot create a module with name Menu
Hello, I've been evaluating the posibility of migrate my project to Web Client Software Factory But i found the first incovenient when i try to create a new Business Module with name Menu, in Web Project the folder for the new module is not created Is Menu a reserved word Note: The Module Class Library is created but the folder in Web Project for the aspx is not Thanks in advance Hi Collarad, This forum is mostly for GAX and GAT related questions. For factory specific questions please post to the factory specific forum where you will get help from each factory team. The forum for WebClient SF is being hosted in CodePlex. thanks, -Victor. ...Show All
Visual C# Printer.PaperSource
Friends, I am trying to print using the "Multi Purpose" tray of my laser printer. The PrintDialog doesn't "remember" that I have selected it and always selects the bottom tray (using C# Express 2005). How can I programatically set the desired paper tray of my printer at run time I have attempted to set the Printer.PaperSource but get a "it's a read-only" message. Thanks, Sir, Thank you for your reply. I am temporarily unable to address my original problem. I am using MS Small Business Accounting and with the latest SP, I had to uninstall .NET 2.0 as MS SBA is not compatible with it (MS SBA won't print invoices)! Until they come out with a "fix" to the "fix" I can't use C# Express 2005. Best Regards, ...Show All
SQL Server Another Uninstalling problem!
When I am trying to uninstall SQL Server 2005 Express on XP Home I get the following error message: The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine MARTINS Error:2147749896 (0x80041008). I have tried restarting the WMI service but that doesn't help. Any ideas This looks like a problem with WMI on your computer. Check out the following: WMI Isn't Working WMI Diagnosis Utility This should help you determine what is wrong with WMI and help you fix it. Regards, Mike Wachal SQL Express team ---- Mark the best posts as Answers! ...Show All
