Hery Susanto WR's Q&A profile
Visual Studio Express Editions Get User Full Name
I am banging my head against the wall... I am a LONGTIME VBA Coder... and one package that I use to get the Users Full Name is: Private Type USER_INFO_2 usri2_name As Long usri2_password As Long ' Null, only settable usri2_password_age As Long usri2_priv As Long usri2_home_dir As Long usri2_comment As Long usri2_flags As Long usri2_script_path As Long usri2_auth_flags As Long usri2_full_name As Long usri2_usr_comment As Long usri2_parms As Long usri2_workstations As Long usri2_last_logon As Long usri2_last_logoff As Long usri2_acct_expires As Long usri2_max_storage As Long usri2_units_per_week As Long usri2_logon_hours As Long usri2_bad_pw_count As Long usri2_num_logons As Long usri2_logon_ ...Show All
SQL Server Cant get Reporting Services working
Machine is Sql server2000 sp4 Running IIS 5 Also Running SqlServer2000 sp3 I approached machine installed sql server2005 developer edition. Prerequisites installs .net framework 2.0. Then 100% successful System Requirements. Then 100% successful Install. I discover reporting services service did not start and wont start. I discover that i need to modify rsreporting.config to point to IWAM_NTSERVER2 for asp.net logon. Then the service will run . But still can't navigate to it. In the configurator, The web identity is red x. I discover sql browser service not running. I needed to install sql server 2000 SP3. browser now runs. All services are running but cant navagate to http://localhost/reports$SQLSERVER2005 SQLSERVER2005 ...Show All
Visual Studio Express Editions Calculation not working
HI Very very new to vb express i have a database which you input cost and del details to give you a invoice total the vat field seem to not work for some reason the line of code is If IsNumeric(CostTextBox.Text) And IsNumeric(Del_ChargeTextBox.Text) And IsNumeric(QtrTextBox.Text) Then TotalTextBox.Text = CInt (CostTextBox.Text) * CInt (QtrTextBox.Text) + CInt (Del_ChargeTextBox.Text) / 17.5 * 100 End If if i input 2 x 50 + 10 / 17.5 * 100 the totaltextbox say 100 for some reason Jason You have to realize that the order of operation is from left to right with these rankings: 1 - parantheses/brackets 2 - exponentiations / roots 3 - multipl ...Show All
Windows Forms Prevent Auto-Scroll Panel from Resetting Position
In my quest to create a smooth-scrolling DataGridView control, I've created a custom control composed of 2 panels, one of which has AutoScroll set to true, and has a DataGridView as its sole child control. The DGV automatically adjusts its height whenever a row is added or removed, so that if the DGV client area needs to expand beyond the current visible area of the container, it can and the scrollbars appear. That works beautifully. What doesn't work beautifully is the fact that any time a new row is added or removed from the DGV, the container panel resets its scroll position to 0,0, displaying the top-left corner of the grid, rather than the position at which the user was previously viewing the data. Is there a way to prevent this reset ...Show All
.NET Development FTP and Internet
Hi, I have been able to successfully download and upload files from my FTP server, but I am still having some problems. For one, I cannot overwrite any files, and also it is lacking deleting, moving, copying, making new folders, etc.. If you could tell me how to do all these that would be great. I am also wondering how I would be able to find the exact URL that the user is at when the website is running in Internet Explorer. Thanks in advance, Tanner For reading from a stream, I use this code... Dim URL As String Dim Creds As New NetworkCredential Creds.Domain = "ftp.optifront.com" Creds.UserName = "main" Creds.Password = "*blocked*&quo ...Show All
Visual Studio Crystal Report Data source
Hi All, I have some classes in a project, with things like private CustomerID as Integer private CustomerName as string ...... then the properties for them I have been using them for my datagridviews I need to make some crystal reports and thought I could link the report to the class so I can have the fields that I need to add onto the report and just fill a dataset and link that to the report. I'm not having any luck doing it that way. My question is. Do I have to make a dataset or can it be does the way that I'm trying as I don't want to start creating datasets all over the place Thanks PQSIK Does anyone know the answer to my question I'm trying to link the report fields to my class them create a datas ...Show All
Windows Forms Mouse Wheeling
So I've got this genious idea. The current issue, is that I require constant capture of the mouse wheel. My for is pretty much completely covered by various controls. What I want to know is, can I capture the mousewheel on the form level, even though the mouse might be over a textbox And secondly, what event gets fired off when I scroll my mousewheel Where can I add code to do something with the mouse wheel protected override void WndProc( ref Message m) { if (m.Msg == WM_MOUSEWHEEL) { if (m.WParam.ToInt32() == 7864320) MessageBox .Show( "Up" ); else MessageBox .Show( "Down" ); } ...Show All
.NET Development Value of constant
Anyone, tell me please, value for this constant: X509_ALGORITHM_IDENTIFIER http://msdn.microsoft.com/library/default.asp url=/library/en-us/seccrypto/security/constants_for_cryptencodeobject_and_cryptdecodeobject.asp I did not found it in wincrypt.h :( Sorry for my English. Strange, I can see it in wincrypt.h, line 3261 or something like that. Anyway, here is the definition: #define X509_ALGORITHM_IDENTIFIER (( LPCSTR ) 74 ) Regards /Dmitriy ...Show All
SQL Server can't update view
Hi all , I have a problem to insert new data to a view which created from 2 tables. I am trying to so from run time Any help will be appreciated use an instead of INsert trigger for that. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C++ MSVCR80.dll
I was trying to install a disc from my college classes and i keep getting this error, couldn't find libraryMSVCR80.dll (required by C:\PROGRAM~\COMMON~\MICROS~1\OFFICE12\MSOXMLMF.DLL) I have run RegCure to try and fix the problem to no avail. Any suggestions Also at start up, I get a rundell.dll error is this the problem Thanks, Jonathan, Your suggested workaround worked perfectly for me from the default location. I hope that someone from Microsoft Office 2007 reads this! Kevin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture Surface Level
I am encountering problems sizing using the following code: textureA = TextureLoader.FromFile(device, filename); SurfaceA = textureA.GetSurfaceLevel(0); the file that I am using for textureA has dimensions of 549 x 710 yet the SurfaceA is coming up with dimensions of 1024 x 1024. What am I missing Thanks! Yeah indeed you're right. I tried changing it back into Rectangle.Emtpy and it still works. Seems like the Transparent did it for me ...Show All
Visual Studio Team System Deploy error: User does not have permission to run DBCC auditevent
I am wondering if anyone has run into this error when trying to deploy a Database to server environment not locally. User does not have permission to run DBCC auditevent I have tried cutting out permissions, users, even everything but the table objects and nothing has worked. If anyone can give any insight into this error I would appreciate the help. Yes, if you have different users in the project vs. the target we will always script out the differences in users, roles, etc. Permissions will always be in the permissions.sql post-deploy script and will simply be those that were imported initially. Sounds like you found the correct work-around to take care of your situation. ...Show All
Visual Studio Team System Area path security question
Suppose I have 2 nodes in my Area definition: Node1 en Node2 Area |--- Node1 |--- Node2 Members of groupA have the permission "Edit work items in this node" set to "allow" for the root area "Area" Members of groupA have the permission "Edit work items in this node" set to "Allow" for Node1. Members of groupB have the permission "Edit work items in this node" set to "Allow" for Node2. GroupB is NOT listed in the list of users and groups for the root area "Area" security settings. GroupB is NOT a member of any group that has permissions in the root area "Area". I was suprised that users of groupB were able to create workitems at all when using ...Show All
SQL Server Add spaces to a string value in a cell
Hi, I am trying to add spaces to a string value in a cell but when I run the report the value is trimmed. Any ideas Here is the expression I am using: = Fields!strVal.Value & " " Thanks, Igor Hello Igor, Can you try something like this in your field's expression: =Fields!FIELD1.Value & StrDup(5, " ") Hope this helps. Jarret ...Show All
Visual Basic How do I get all declarations in my IDE Method dropdown
I am fairly new to VB.Net 2005 - just installed it before the holidays and now I am converting old vb.net 2002 code to 2005. I have however worked with 2002 and 2003 for some time now. In the 2005 IDE I do not see all my declarations of code modules. I have the form selected in the class drop down but only some declarations show in the method drop down, not all of them that are in the form. 2002 and 2003 displayed all subroutines and funtions so is there a setting in the VB.Net 2005 IDE that will let me see all of the functions/subroutines that are in the form Thanks Is anyone familar with this problem I converted a 2002 vb.net project to vb.net 2005 and in the IDE when th ...Show All
