*Jinx's Q&A profile
Visual Studio Express Editions cant find .cs files
When I reinstalled VC# 2005, my .cs files from my project folder seemed to vanish. Now, instead of a Form1.cs file, there is a Form1.resx file instead! Is there some way to convert back to a .cs file Thanks to everyone. I'll try all the suggestions. All is not lost though, for some reason(call it a premonition) I copied some of the main source code as a .txt file and took a screenshot of the UI's. During the many hours it will take to reproduce some of the projects I'll be telling myself "back up properly, back up properly" over and over again!!! Thanks again. ...Show All
Visual Studio Tools for Office Change Word formfield checkbox value
I have a checkbox in word and i've made a bookmark for it. How do I check or uncheck the box using C# in .net 2.0 I have done this in asp using vb here is the code. If (form1.bitJoint.Value = "True") Then .formfields("Check7").CheckBox.Value = True Else .formfields("Check6").CheckBox.Value = True End If Hi RajDas I've separated this to its own thread, since it's a different topic than your original thread. As you'd marked that as an answer, the chances of getting a reply were smaller than if you posted a new thread. object ffldIndex_Check1 = "Check1"; this.InnerObject.FormFields.get_Item(ref ffldIndex_Check1).CheckBox.Value = true; (If you're not using VSTO ...Show All
.NET Development Control of system clock
Hi, Intro: I have a network sniffer connected to a UDP network. I use WinPcap with my data extraction API located on an interface PC. GUI is made in Visual Studio. I have full control of the time recorded on the sniffer (from extracting time in telegram header) but I run into the following problem: When I try to play back the UDP stream via 100MB onto a server running Win XP, the receiving application receives it's time from the system clock. I am not interested in showing the current time when the playback is not in real time. I am interested in showing the time from the extracted data. When I play back events and alarms all time stamping gets wrong since the UDP playback stream does not contain time stamp in use by my application. ...Show All
Visual Studio Team System Check for hard coded strings
Hi all, Because we are localizing our applications we need to find all hard coded strings (i.e. all strings that are located in the source instead of the resx files) to move them to resx files. Now I would like to implement a FxCop rule that analyzes if any hard coded strings are used. The problem I have is that I can easily find local variables and class members but I did not figure out how to check their content. In order to identify hard coded strings I have to analyze the content of the string variables. Strings that are localizable are loaded at runtime via resource manager and should therefore be distinguishable from hard coded strings. Does anyone have an idea how to implement such a rule Thanks and regards ACKH ...Show All
SQL Server Insert without duplicates
i have a table that contains a list of musical artist and an index. I want to insert artists into that table however, i dont want to insert any name that already exists. How do i do that Here is my statement: INSERT INTO [Artists Table] (ArtistName) VALUES (@ArtistName) Hi, or if you want to do this within one step rather than a batch INSERT INTO [Artists Table] (ArtistName) SELECT @ArtistName WHERE NOT EXISTS ( select * from [Artists Table] where artistName = @artistName ) HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual J# boxiterator
If I use the following sentence I get a messagebox with the text English is checked MessageBox .Show(BoxIterator.get_Text() + " is checked" ); But the following sentence is never true. BoxIterator .get_Text().equals( "English" ) I have checked everything and the problem is here. Can somebody tell why it doesn’t work. < xml version="1.0" encoding="utf-8" > <languages> <language language="German" /> <language language="Dutch" /> <language language="English" /> </languages> If a checkbox is checked in the checkbox collection, then find the correct language in the ...Show All
Smart Device Development MFC toolbox custom control class
Hi, I use a custom control toolbox. The problem is the name of the base class is different depending the platform used (win32, win64). I can't change tha base class name (I don't control it). Is there a mean to specify a definition (a "#define" not a string) for the base class for the autogeneration of the resources .rc file CONTROL "My Custom Control" ,IDC_MY_CUSTOM_CONTROL, "CLASSNAME" ,WS_TABSTOP,7,7,272,216 Regards, Eric Hi, The problem is the base class name in a custom control is define as a string and in a resource file we can just define numerical constant. Ideally, we should use the same base class name for each platform but I can't because I d ...Show All
Visual Studio 2008 (Pre-release) Arrange/RenderTargetBitmap scaling/coordinate confusion...
I'm doing the following: ---- StringReader sr = new StringReader (PreprocessXaml(graphicThing.Xaml)); XmlReader xr = new XmlTextReader (sr); System.Windows.Controls. Canvas canvas = (System.Windows.Controls. Canvas )System.Windows.Markup. XamlReader .Load(xr); canvas.Measure( new System.Windows. Size (clientRect.Width, clientRect.Height)); canvas.Arrange( new Rect (0, 0, clientRect.Width, clientRect.Height)); canvas.UpdateLayout(); RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap (clientRect.Width, clientRect.Height, 96, 96, PixelFormats .Default); renderTargetBitmap.Render(canvas); ---- These values have been used from an example I found on the web. This work, kind of, it renders the ima ...Show All
.NET Development Calling javascript in C# issue?
Hi All, I am trying to call some javascript code from asp.net c# code, show as below: string errormsg = "<script type='text/javascript'>" ; //errormsg += "var error = 'This is existing Sample Number, Please try again.'"; errormsg += " alert('This is existing Sample Number, Please try again.') " ; errormsg += "</script>" ; ClientScript.RegisterClientScriptBlock( typeof ( Page ), "SampleNoValidate" , errormsg); above code is working . but when i change to string errormsg = "<script type='text/javascript'>" ; errormsg += "var error = 'This is existing Sample Number, Please try again.'" ; errormsg += " ale ...Show All
Visual Studio Express Editions Making the Exit Button not shut off the application
Hello I'm a beginer at VB Express and need HELP!!!!! I'm designing an application that does not allow the user to click the exit button. You know, if you click on it it goes beeeeeeeeeeeeeeeep! It has that fade away effect but you can see it. How do I make the exit button not exit I'd appriciate code and responses THANKS!!!!!!!!!!!!!!!!!!!!!!!!! I hope you're mad at yourself instead of us. Take a couple of deep breaths, then set a breakpoint on the e.Cancel = True statement. ...Show All
Visual Studio Team System Get Latest Changeset for a specific Team Project
Hello, I am looking for a way to get the lastest ChangeSet for a specific project. Reason being, we use continuous integration builds, and I would like to send an email to user who checked in the code that kicked off the build when that build fails. Currently, I have a solutions that gets the latest ChangeSetID for the entire server. I thought it got the latest ChangeSet per project but that is not the case. What I have now does work b/c currently we only have a small number of our developments using TFS. Below is my current code to get the name of the person who kicked off the build. This work only if no one esle checks in to any of the Team projects we have during the minute or so in between when the developer checks in and the build ...Show All
Windows Forms Is it not possible to change the name of a ClickOnce app after installed on a computer?
Hello Is it not possible to change the name (mage.exe -name) I have used for the clickonce application that has already been installed on a computer If I do that the user get an error message, and they have to use Add/remove program from the start menu and install it again. The updater looks for a file that has the same at the name that was used when the user installed the program. Is it not possible to change the name so the autoupdate function work Changing name attribute in deployment identity would make it a different application altogether. It wont be able update properly. If all you want is to change the name in start menu shortcut then just change the description\product attr ...Show All
Smart Device Development Install Compact .net 2.0 on my smartphone
I tried deploying an App to my Cingular 2125 smart phone. It gave me an error saying that I do not have .net 2.0 I installed the compact framework on my computer, but Im not sure how to get it on my phone! Can anyone tell me how to install .net 2.0 onto my smart phone so I can run my application... thanks. i posted this twice on accident and could not seem to delete the duplicate. I posted a reply and am duplicating it here so I get your input as well... sorry for the multiple posts... Whenever I try and Deploy I get the following error: Error 1 The device security configuration disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your S ...Show All
SQL Server Cannot connect to server
Hi, I am using sql server 2005 sp1 developer edtion. I have looked at the install logs and all ok, but when connecting to my server (LAPTOP) i get the following error below. I have not changed any of the xml config file, if anyone can help me i would be very grateful. Thanks in advance kered TITLE: Connect to Server ------------------------------ Cannot connect to LAPTOP. ------------------------------ ADDITIONAL INFORMATION: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. (System.Data) ------------------------------ The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception. (System.Data) ------------------------------ The type initiali ...Show All
Visual Studio 2008 (Pre-release) Multiple DataBindings to Children Elements
Using the below XAML as an example how can i make it so that when one of the labels in the stacker is clicked that my first textblock in the grid is data bound to text of the inner textblock of the label that was clicked <Grid> <TextBlock> *This is where data should be bound* </TextBlock> </Grid> <StackPanel Label.MouseUp="LabelClickHandler"> <Label Name="Label1"> <DockPanel> <Image Source="Resources\lbl1img.png" /> <TextBlock>Label 1</TextBlock> </DockPanel> </Label> <Label Name="Label2"> <DockPanel> <Image Source="Resources\lbl2img.png" /> &l ...Show All
