Viniciusgf's Q&A profile
Visual Studio Express Editions auto yes security alert
in my program when i go to a site it comes up with security alert this is what it says "You are about yo be redirected to a connection that is notsecure. The information you are sending tot he current site might be retrandsmitted to a nonsecure. Do you wish to continue " Now in my help i say that to use the program yoiu need to hit yes and that you have to understand that it is not secure. so is there a way to just have it click yes all the time once the person is aware of it If the dialog you are showing is your own form, you can use Button1.PerformClick() where Button1 is your Yes button. If you are using a MessageBox, I dont think there is a way to get the code to press the but ...Show All
Windows Forms datatable and dataset
hi i have Private WithEvents dt1 As New DataTable Private WithEvents dt2 As New DataTable Dim ds As New DataSet now i add the two tables to my ds. can i do this...> dt1 references another table, dt2 same thing. imean i am not goind ds.tables("dt1") etc . . . is it not the same tables i am referencing Not sure I completely understand the question, but I did the following: Dim dt1 As New DataTable dt1.TableName = "Test1" Dim dt2 As New DataTable dt2.TableName = "Test2" Dim ds As New DataSet ds.Tables.Add(dt1) ds.Tables.Add(dt2) dt1 = New DataTable dt1.TableName = "Test3" MessageBox.Show(ds. ...Show All
Visual Studio 2008 (Pre-release) Xml Data Binding Performance Issue (Re-post)
I am running the .Net 3.0 RTM and have come across a performance problem with data binding. I am data binding XML which is updated once per second to a ListView/GridView . I have noticed that cpu utilization increases rapidly as the number of items in the ListView grows. For example, on my IBM Thinkpad 43p, if I have 3 items, cpu utilization is 8%. If I have 6 items cpu usage grows to 30%. At 12 items it is approaching 100%. As the number of lines of XML grows, the performance gets worse. In the code behind, I have a single XmlDocument that I set to the data context of the ListView: XmlDocument doc = new XmlDocument (); instrumentList.DataContext = doc; When new Xml is available, I do the following: doc.LoadXml(theX ...Show All
Visual Basic Selected Value in ComboBox Populates DataGridView
'I need assistance on how to Load the GridView By selecting a value in the ComboBox '1. ComboBox is loaded with Satellite SCC #s' From SQL Server 2005 Express '2. The DatGridView is loaded with signals that correspond to the Transponders on the Satellite From SQL Server Express 2005 'The GridView also contains the Satellite SCC #s'. '3. I need the GridView to only load the Signal that Matches the Satellite SCC #s' that are Selected from the ComboBox. '4. So when you click the SCC # in the ComboBox, it will search the Signal Database Table for all the matching 'Satellite SCC #s' and then load the signal information into the GridView. DataBase: SQL Server 2005 express Language: VB.NET 2005 FrameWork: .NET 2.0 Imports System ...Show All
SharePoint Products and Technologies What field of listitem was changed
I was trying to create ItemUpdated eventhandler. I wanna trace what field of listitem was changed. How to do it I was trying to use properties.Afterproperties and properties.Beforeproperties but both of them return nothing. Am I do something wrong and this method is right or I must use another method Are you using the ItemUpdated event or the ItemUpdating event In the -ing event, the properties doesnt contain any info about the item. // Richard ...Show All
Visual Studio Express Editions How to create a shared folder on a file server and assign share level permissions.
Hi, I am very new to VB but I have built an application that needs to create a shared folder on a file server and then set NTFS permissions as well as share level permissions. I have search for hours on how to do this and I have come up empty. I got it to work by running a shell command but I am a little disapointed by the dos pop-up windows that come up. Not to mention I am relying on XCALC.BAT and RMTSHARE.EXE for it to work. If there is no easy way to get VB to do this than can I use some shell command that does not pop-up when it runs that part of the app Any Help would be much apprecitated. In .NET you can set the file or folder attributes and add the accounts you want accessed to that folder. As for making it a physica ...Show All
Visual C++ Help with chars
Hi again, i has question about chars sequence. if i has char sequence like that: "{\k25}mi{\k16}a{\k19}ge{\k17}ta {\k17}yo{\k17}" and i want return me only 25 16 19 17 17 17, in other words only what after k in each {} how can i do that thanks. Hi, you have to build a simple parser that would return those numbers. Example: #include <iostream> #include <string> #include <vector> using namespace std; void main() { string s = "{\\k25}mi{\\k16}a{\\k19}ge{\\k17}ta {\\k17}yo{\\k17}"; // our string vector<string> vec; // holds the values // go through every ocurrence of "\\k" size_t index = s.fin ...Show All
Windows Forms ClickOnce doens't install application locally
Hello ! I have an Winforms application that uses a component DLL and specific configuration by mean of app.config file. When I used ClickOnce to install the application on a client computer, a start menu item was added, but it seems that created shortcut points to the internet site where the installation resides. The application wasn't installed locally. I need to customize the app.config file to accomodate to client environment, but if the application is launched remotely, I cannot do that. Any help will be greatly appreciated Thanks Jaime Hi Lama, Sorry I might have misunderstood. I thought it never installed in your PC. Yes the application when it installed it always stores it under local setting under app and ...Show All
SQL Server Rounding issue in calculated field using round (,1) function
I have a couple of calculated fields in a BI Dev Studio Report as follows: 1. round(Fields!CM_Perf_1st_Mth.Value, 1) 2. round(Fields!CM_Perf_1st_Mth.Value, 1) - round(Fields!BM_Perf_1st_Mth.Value, 1) The first calc field above is returning wrong results i.e. for a value of 2.25, instead of returning 2.3, it is returning 2.2. Similarly for -0.05, it is returning 0.0, instead of -0.1. Since the results from the first function are wrong, the second function is also returning off values. Has anyone faced this issue How does one get around this I have SQL 2005 Reporting Services with SP1. The result was the same without SP1 also. Seems like a big bug in the round function... TIA. Had simili ...Show All
SQL Server SQL JOB Never completes if more than one step is added
I need to add a SQL Job the deletes three tables in two diffrent databases I set up the steps as follows Step 1 delete table in Dynamics database go too step two Step 2 delete table in tempdb database go too step three Step 3 delete table in tempdb database finish and report success to log simple at best, but when job runs it never completes the first step and just sits there running. All three steps work perfect if in diffrent jobs and this works if run from query window with "go" between each delete statment also works if I but all three in one step with a "go" and do a database change for the one table. what am i missing in this very simple task CHeck whether users are connected to Dyna ...Show All
Visual Basic Problem with Design view
I am writing an application which manipulates many fields of data. Today, I implemented a new datatable which contains over 50 fields of info. I dragged this onto the Design view as "Details." The controls were placed one above the other with the last ones well off the screen area. I have spent a few hours moving, aligning, re-sizing etc. to get them properly laid out. However, I am unable to expand my Form in the design view to be able to grab the last few fields at the bottom and drag them up into the space I have created for them. The handle lets me expand the form to a certain point then stops, before I can see the last few controls! I know that these other controls are there as when I run the application (obviously ...Show All
Windows Forms opening a windows form from a .net windows service
I have created a windows service in .net and a form to control and monitor the service which I would like to open onStart event of the service. I have tried allowing the service access to the desktop and calling the form but have had issues with this. I think the best way to do this would be to run the form .exe. Does anyone know the code (C#) to do this I am finding it harder than expected to find an example on the Web. Or does anyone know of any better ways to accomplish this Thank you all for your replies. MadAboutC#, that is exactly what I was after, you've confirmed that they are the two options and I have successfully implemented the .exe run code. Much appreciated. ...Show All
SQL Server insert only time in sql server database
hi, i want to insert only time in my sql server database.but when m try to insert time in database it takes time+default date. i want to eliminate this default date. plz any one know this then tell me. Regards, shruti. thanks for yr response but i want my sql server database save the data like 12:12:12 PM..Database must contain only time value nt default date value. currently it saved data like 1/1/1900 12:12:12 PM and i want it save as 12:12:12 PM plz give me solution to do this. Regards, Shruti. ...Show All
Visual Studio Adding (and editing) .suo files to source control
Hi, I hope I've asked the question at the right place. Our project uses a different than default working directory, so this has to be set in Debugging > Working Directory for the clients. The problem is the working directory is saved in the hidden .suo file which one cannot edit by hand so easily. Is there a way of creating a new .suo file with only the binary data for the working directory in it, add that to source control I presume on checkout VS will then reconstruct all other paths and stuff in there for the users. Solutions either for VS2003 or VS2005 would be great. Donnu why that file has to be binary though, if it were like the .sln or .vcproj files it would've worked. Hi, I don't know ...Show All
Smart Device Development tabpage events
Hello, I want to know if there's an equivalent event in CF for event Enter for tabpages. Basically i want to fire an event whenever the user chooses a tabpage. Thank you The selectedindexchanged only works when we are selecting tabs during runtime. my prob is that i want to know which tab i'm in when the program first started. any suggestion ...Show All
