Mark Remkiewcz's Q&A profile
Windows Forms DatgridView add rows...?
Hi... If i want my datagridview control to show one column as combobox & other two columans as textbox. I want first two columan as read only textboxes for user & 3rd column is used by user to select the values by a Dropdown combobox... Is it possible to do this...How can i do this... how can i add rows in DataGridView... How i can add range of data in Combobox column... Can anybody give me link for any good Documnet on DataGridView which explains this... Thanks, Vinay ...Show All
.NET Development Protecting against characters that interfere with insert/update stmts
I have an app in vb.2005/sql2005 that stores snippets of code, free form text, parts of web pages, anything. That's the problem. Some of the text that is dropped in as input to the table.column (nvarchar(max)), causes havoc with the insert or update stmts. error: "incorrect syntax near" usually followed by some random letter that when I track it down has some quotes around it. Particularly web source or lone sql stmts, (developers use this to store pieces of code they like). How can I encapsulate the input text in such a way as to not interfere with the finalized insert/update sql stmts A well managed text entry has no issues. Insert stmt : strSQL = "INSERT into Entries (myText, myDate, mySeq, keyWords, catalog, Path, p ...Show All
Windows Forms How to make a upgrade package of my application?
I have an application installed in a mahcine when i have any upgrade version i have to uninstall the package and install it again. Is there any way to make a upgrade installation package using available vb.net package deployment. Is this an MSI-based setup&deployment project If so, this should help: http://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/ ...Show All
Visual C++ Prevent same string in ofstream
Hi all. Is there a way to prevent ofstream from writing the same line if it already exisits If so please let me know because i wrote a function that loops the time/date but it keeps on showing the same time/date. Thanx in advance! Before anyone asks. My code below. #include #include #include using namespace std; int main (){ while(1){ Sleep(300); char date [9]; char time [9]; _strdate(date); _strtime(time); ofstream file1; file1.open("time.txt",ios::app); file1 << "[Date]: " << date << endl; file1 << "[Time]: " << time << endl; file1.close(); } return 0; } Note: the idea is to update when the time changes, not to write the same time over and over until it ...Show All
Visual Studio Express Editions Exporting project?
I've pretty much finished my project and would like to hand it around to some friends to test out, how do i export it so that it makes it into an exe kasmatt2000 wrote: Use click once tool. Click on your project in VB express and select properties. Click publish(option on side tabs) and somewhere as you go around through the wizard you will be asked whether to publish onto a website or onto a cd. Select cd then select the directory to save the published files into. When its done go to the directory you saved it into and you will see a couple of files plus a setup file. These are the files you should pass on to your friends on Cd or whatever. Clicking the setup file will install your project onto the ...Show All
Visual Studio Express Editions Command Line in C++
Hi, Guyz, I have encountered a problem, i have installed VS C++ 2005 Express Edition on my computer and have realised that there is not 'devenv.exe' that would go with it or with the PSDK that i have downloaded too. if anyone knows or had similar issues on how to call / build / compile etc projects in VS C++ 2005, please post the commands that are used, or links that would tell me how. It seems to be a simple thinkg, but i just cannot get the answer, i was looking for so long on the web. Any help would be appreciated. Many thanks, in advance, Dmitry I'm digging up an old thread, so I don't know if this will be seen, but... I'm encountering this same problem. Do you mean to set the includ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RTS Camera
Hi, I've went through any XNA game component, tutorial or forum thread out there and still can't find an example for what I need. Maybe someone could enlighten me or point me in the right direction! Trying to create a basic RTS style camera. The thing is when doing composite rotations no matter which axis I feed to the Rotate() method, eventually "yaw" and "pitch" rotations composite into a "roll". I want to keep my camera's roll level with the XZ plane. I tried using both "world" and "camera" up and left vectors for this. Didn't work. What do I need to do Newborn wrote: Hi, I tried using both "world" and "camera" up and left vectors for this. The solution is to use ...Show All
Visual Studio September CTP?
Anyone have any idea as to when the Sept CTP will be released Thanks John End of this month. Cheers. Anand.. ...Show All
Visual Studio 2008 (Pre-release) Forms , XAML , Events
Hi Just to get started I created an new WPF project. . I want to add an event to an button I drop to the form (Designer shows me it is the XAML file) The button is shown in the designer and the code in the XAML is generated. But first tehres no context menue on any Form or its components. So I show it manually via the VS Menu. But there no events From one point of view this is correct because XAML is only an "Designer Format" but so how can I create an Click event to the button In the Code file theres no reference to the button of the form. The Second thing is that I want to show in a really fast way some text. Which method is the most performant in .NET 3.0 to draw text by myself Thanks for your help Boas ...Show All
Internet Explorer Development Javascript focus() doesn't function well in IE7 with Tab feature using
My problem is that: I can't use focus() to focus the tabs I have opened Example: On Opener Window, var tab = window.open(" www.microsoft.com ", "Child_Tab", "<LIST_OF_FEATURES>"); then call tab.focus() can't focus the opend tab "Child_Tab" Guessed Reason: May be IE 7 assume that all tabs in the same browser is in the same window. Although the tab is not focused, IE 7 think that its window is focused. (Since other tab in the same window has been already focused) Question: Are there any answers to let me focus the tab as I want I'm having issues with the focus() method as well but in a slightly different scenario. ...Show All
Visual Basic Keydown
I need a good description on how to do a keydown event in visual basic 8... please make a keydown event code on the letter "a" and "enter". Thanks a lot. derek42092, The KeyDown event occurs when a key is pressed while the control has focus. The following code example uses the KeyDown event to determine the type of character entered into the control. ' Boolean flag used to determine when a character other than a number is entered. Private nonNumberEntered As Boolean = False ' Handle the KeyDown event to determine the type of character entered into the control. Private Sub textBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows ...Show All
Visual Basic Array of Buttons
I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. You'll use the AddHandler statement: AddHandler btn.Click, AddressOf ButtonClickHandler The "ButtonClickHanlder" is just a subroutine with the correct signiture Private Sub ButtonClickHandler(ByVal sender As Object, ByVal e As EventArgs) End Sub ...Show All
Smart Device Development Selecting a row in a datagrid problem
Hi, I have a datagrid with a currentcellchanged event. But when there is only one row in my datagrid, it gets automaticly selected after dg.DataSource=_arrList[]. and when I click on it, the currentcellcanged event is not triggered. With two rows it works perfect. Does anybody has an idea to solve this Grtz Annihil8 There's no click event on a row, there's only click event on the entire grid. Then you can get click coordinates (e.g. via MousePosition) and figure out the location of the click using HitTest . ...Show All
Windows Forms Is visual studio bootstrapper and clickonce bootstrapper the same thing?
Is visual studio bootstrapper and clickonce bootstrapper the same thing Well, let me qualify that... There is a Visual Studio Bootstrapper associated with the Express SKUs of VS that is unrelated to ClickOnce bootstrapping. But you will also see in many places the Bootstrapper for ClickOnce referred to as the Visual Studio 2005 Bootstrapper. The official name for the ClickOnce related Bootstrapper is the Generic Bootstrapper, but that is not very descriptive either... ...Show All
.NET Development Windows form that "eat" memory...
Hi I have built a windows form that use a System.Timers.Timer, the program itself runs just fine. But if I have the program open and check the task manager I can see that the program increase it's memory usage by 4-8kb every 10 seconds or so. What can a thi’ng like that depend on. What should I look for in my code, I mean this cannot be right that the program "eat" memory... The application is built in VS 2003 Best Regards M So, what object does the CLR Profiler tell you is not getting collected Please show your code that creates and disposes this object. ...Show All
