Answer Questions
GRK What's the difference between a Windows App Project properties and a Web App Project Properties
Hello and Thank you for you support. A .net Windows application has Project Properties settings, and a .net Web application also has Project Properties settings. The Windows application project properties has nine tabs that you can view, such as the Application tab. Within this Application tab, is the "Assembly Name" and the "Root Namespace" My question is , Why doesn't the .net WEB application have a place to define the "Root Namespace" and "Assembly Name" ----> just the same as the WINDOWS application Does that mean that you cannot change the Root Namespace and Assembly Name for a Web Project ALSO, a "Class Library" which is a separate project, for a Windows applic ...Show All
ATT Labs Form show unrequested
To get some experience using VBE, I converted a simple program I once made for myself(VB5). It's a birthday calendar, using a VB5 commandbutton for each day of the year, i found that VBE has great problems handling this many controls, it is slow, very slow and realy unworkable. Some where else in this forum I found that others with a lot of controls experience the same problems and there is no neat solution for it. In the mid 80's the basicinterpreter was quicker than this VBE with a machine that is 2000 times faster. Another problem I have is that the main(start) form of the program shows up unrequested. In the load section of the (start)form I show another form from which I normally select whether I show the (start)form or not. The se ...Show All
MrZap Getting 'Object reference not set to an instance of an object' error with User Control :(
Hi, I have a simple form with a user control MyUserControl which has another user control inside it called StringUserControl which has a function in it called GetString() and returns a string variable within that user control class. When I try to access it from my main form via a simple.. MsgBox(MyUserControl.StringUserControl.getString() .... my program throws a run time exception System.NullReferenceException: Object reference not set to an instance of an object. Any ideas Thanks in advance. -heedree Have you actually instantiated an instance of the control. ie. have you used a statement with NEW in such as Dim x as new <Class> This error often occurs when people forget to instantia ...Show All
maktas php editor
hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only im not quite sure how you would register the app with the Windows Shell, im sure someone else would know.... however if I find anything, ill be sure to post! Thanks! Regex is regular expressions. Regular expressions allow you to do pattern searches in a string input you provide. It's expensive to use but better to be used in an overall continues use, or something similar to that effect. Example could be when you are using a Search box, you may use regex to ...Show All
andien_geo How do I make this flicker-free?
The following code draws line numbers next to a RichtextBox control I have on my form. However, the code causes the LineNumbers picture box to flicker rapidly while being drawn, I was wondering if anyone could help Private Sub DrawRichTextBoxLineNumbers( ByRef g As Graphics) 'Calculate font heigth as the difference in Y coordinate 'between line 2 and line 1 'Note that the RichTextBox text must have at least two lines. ' So the initial Text property of the RichTextBox ' should not be an empty string. It could be something ' like vbcrlf & vbcrlf & vbcrlf With RichTextBox1 Dim font_height As Single font_height = .GetPositionFromCharIndex(.GetFirstCharIndexFromLine(2)).Y _ - ...Show All
Baris ERGUN Register dll in system
Hi to all.... I developed a dll. And how to register that dll in to my system used for other manipulation. I an tring to register that dll using regsvr32 command, But it shows an error "Dll can't loaded". Plz tell how to register a .net dll in that system(or other system).... HI, Ur right... But i want to register the .Net Dll in another system(Target system does't have .net,,,)... Do u understand my point... I register that Dll in another system. And i use that dll in AXAPTA software. Plz tell How to register .Net dll in another sys...... I am using follwing commands to register my .net dll on the machine where VB .net 2003 is is installed. gacutil /u samutils gacutil /if c:\windows\system32\samutils ...Show All
furjaw save file on another have the same name :"overwrite"
hi : how can i save file overwrite on the another have the same name I threw in the conversion as a little extra You can save the bitmap to the same format if you leave out the format-specification, or use the same format as the original file. You can do that very easily in managed code. The following example will convert a gif to a png and overwrite any existing 'test2.png' file: Dim zBitmap As Bitmap = Bitmap.FromFile("c:\folder\test.gif") zBitmap.Save("c:\folder\test2.png", Imaging.ImageFormat.Png) When you open the file, specify the FileMode as FileMode.Create, this way a new file will be created ...Show All
Raulsassaa resize Mainfrom via mouse from lower right hand corner of form?
The MainForm of a windows app has a triangular dot symbol in the lower right corner. A mouse left click should bring up a diagonal arrow and then dragging the mouse up and to the left ( or left and up) should shrink the mainform, moving the right and bottom borders up while the left and top remain unmoved. My form is not shrinking at all Is there a property I need to set, or uncheck I see a Me.Height and a Me.Width but I don't see any other relevant properties to change if I were to do this using MainForm_MouseDown MainForm_MouseUp MainForm_MouseMove any ideas Here are what I think might be relevant code form MainForm.Designer.vb Me .AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit Me .AutoSize = ...Show All
JamesPK Colour Combo Box
Hi, How do i get a combo box to display system colours As i am using it so the user can select the background colour for a graph. I have tried colourcb.text = color() but this produces an error any ideas Andy nogChoco, Took me a few minutes to figure out how to 'dll build' it to add to my toolbox. (versus just using it as a class.) But man, that code rocks! Make this change to fix the code: Private Sub Update_ColorList() Try Me .Items.Clear() Dim zArrayList As New ArrayList(40) zArrayList.Clear() The Sub New() and the ColorsToShow() are both calling Me.Update_ColorList when the control is initialized and because zArrayList already exists, the code is not waiting for anot ...Show All
TA123 FileSystemWatcher as a service
Hi, i am trying write a service program that will monitor a directory on a remote compter. Several Problems exist here, i think, One the remote computer is on our network, but in a workgroup. Doesn't look like I can use the administrive share to access this. How can I authenicate with that computer via a service program running the filesystemwatcher I don't think this machine is in the DNS also, because for me to see it in windows explorer, I have to type in \\172.30.132.123\c$ . Any Help Thanks, Brian If you're running a service on a given computer, then the service has whatever access rights you give it. Usually services run as a SYSTEM user, which means a given service can do just ab ...Show All
Raj S [Help] - getting CRC of a string (converted from C to VB)
Hello, i recently need a way to get a crc (32) of a string. I found an example http://www.zorc.breitbandkatze.de/crctester.c and i converted it Module test '//CRC parameters (default values are for CRC-32): Dim order As Integer = 32 Dim polynom As ULong = &H4C11DB7 Dim direct As Integer = 1 Dim crcinit As Long = &HFFFFFFFF Dim crcxor As Long = &HFFFFFFFF Dim refin As Boolean = False Dim refout As Boolean = False '// internal global values: Dim crcmask As ULong Dim crchighbit As ULong Dim crcinit_direct As ULong Dim crcinit_nondirect As ULong Dim crctab(256) As ULong Sub generate_crc_table() Dim i As Integer = 0 Dim j As Integer = 0 Dim bit As ULong Dim crc As ULong For i = 0 To 255 Step 1 crc = CULng ...Show All
Sam Jost database and vb
ok i can create a sql serever in a project by itself and it work just fine. but when i got to create on in a project ive been working on and try to apply it to the app i get a list of diffrent parts of the database and even the database itself not defined. is there a fix for this or can i not put a database in an app that i dont start with a database first and im using vb express 2005 i recreated my entire project stating with the database first. when i do that the problems that occured before didnt happen. so if there is a simpler solution to this other than rebuilding the entire project from scrath. i havent found it yet. ...Show All
Jorge Martin Replace Function is removing + characters
Hi, I have a web page that receive a querystring argument, and run a replace function over that query string to replace - with spaces before performing a lookup in a database for the updated querystring value. now the problem is, that this function seems to also be removing any + symbols that happen to be in the query string, which i dont want, as it wont match with any records in the DB if it does this. Code on page load Dim EntireQueryString As String = Request.QueryString().ToString() Dim ProductName As String = Replace(Request.QueryString("Product"), "-", " ") The EntireQueryString value returned is "product=targus-backpack-+-mouse-bundle" The ProductName value returned is "targus b ...Show All
tlc660 Date Problem
Hi everyone~ I’m stumped on something that I thought would be simple. I’m trying to figure out how to determine if the LastModifiedDate of a file was yesterday. Not 24 hours ago, but simply yesterday. I have a third party program that converts files and moves them to a specific folder. Anything converted and moved after midnight gets a new date in the file name (MM/DD) and continues doing it’s thing. I want to set up an event that will work with only files that were created yesterday, even if they are less than an hour old. I don’t know if I am on the right track, but so far I have one variable (TodaysDate) as 09/03/06, and the file’s DateLastModified (FileDate) as 09/02/06. But now I can’t figure out how ...Show All
AlexBB Centering a form.
I am using vb.net 2005, winforms. I want to know how can I center a form, with relation to the screen. Thanks Hi, Click on the FORM ( not on any control ),in design view then and go to properties with a right-click of your mouse. Set the StartPosition property to CenterScreen Regards, S_DS Past the two following lines in your 'From_Load' Me.Top = Screen.PrimaryScreen.WorkingArea.Height / 2 - Me.Height / 2 Me.Left = Screen.PrimaryScreen.WorkingArea.Width / 2 - Me.Width / 2 That's it!! FormStartPosition.CenterScreen doesnt work. Is there a way to do this like &quo ...Show All
